/*
Theme Name: Hello Elementor Child - Custom Design
Description: Child theme of Hello Elementor with custom homepage and WooCommerce design
Template: hello-elementor
Version: 2.0.0
*/

/* Import Google Fonts - Inter (Primary) and Poppins (Accent only) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* Import parent theme styles */
@import url("../hello-elementor/style.css");

/* ===== GLOBAL FONT APPLICATION ===== */
/* Apply Inter as the primary font to all elements */
* {
    font-family: var(--font-primary) !important;
}

/* Override any existing font declarations */
body, html {
    font-family: var(--font-primary) !important;
}

/* Ensure headings use Inter */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
}

/* Navigation uses Inter */
.nav-link, .nav-label, .brand-link {
    font-family: var(--font-primary) !important;
}

/* Buttons use Inter */
button, .btn, .hero-cta, .btn-primary {
    font-family: var(--font-primary) !important;
}

/* Forms use Inter */
input, textarea, select {
    font-family: var(--font-primary) !important;
}

/* ===== ACCENT FONT (POPPINS) FOR SPECIAL ELEMENTS ===== */
/* Use Poppins for prices, cart totals, and special call-to-actions */
.woocommerce .price,
.woocommerce .amount,
.woocommerce .cart-subtotal .amount,
.woocommerce .order-total .amount,
.woocommerce .cart_totals .amount,
.product-price,
.cart-count,
.hero-cta,
.btn-primary {
    font-family: var(--font-accent) !important;
    font-weight: 600 !important;
}

/* Special headings that need emphasis */
.hero-title,
.section-title {
    font-family: var(--font-accent) !important;
    font-weight: 700 !important;
}

/* Cart page specific elements */
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout .checkout h3,
.woocommerce .cart-collaterals h2 {
    font-family: var(--font-accent) !important;
}

/* ===== APPLE BLACK DESIGN - GLOBAL STYLES ===== */
/* Set dark theme for entire site */
body, html {
    background: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
}

/* Custom Homepage Styles */
.custom-homepage {
    font-family: var(--font-primary);
    line-height: var(--line-height-normal);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

/* ===== HERO SECTION - APPLE STYLE ===== */
.hero-section {
    background: var(--color-gradient-hero);
    color: var(--color-text-primary);
    padding: 120px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Apple-style subtle background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(88, 86, 214, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 24px;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    margin-bottom: 48px;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
    color: var(--color-text-white);
    text-decoration: none;
}

/* ===== FEATURES SECTION - APPLE CARDS ===== */
.features-section {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--color-gradient-card);
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--color-gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== PRODUCTS PREVIEW SECTION ===== */
.products-preview {
    padding: 100px 0;
    background: var(--color-bg-primary);
}

.products-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
    color: var(--color-text-white);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* WooCommerce Compatibility */
.woocommerce-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== NAVIGATION STYLES - APPLE BLACK DESIGN ===== */

/* Custom Navigation */
.custom-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Brand/Logo */
.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Navigation Lists */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-primary);
    text-decoration: none;
    border-color: rgba(0, 122, 255, 0.2);
}

.nav-item.active .nav-link {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.nav-item.active .nav-link:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-white);
    border-color: var(--color-primary-dark);
}

/* Navigation Icons */
.nav-icon {
    font-size: 1.1rem;
}

.nav-label {
    font-size: 0.95rem;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-accent);
    color: var(--color-text-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

/* Mobile Menu Toggle */
.nav-mobile-toggle {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--color-bg-secondary);
    padding: 100px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--color-border-light);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: var(--font-weight-medium);
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-primary);
    text-decoration: none;
    border-color: rgba(0, 122, 255, 0.2);
}

.mobile-nav-item.active .mobile-nav-link {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 24px 0;
}

/* Mobile Menu Open State */
.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Loading States */
.page-loading {
    pointer-events: none;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1002;
    animation: loadingProgress 1s ease-in-out infinite;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1003;
}

@keyframes loadingProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Page Content Adjustments */
.custom-homepage,
.site-content {
    margin-top: 70px; /* Account for fixed navigation */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu,
    .nav-user {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .custom-homepage,
    .site-content {
        margin-top: 60px;
    }
    
    .mobile-menu-content {
        width: 280px;
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .mobile-menu-content {
        width: 100%;
    }
}

/* Navigation Hover Effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}
