/**
 * Custom Styles
 * Additional custom styling for ReDomain theme
 * 
 * Add your custom CSS here. This file is loaded after the main stylesheet.
 *
 * @package ReDomain
 */

/* =====================================================
   DOMAIN SEARCH RESULTS - DonDominio Style
   ===================================================== */

/* Filter Bar */
.domain-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    color: #666;
}

.filter-tab:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.filter-tab.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.filter-tab i {
    margin-right: 0.25rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #20bf6b;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Domain Results List */
.domain-results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.domain-list-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid #e8e8e8;
    border-bottom: none;
    gap: 1rem;
    transition: all 0.2s;
}

.domain-list-item:first-child {
    border-radius: 12px 12px 0 0;
}

.domain-list-item:last-child {
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0 0 12px 12px;
}

.domain-list-item:only-child {
    border-radius: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.domain-list-item:hover {
    background: #f8f9fa;
}

.domain-list-item.available {
    border-left: 4px solid #20bf6b;
}

.domain-list-item.unavailable {
    border-left: 4px solid #eb3b5a;
    opacity: 0.7;
}

/* Domain Name */
.domain-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.domain-text {
    color: #333;
    font-weight: 500;
}

.domain-tld {
    color: #0066cc;
    font-weight: 600;
}

.promo-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Domain Price */
.domain-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.875rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #20bf6b;
}

.promo-text {
    font-size: 0.75rem;
    color: #999;
    display: block;
}

/* Domain Action Button */
.domain-action {
    min-width: 140px;
}

.btn-domain-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-domain-cart:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.btn-domain-cart.added {
    background: #20bf6b;
}

.btn-domain-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .domain-list-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
    
    .domain-name {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .domain-price {
        justify-content: center;
    }
    
    .domain-action {
        width: 100%;
    }
    
    .btn-domain-cart {
        width: 100%;
        justify-content: center;
    }
    
    .domain-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-toggle {
        justify-content: center;
    }
}

/* =====================================================
   CART NOTIFICATION POPUP
   ===================================================== */

.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.cart-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
}

.cart-notification-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #20bf6b, #26de81);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-notification-icon i {
    color: white;
    font-size: 1.5rem;
}

.cart-notification-text {
    flex: 1;
}

.cart-notification-text strong {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.cart-notification-text p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

.cart-notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cart-notification-close:hover {
    color: #333;
}

.cart-notification-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
}

.cart-notification-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cart-notification-actions .btn-outline {
    background: white;
    border: 2px solid #0066cc;
    color: #0066cc;
}

.cart-notification-actions .btn-outline:hover {
    background: #0066cc;
    color: white;
}

.cart-notification-actions .btn-success {
    background: #20bf6b;
    color: white;
    border: none;
}

.cart-notification-actions .btn-success:hover {
    background: #1da85c;
}

/* =====================================================
   HEADER MENU FIXES
   ===================================================== */

/* Main Navigation */
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.main-nav .nav-item > a:hover,
.main-nav .nav-item > a.active {
    color: #0066cc;
}

.main-nav .nav-item > a i.fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.main-nav .nav-item:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Fixes */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 0.75rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Dropdown */
.nav-dropdown.mega-dropdown {
    display: flex;
    min-width: 400px;
    padding: 1.5rem;
    gap: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.nav-item:hover > .nav-dropdown.mega-dropdown {
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown .dropdown-section {
    flex: 1;
    min-width: 150px;
}

.nav-dropdown .dropdown-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.nav-dropdown .dropdown-section a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-dropdown .dropdown-section a:hover {
    color: #0066cc;
    padding-left: 0.25rem;
}

.nav-dropdown .dropdown-section a i {
    width: 20px;
    margin-right: 0.5rem;
    color: #0066cc;
    font-size: 0.85rem;
}

/* Simple Dropdown (non-mega) */
.nav-dropdown:not(.mega-dropdown) a {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-dropdown:not(.mega-dropdown) a:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.nav-dropdown:not(.mega-dropdown) a i {
    width: 20px;
    margin-right: 0.5rem;
    color: #0066cc;
}

/* SSL Add to Cart button style */
.ssl-add-to-cart-btn {
    width: 100%;
}

.ssl-add-to-cart-btn.btn-added {
    background: #20bf6b !important;
    border-color: #20bf6b !important;
}

/* =====================================================
   QUICK SUGGESTIONS DROPDOWN
   ===================================================== */

.quick-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.quick-suggestions.show {
    display: block;
}

.quick-suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-suggestion-item:hover {
    background: #f8f9fa;
}

.quick-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-domain {
    font-weight: 500;
}

.suggestion-tld {
    color: #0066cc;
}

.suggestion-price {
    color: #20bf6b;
    font-weight: 600;
}

/* =====================================================
   LOADING STATE FOR SEARCH
   ===================================================== */

.search-loading {
    text-align: center;
    padding: 3rem;
}

.search-loading i {
    font-size: 2.5rem;
    color: #0066cc;
    animation: spin 1s linear infinite;
}

.search-loading p {
    margin-top: 1rem;
    color: #666;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   WHOIS RESULTS
   ===================================================== */

.whois-result-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.whois-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.whois-header h3 {
    margin: 0;
}

.whois-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.whois-status.registered {
    background: #e63946;
    color: white;
}

.whois-status.available {
    background: #20bf6b;
    color: white;
}

.whois-details {
    padding: 1.5rem;
}

.whois-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.whois-label {
    width: 150px;
    font-weight: 500;
    color: #666;
}

.whois-value {
    flex: 1;
    color: #333;
}

/* =====================================================
   LOGIN REQUIRED MODAL
   ===================================================== */

.login-required-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-required-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.login-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-required-modal.show .login-modal-content {
    transform: scale(1);
}

.login-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.login-modal-icon i {
    font-size: 2rem;
    color: white;
}

.login-modal-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #333;
}

.login-modal-content p {
    color: #666;
    margin: 0 0 1.5rem;
}

.login-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* =====================================================
   CHECKOUT PROMPT BAR
   ===================================================== */

.checkout-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.checkout-prompt.show {
    transform: translateY(0);
}

.checkout-prompt-content {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.checkout-prompt-content > i {
    font-size: 2.5rem;
    color: #4ade80;
}

.checkout-prompt-text {
    flex: 1;
    min-width: 200px;
}

.checkout-prompt-text strong {
    display: block;
    font-size: 1.1rem;
}

.checkout-prompt-text span {
    opacity: 0.9;
    font-size: 0.9rem;
}

.checkout-prompt-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =====================================================
   SELECTED TLD BADGE
   ===================================================== */

.selected-tld-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #20bf6b, #26de81);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.selected-tld-badge .remove-tld {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: background 0.2s ease;
}

.selected-tld-badge .remove-tld:hover {
    background: rgba(255,255,255,0.4);
}

.tld-note {
    font-size: 0.9rem;
}

.tld-note strong {
    color: #20bf6b;
}

.tld-note a {
    color: #0066cc;
    text-decoration: none;
}

.tld-note a:hover {
    text-decoration: underline;
}

/* =====================================================
   PROMO & PREMIUM BADGES
   ===================================================== */

.promo-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}
