/**
 * ThemeForge Pro Fashion — Premium Animations & Colors
 *
 * @package ThemeForge_Pro_Fashion
 * @version 1.0.0
 */

/* ============================================================
   1. EXTENDED PALETTE
   ============================================================ */

:root {
    --tf-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --tf-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tf-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --tf-gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --tf-gradient-dark: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --tf-gradient-text: linear-gradient(135deg, #667eea, #764ba2);
    --tf-color-rose: #f5576c;
    --tf-color-purple: #764ba2;
    --tf-color-blue: #4facfe;
    --tf-color-yellow: #fee140;
    --tf-color-peach: #fa709a;
    --tf-color-gold: #d4af37;
    --tf-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --tf-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================================
   2. GLOBAL
   ============================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

@media (min-width: 1024px) and (pointer: fine) {
    body { cursor: none; }
    a, button, .tf-btn { cursor: none; }

    .tf-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 24px;
        height: 24px;
        border: 1px solid #171717;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
        mix-blend-mode: difference;
    }
    .tf-cursor.is-hovering {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.3);
    }
    .tf-cursor.is-hidden { opacity: 0; }
}

.tf-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--tf-gradient-2);
    z-index: 100000;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* ============================================================
   3. SCROLL REVEAL
   ============================================================ */

.tf-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--tf-ease-out), transform 0.8s var(--tf-ease-out);
}
.tf-reveal.is-visible { opacity: 1; transform: translateY(0); }

.tf-reveal[data-delay="100"] { transition-delay: 0.1s; }
.tf-reveal[data-delay="200"] { transition-delay: 0.2s; }
.tf-reveal[data-delay="300"] { transition-delay: 0.3s; }
.tf-reveal[data-delay="400"] { transition-delay: 0.4s; }
.tf-reveal[data-delay="500"] { transition-delay: 0.5s; }

.tf-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s var(--tf-ease-out), transform 0.9s var(--tf-ease-out);
}
.tf-reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.tf-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s var(--tf-ease-out), transform 0.9s var(--tf-ease-out);
}
.tf-reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.tf-reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.9s var(--tf-ease-out), transform 0.9s var(--tf-ease-out);
}
.tf-reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

/* ============================================================
   4. HERO
   ============================================================ */

.tf-hero {
    position: relative;
    overflow: hidden;
    background: var(--tf-gradient-dark);
}

.tf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(245, 87, 108, 0.4), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(79, 172, 254, 0.4), transparent 50%);
    z-index: 1;
    animation: tf-mesh-move 15s ease infinite;
}

@keyframes tf-mesh-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-20px, 20px) scale(1.1); }
    66%      { transform: translate(20px, -20px) scale(0.95); }
}

.tf-hero__overlay {
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.3) 0%, rgba(15, 12, 41, 0.6) 100%) !important;
}

.tf-hero__title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: tf-shimmer 4s linear infinite;
}

@keyframes tf-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.tf-hero__eyebrow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: tf-pulse-glow 2s ease infinite;
}

@keyframes tf-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50%      { box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.1); }
}

.tf-hero .tf-btn--light {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}
.tf-hero .tf-btn--light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.4);
}

/* ============================================================
   5. MARQUEE
   ============================================================ */

.tf-marquee {
    background: linear-gradient(90deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

.tf-marquee__track span:nth-child(odd) { color: #ffffff; }
.tf-marquee__track span:nth-child(even) { color: var(--tf-color-rose); }

/* ============================================================
   6. CATEGORIES
   ============================================================ */

.tf-category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.6s var(--tf-ease-out), box-shadow 0.6s var(--tf-ease-out);
}
.tf-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.tf-category-card:nth-child(1) .tf-category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(102, 126, 234, 0.8) 100%);
}
.tf-category-card:nth-child(2) .tf-category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(245, 87, 108, 0.8) 100%);
}
.tf-category-card:nth-child(3) .tf-category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(79, 172, 254, 0.8) 100%);
}
.tf-category-card:nth-child(4) .tf-category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(254, 225, 64, 0.8) 100%);
}
.tf-category-card__arrow { transition: transform 0.4s var(--tf-ease-bounce); }
.tf-category-card:hover .tf-category-card__arrow {
    transform: translate(8px, -50%) scale(1.2);
}

/* ============================================================
   7. PRODUCTS
   ============================================================ */

.tf-product-card { transition: transform 0.5s var(--tf-ease-out); }
.tf-product-card__image {
    border-radius: 4px;
    transition: box-shadow 0.4s ease;
}
.tf-product-card:hover .tf-product-card__image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.tf-product-card:hover .tf-product-card__image img {
    transform: scale(1.08) rotate(0.5deg);
}
.tf-product-card__wishlist {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
    transition: all 0.4s var(--tf-ease-bounce);
}
.tf-product-card:hover .tf-product-card__wishlist {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.tf-product-card__wishlist:hover {
    background: var(--tf-color-rose) !important;
    color: #ffffff !important;
    transform: scale(1.15);
}
.tf-product-card__sale {
    background: var(--tf-gradient-2) !important;
    animation: tf-sale-pulse 2s ease infinite;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}
@keyframes tf-sale-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* ============================================================
   8. SALE BANNER
   ============================================================ */

.tf-sale-banner {
    background: var(--tf-gradient-2) !important;
    background-size: 200% 200% !important;
    animation: tf-gradient-shift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes tf-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tf-sale-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: tf-float 10s ease infinite;
    z-index: 1;
}

@keyframes tf-float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-40px, 40px); }
}

.tf-sale-banner__content { position: relative; z-index: 2; }
.tf-sale-banner__title { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }

.tf-sale-banner .tf-btn--light {
    background: #ffffff;
    color: #171717;
    transition: all 0.4s var(--tf-ease-out);
}
.tf-sale-banner .tf-btn--light:hover {
    background: #171717;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   9. EDITORIAL
   ============================================================ */

.tf-editorial-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.6s var(--tf-ease-out);
}
.tf-editorial-card:hover { transform: scale(1.02); }

.tf-editorial-card:nth-child(1) .tf-editorial-card__overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(118, 75, 162, 0.7) 100%) !important;
}
.tf-editorial-card:nth-child(2) .tf-editorial-card__overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(245, 87, 108, 0.7) 100%) !important;
}

.tf-editorial-card__link { transition: gap 0.3s ease; gap: 8px; }
.tf-editorial-card:hover .tf-editorial-card__link { gap: 16px; }

/* ============================================================
   10. BRAND STORY
   ============================================================ */

.tf-brand-story__media {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.tf-brand-story__media img { transition: transform 0.8s var(--tf-ease-out); }
.tf-brand-story__media:hover img { transform: scale(1.05); }

/* ============================================================
   11. INSTAGRAM
   ============================================================ */

.tf-instagram-item {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.tf-instagram-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tf-gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.tf-instagram-item:hover::after { opacity: 0.5; }

/* ============================================================
   12. TESTIMONIALS
   ============================================================ */

.tf-testimonial {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 40px 32px !important;
    transition: all 0.4s var(--tf-ease-out);
    position: relative;
    overflow: hidden;
}
.tf-testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}
.tf-testimonial__stars {
    color: var(--tf-color-gold) !important;
    font-size: 1rem !important;
    letter-spacing: 6px !important;
    margin-bottom: 20px !important;
}
.tf-testimonial__author {
    font-size: 0.6875rem !important;
    letter-spacing: 0.2em !important;
    color: var(--tf-color-purple) !important;
    font-weight: 600 !important;
}

/* ============================================================
   13. NEWSLETTER
   ============================================================ */

.tf-newsletter {
    background: var(--tf-gradient-dark) !important;
    background-size: 200% 200% !important;
    animation: tf-gradient-shift 12s ease infinite;
    position: relative;
    overflow: hidden;
}

.tf-newsletter::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.5), transparent 70%);
    border-radius: 50%;
    animation: tf-float-slow 8s ease infinite;
    filter: blur(40px);
}

.tf-newsletter::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.5), transparent 70%);
    border-radius: 50%;
    animation: tf-float-slow 10s ease infinite reverse;
    filter: blur(40px);
}

@keyframes tf-float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -50px) scale(1.2); }
}

.tf-newsletter .tf-container { position: relative; z-index: 2; }
.tf-newsletter__title {
    background: linear-gradient(135deg, #ffffff 0%, #fee140 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tf-newsletter__input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}
.tf-newsletter__input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--tf-color-yellow) !important;
    box-shadow: 0 0 30px rgba(254, 225, 64, 0.3);
}
.tf-newsletter .tf-btn--light {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    color: #171717;
    font-weight: 600;
}
.tf-newsletter .tf-btn--light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 225, 64, 0.4);
}

/* ============================================================
   14. SECTION HEADERS
   ============================================================ */

.tf-section-eyebrow {
    background: linear-gradient(90deg, var(--tf-color-rose), var(--tf-color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
}
.tf-section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--tf-gradient-2);
    margin: 24px auto 0;
    border-radius: 2px;
}
.tf-section-header--split::after { display: none; }

/* ============================================================
   15. BUTTONS
   ============================================================ */

.tf-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--tf-ease-out);
}
.tf-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.tf-btn:hover::before { width: 300px; height: 300px; }

.tf-btn--primary:hover,
.tf-btn--dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(23, 23, 23, 0.3);
}

/* ============================================================
   16. TEXT REVEAL
   ============================================================ */

.tf-text-reveal { display: inline-block; overflow: hidden; }
.tf-text-reveal > span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s var(--tf-ease-out);
}
.tf-text-reveal.is-visible > span { transform: translateY(0); }

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
    .tf-hero__title { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
    .tf-reveal { transform: translateY(20px); }
    .tf-reveal-left, .tf-reveal-right { transform: translateY(20px); }
}

/* ============================================================
   18. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .tf-reveal, .tf-reveal-left, .tf-reveal-right, .tf-reveal-zoom {
        opacity: 1 !important;
        transform: none !important;
    }
}