/**
 * Turkotag Premium Components
 * Reusable component styles for premium mobile app publisher experience
 * Apple/Stripe/Linear inspired design language
 */

/* ========================================
   PREMIUM SECTION BASE
   ======================================== */
.section-premium {
    padding: var(--space-section) 0;
    position: relative;
}

.section-premium-lg {
    padding: var(--space-section-lg) 0;
}

.section-header-centered {
    text-align: center;
    margin-bottom: var(--space-block);
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: var(--space-4);
}

.section-title-premium {
    font-family: var(--font-heading);
    font-size: var(--text-heading-1);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
    line-height: 1.15;
}

.section-subtitle-premium {
    font-size: var(--text-body-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   ENHANCED HERO
   ======================================== */
.hero-enhanced {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-section-lg) 0 var(--space-section);
    position: relative;
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 168, 83, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Noise texture */
.hero-enhanced::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.hero-content-narrow {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--container-hero);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
    margin-bottom: var(--space-8);
}

.hero-title-display {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, var(--text-display));
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0 0 var(--space-6);
}

.hero-title-display .highlight {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-display {
    font-size: clamp(1rem, 2.5vw, var(--text-body-lg));
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-10);
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   TRUST STRIP
   ======================================== */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6) var(--space-4);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-strip-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .trust-strip {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .trust-strip-item {
        font-size: var(--text-xs);
    }
}

/* ========================================
   ENHANCED APP CARD
   ======================================== */
.app-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all 0.4s var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.app-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-card-premium:hover {
    border-color: rgba(212, 168, 83, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(212, 168, 83, 0.1);
}

.app-card-premium:hover::before {
    opacity: 1;
}

.app-card-premium .app-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.app-card-premium .app-name {
    font-size: var(--text-heading-3);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}

.app-card-premium .app-tagline {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   FEATURE GRID
   ======================================== */
.feature-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.feature-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: left;
    transition: all 0.3s var(--ease-out);
}

.feature-card-premium:hover {
    border-color: var(--accent-gold-border);
    transform: translateY(-4px);
}

.feature-card-premium .feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold-muted), transparent);
    border-radius: var(--radius-lg);
    color: var(--accent-gold);
    margin-bottom: var(--space-5);
}

.feature-card-premium .feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card-premium .feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

.feature-card-premium .feature-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ========================================
   SCREENSHOT GALLERY
   ======================================== */
.screenshot-gallery-premium {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshot-gallery-premium::-webkit-scrollbar {
    display: none;
}

.screenshot-item-premium {
    flex-shrink: 0;
    scroll-snap-align: center;
    position: relative;
}

.screenshot-item-premium img {
    height: 480px;
    width: auto;
    border-radius: var(--radius-2xl);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s var(--ease-premium);
}

.screenshot-item-premium:hover img {
    transform: scale(1.02);
}

/* Device frame effect */
.screenshot-item-premium::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

/* ========================================
   FAQ ACCORDION ENHANCED
   ======================================== */
.faq-list-premium {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-item-premium {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item-premium:first-child {
    border-top: 1px solid var(--border-subtle);
}

.faq-question-premium {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question-premium:hover {
    color: var(--accent-gold);
}

.faq-icon-premium {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.faq-item-premium.active .faq-icon-premium {
    transform: rotate(45deg);
    color: var(--accent-gold);
}

.faq-answer-premium {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-item-premium.active .faq-answer-premium {
    max-height: 600px;
}

.faq-answer-content-premium {
    padding-bottom: var(--space-6);
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========================================
   ENHANCED FOOTER
   ======================================== */
.footer-premium {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .site-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-brand-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.footer-column-title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin: 0 0 var(--space-5);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

.footer-social-links {
    display: flex;
    gap: var(--space-4);
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-social-links a:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ========================================
   PRIMARY BUTTON ENHANCED
   ======================================== */
.btn-primary-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 168, 83, 0.35);
    color: var(--bg-primary);
}

.btn-primary-premium:hover::before {
    opacity: 1;
}

.btn-primary-premium span {
    position: relative;
    z-index: 1;
}

.btn-secondary-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.btn-secondary-premium:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ========================================
   CONTAINER REFINEMENTS
   ======================================== */
.container-premium {
    width: 100%;
    max-width: var(--container-content);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container-narrow-premium {
    max-width: var(--container-narrow);
}

/* ========================================
   RESPONSIVE REFINEMENTS
   ======================================== */
@media (max-width: 768px) {
    .section-premium {
        padding: var(--space-12) 0;
    }

    .section-premium-lg {
        padding: var(--space-16) 0;
    }

    .hero-enhanced {
        min-height: auto;
        padding: var(--space-16) 0 var(--space-12);
    }

    .hero-title-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title-premium {
        font-size: var(--text-heading-2);
    }

    .screenshot-item-premium img {
        height: 380px;
    }

    .screenshot-item-premium::before {
        display: none;
    }
}