/**
 * Landing Page Styles
 *
 * Conversion-optimized styles for ad campaign landing pages.
 * Designed for Facebook/Google Ads traffic with:
 * - Hero sections with prominent CTAs
 * - Trust signal bars
 * - Size guides
 * - Enhanced product cards
 * - Sticky mobile CTAs
 */

/* ==========================================================================
   Landing Page Hero Section
   ========================================================================== */

.landing-hero {
    padding: 48px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.landing-hero-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.landing-hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.5;
}

.landing-hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.landing-hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.landing-hero-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero-feature-icon svg {
    width: 20px;
    height: 20px;
}

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   Base Button Styles (required for landing pages)
   ========================================================================== */

.landing-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary, 'Cairo', sans-serif);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1.4;
}

.landing-page .btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
}

.landing-page .btn-primary {
    background: var(--color-primary, #22c55e);
    color: #fff;
}

.landing-page .btn-primary:hover {
    background: var(--color-primary-hover, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25d366 !important;
    color: #fff !important;
    border: none;
}

.btn-whatsapp:hover {
    background: #1ebe57 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Outline White Button */
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: #1e3a5f;
}

/* ==========================================================================
   Trust Signal Bar
   ========================================================================== */

.landing-trust-bar {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.landing-trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.landing-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.landing-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary-light, #e8f5e9);
    border-radius: 50%;
    color: var(--color-primary, #22c55e);
}

.landing-trust-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .landing-trust-items {
        gap: 16px;
    }

    .landing-trust-item {
        flex: 0 0 calc(50% - 8px);
        font-size: 13px;
    }

    .landing-trust-icon {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   Size Guide Section
   ========================================================================== */

.landing-size-guide {
    padding: 48px 0;
    background: #fff;
}

.landing-size-guide .section-title {
    margin-bottom: 8px;
}

.landing-size-guide .section-subtitle {
    margin-bottom: 32px;
}

.size-guide-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.size-guide-card {
    flex: 0 0 280px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-guide-card:hover,
.size-guide-card.active {
    border-color: var(--color-primary, #22c55e);
    background: var(--color-primary-light, #e8f5e9);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.size-guide-size {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary, #22c55e);
    margin-bottom: 8px;
}

.size-guide-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.size-guide-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.size-guide-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary, #22c55e);
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 640px) {
    .size-guide-cards {
        flex-direction: column;
        align-items: center;
    }

    .size-guide-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.landing-products {
    padding: 48px 0;
    background: #fff;
}

.landing-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.landing-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.landing-products-count {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Quick Filters */
.landing-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    align-items: center;
}

.quick-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.quick-filter-buttons {
    display: flex;
    gap: 8px;
}

.quick-filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-filter-btn:hover {
    border-color: var(--color-primary, #22c55e);
    color: var(--color-primary, #22c55e);
}

.quick-filter-btn.active {
    background: var(--color-primary, #22c55e);
    border-color: var(--color-primary, #22c55e);
    color: #fff;
}

.quick-filter-select {
    padding: 8px 32px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat left 12px center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    appearance: none;
    min-width: 140px;
}

.quick-filter-select:focus {
    outline: none;
    border-color: var(--color-primary, #22c55e);
}

/* Products Grid */
.landing-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .landing-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .landing-quick-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .quick-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-filter-buttons {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Enhanced Product Cards for Landing Pages
   ========================================================================== */

.landing-product-card {
    position: relative;
}

.landing-product-card .product-card-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.landing-product-card .product-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.landing-product-card .product-badge.sale {
    background: #ef4444;
    color: #fff;
}

.landing-product-card .product-badge.size {
    background: #3b82f6;
    color: #fff;
}

.landing-product-card .product-badge.preorder {
    background: #f59e0b;
    color: #fff;
}

.landing-product-card .product-badge.out-of-stock {
    background: #6b7280;
    color: #fff;
}

/* Includes Badge */
.product-card-includes {
    font-size: 12px;
    color: var(--color-primary, #22c55e);
    font-weight: 600;
    margin: 8px 0;
    padding: 4px 8px;
    background: var(--color-primary-light, #e8f5e9);
    border-radius: 4px;
    display: inline-block;
}

/* Stock Warning */
.product-card-stock-warning {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-stock-warning::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Color Badge */
.landing-product-card .variant-badge.color-badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */

.landing-why-us {
    padding: 60px 0;
    background: #f8f9fa;
}

.landing-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.landing-why-item {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.landing-why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.landing-why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--color-primary-light, #e8f5e9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #22c55e);
}

.landing-why-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.landing-why-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.landing-contact {
    padding: 60px 0;
    background: #fff;
}

.landing-contact-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 24px;
    border: 2px solid var(--color-primary-light, #bbf7d0);
}

.landing-contact-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.landing-contact-box p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.landing-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   Sticky Mobile CTA Bar
   ========================================================================== */

.landing-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.landing-sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}

.sticky-cta-whatsapp {
    color: #25d366;
}

.sticky-cta-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
}

.sticky-cta-call {
    color: var(--color-primary, #22c55e);
}

.sticky-cta-call:hover {
    background: var(--color-primary-light, #e8f5e9);
}

.sticky-cta-scroll {
    color: #333;
}

.sticky-cta-scroll:hover {
    background: #f3f4f6;
}

/* Hide sticky CTA on desktop */
@media (min-width: 769px) {
    .landing-sticky-cta {
        display: none;
    }
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */

@media (max-width: 768px) {
    .landing-hero {
        padding: 32px 0;
    }

    .landing-hero-features {
        gap: 8px;
    }

    .landing-hero-feature {
        padding: 8px 12px;
        font-size: 12px;
    }

    .landing-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .landing-hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .landing-products {
        padding: 32px 0;
    }

    .landing-products-title {
        font-size: 22px;
    }

    .landing-why-us {
        padding: 40px 0;
    }

    .landing-why-grid {
        gap: 16px;
    }

    .landing-contact {
        padding: 40px 0;
    }

    .landing-contact-box {
        padding: 32px 20px;
    }

    .landing-contact-box h2 {
        font-size: 22px;
    }

    .landing-contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .landing-contact-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Add padding at bottom for sticky CTA */
    .landing-page {
        padding-bottom: 80px;
    }
}

/* ==========================================================================
   Section Titles (Override)
   ========================================================================== */

.landing-page .section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.landing-page .section-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}
