/**
 * ResellerClub Domain Transfer Styles
 * Professional styling for domain transfer interface
 */

.resellerclub-domain-transfer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.transfer-container {
    margin: 0 auto;
    padding: 20px;
}

.transfer-header {
    text-align: center;
    margin-bottom: 40px;
}

.transfer-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.transfer-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

.transfer-requirements {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.requirements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.requirements-header:hover {
    background: rgba(233, 236, 239, 0.5);
}

.requirements-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.requirements-header h3:before {
    content: "📋";
    margin-right: 10px;
    font-size: 1.2rem;
}

.requirements-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    transition: transform 0.3s ease;
    user-select: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 115, 170, 0.1);
}

.requirements-toggle.expanded {
    transform: rotate(45deg);
    background: rgba(0, 115, 170, 0.2);
}

.requirements-content {
    padding: 0 20px 20px 20px;
    transition: all 0.3s ease;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.requirements-list li {
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    color: #495057;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.requirements-list li:hover {
    transform: translateX(5px);
}

.transfer-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.domain-input-section {
    margin-bottom: 25px;
}

.domain-label, .auth-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.domain-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.transfer-domain-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
}

.transfer-domain-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.check-transfer-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.check-transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.check-transfer-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.domain-help {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.auth-code-section {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.auth-code-section:before {
    content: "🔐";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.auth-input-container {
    margin-top: 10px;
}

.auth-code-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.auth-code-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.auth-help {
    margin-top: 10px;
}

.auth-help small {
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

.transfer-loading {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.transfer-result {
    margin-top: 30px;
}

.transfer-domain-result {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.transfer-domain-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.transfer-domain-result.transferable {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.transfer-domain-result.not-transferable {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.transfer-domain-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.transfer-status {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.transfer-status.transferable {
    color: #155724;
    background: rgba(40, 167, 69, 0.1);
}

.transfer-status.not-transferable {
    color: #721c24;
    background: rgba(220, 53, 69, 0.1);
}

.transfer-pricing {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.transfer-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.transfer-price-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.transfer-price-label {
    color: #6c757d;
    font-weight: 500;
}

.transfer-price-value {
    font-weight: 700;
    color: #28a745;
    font-size: 1.2rem;
}

.transfer-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.transfer-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.transfer-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.transfer-error {
    color: #721c24;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.transfer-notes {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #0c5460;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.transfer-notes h4 {
    margin: 0 0 15px 0;
    color: #0c5460;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.transfer-notes h4:before {
    content: "ℹ️";
    margin-right: 10px;
}

.transfer-notes ul {
    margin: 0;
    padding-left: 20px;
}

.transfer-notes li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .transfer-container {
        padding: 15px;
    }
    
    .transfer-title {
        font-size: 2rem;
    }
    
    .domain-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .check-transfer-btn {
        width: 100%;
    }
    
    .transfer-form {
        padding: 20px;
    }
    
    .requirements-list {
        grid-template-columns: 1fr;
    }
    
    .requirements-header h3 {
        font-size: 1.1rem;
    }
    
    .requirements-toggle {
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
}

/* Animation for smooth transitions */
.transfer-domain-result,
.auth-code-section,
.transfer-loading {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapsible Requirements Specific Styles */
.requirements-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.requirements-content.expanded {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* Enhanced Toggle Button */
.requirements-toggle {
    border: 2px solid #0073aa;
    background: #ffffff;
    color: #0073aa;
    font-weight: bold;
    transition: all 0.3s ease;
}

.requirements-toggle:hover {
    background: #0073aa;
    color: #ffffff;
    transform: scale(1.1);
}

.requirements-toggle.expanded {
    background: #0073aa;
    color: #ffffff;
    transform: rotate(45deg) scale(1.1);
}