/**
 * LK Domain Module - Styles
 * File: /modules/registrars/lkdomain/assets/lkdomain.css
 * Version: 1.0
 */

/* Currency Tabs */
.lk-currency-tabs {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.lk-currency-tabs-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.lk-currency-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.lk-cur-tab {
    border: 2px solid #dee2e6;
    background: #fff;
    padding: 8px 20px;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lk-cur-tab:hover {
    border-color: #0066cc;
    background: #f0f8ff;
}

.lk-cur-tab.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.currency-symbol {
    font-size: 18px;
    font-weight: 700;
}

/* Full width container */
.lk-full-width-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .lk-full-width-container {
        width: 100%;
        position: static;
        left: auto;
        right: auto;
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Card Grid Layout */
.lk-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.lk-card {
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 2rem;
    background: #fff;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.lk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lk-featured {
    border-color: #0066cc;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

/* Category Badges */
.lk-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lk-badge-cat1 {
    background: linear-gradient(135deg, #28a745, #20c936);
}

.lk-badge-cat2 {
    background: linear-gradient(135deg, #0066cc, #004499);
}

.lk-badge-cat3 {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.lk-badge-cat4 {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.lk-badge-cat5 {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.lk-category-info {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.domain-category {
    display: block;
    font-size: 0.8rem;
    margin-top: 2px;
    color: #666;
}

.lk-card h5 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #333;
}

.lk-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.lk-domain {
    font-weight: 700;
    font-size: 1.3rem;
    color: #333;
}

.lk-price {
    color: #0066cc;
    font-weight: 700;
    font-size: 1.4rem;
}

.lk-includes-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 500;
}

.lk-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Included Domains */
.lk-included-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lk-domain-tag {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: #1565c0;
    font-weight: 600;
}

/* Status Boxes */
.lk-status-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lk-registered-box {
    background: #ffeaea;
    border: 1px solid #e57373;
    border-left: 5px solid #d32f2f;
}

.lk-restricted-box {
    background: #fff3e0;
    border: 1px solid #f57c00;
    border-left: 5px solid #ef6c00;
}

.lk-status-box h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.lk-registered-box h4 {
    color: #c62828;
}

.lk-restricted-box h4 {
    color: #ef6c00;
}

.lk-details {
    margin-left: 1rem;
}

.lk-details div {
    margin-bottom: 0.5rem;
}

.lk-details b {
    color: #b71c1c;
}

.lk-requested-box {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.lk-unavailable-box {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Additional Domains */
.lk-section-label {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    text-align: center;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.lk-additional-domains,
.lk-suggested-domains {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lk-domain-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.lk-domain-option:hover {
    background: #e9ecef;
}

.domain-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.domain-price {
    color: #0066cc;
    font-weight: 600;
    margin: 0 1rem;
}

/* Spinner */
.domain-lookup-loader {
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: #0066cc;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.domain-lookup-loader i {
    font-size: 2rem;
    margin-right: 1rem;
}

/* Alert */
.alert-warning {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    padding: 1.5rem;
    border-radius: 8px;
    color: #8a6d3b;
    margin: 1.5rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lk-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* TLD Helper */
.lk-tld-helper {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

.lk-tld-notice {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lk-tld-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-tld-suggestion {
    background: white;
    border: 2px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lk-tld-suggestion:hover {
    border-color: #0066cc;
    background: #f0f8ff;
    transform: translateY(-1px);
}

.lk-tld-suggestion strong {
    color: #0066cc;
}

#spotlightTlds {
    display: none !important;
}

/* Subdomain-First Search Styles */
/* Add these styles to your /modules/registrars/lkdomain/assets/lkdomain.css file */

.lk-subdomain-search-header {
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.lk-subdomain-search-header h4 {
    margin-top: 0;
    color: #155724;
    font-size: 24px;
}

/* Featured subdomain card */
.lk-featured-subdomain-card {
    margin: 20px 0;
}

.lk-requested-card {
    border: 3px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.lk-requested-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
}

.lk-success-badge {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.lk-price-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.lk-price-label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.lk-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    display: inline-block;
}

.lk-price-period {
    font-size: 16px;
    color: #6c757d;
    margin-left: 5px;
}

.lk-category-display {
    margin: 15px 0;
}

.lk-register-button {
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lk-register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.lk-register-note {
    color: #28a745;
    font-style: italic;
    margin: 15px 0 0 0;
    font-size: 16px;
}

/* Alternatives section */
.lk-alternatives-section {
    margin-top: 40px;
}

.lk-alternatives-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lk-alternatives-header:hover {
    background-color: #e9ecef !important;
}

.lk-alternatives-header h5 {
    color: #495057;
}

.lk-expand-icon {
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.lk-expand-icon.expanded {
    transform: rotate(90deg);
}

.lk-alternatives-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 20px;
    background: #fafafa;
}

.lk-alternative-section {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lk-alternative-section h6 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Subdomain options in alternatives */
.lk-subdomain-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.lk-subdomain-option:hover {
    border-color: #007bff;
}

.lk-subdomain-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.lk-subdomain-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.lk-subdomain-category {
    color: #6c757d;
}

.lk-subdomain-price {
    font-weight: 600;
    color: #007bff;
}

.lk-subdomain-option .btn {
    min-width: 120px;
}

/* Responsive design */
@media (max-width: 768px) {
    .lk-requested-card {
        padding: 20px;
    }

    .lk-price-amount {
        font-size: 28px;
    }

    .lk-register-button {
        font-size: 16px;
        padding: 12px 25px;
        width: 100%;
    }

    .lk-subdomain-option {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .lk-subdomain-details {
        justify-content: space-between;
    }

    .lk-subdomain-option .btn {
        width: 100%;
    }

    .lk-alternatives-content {
        padding: 15px;
    }

    .lk-alternative-section {
        padding: 15px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .lk-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lk-price-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .lk-included-domains {
        flex-direction: column;
        align-items: center;
    }

    .lk-domain-option {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .lk-card {
        padding: 1.5rem;
    }

    .lk-currency-tabs-inner {
        flex-direction: column;
        gap: 10px;
    }

    .lk-cur-tab {
        width: 100%;
    }
}

/* Utility classes */
.w-hidden {
    display: none !important;
}

/* ========================================
   CART PAGE CUSTOMIZATIONS
   ======================================== */

/* Hide the addon products section */
.row.addon-products,
.addon-products-container,
#addon-products,
.domain-addon-products {
    display: none !important;
}

/* Hide specific TLD rows if needed */
.tld-row[data-category*="Other"] {
    display: none !important;
}

/* Hide the "Browse extensions by category" section */
.tld-filters {
    display: none !important;
}

/* Hide the entire domain pricing table if needed */
.domain-pricing {
    display: none !important;
}

/* Hide specific columns in the pricing table */
/* Example: Hide transfer column */
.tld-pricing-header .col-4:nth-child(2),
.tld-row .col-4:nth-child(2) {
    display: none !important;
}

/* Hide the featured TLD section */
.featured-tlds-container {
    display: none !important;
}

/* Custom styling for cart items */
.cart-item .lk-category-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 10px;
}

.cart-item .currency-badge {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}