/* ========================================
   WORLD GATES v8.0 - LUXURY MONETIZATION UPDATE
   Scoped: .world-gates, .world-gate__*
   Changes: Taller cards, cinematic processing, no border at rest
   ======================================== */

/* GRID CONTAINER - Three Gates Layout */
.world-gates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
    align-items: stretch;
}

/* SINGLE GATE CARD - Taller (25% increase via aspect ratio) */
.world-gate {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3; /* Taller than 16:9 - feels like threshold not product */
    overflow: hidden;
    text-decoration: none;
    border: 1px solid transparent; /* No visible border at rest */
    background: var(--mx-ash, #19181C);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

/* Hover - premium micro-interaction: scale + lift + gold border */
.world-gate:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.55),
        0 20px 50px rgba(0, 0, 0, 0.55);
}

/* BORDER TOP ACCENT per gate - subtle on idle */
.world-gate[data-gate="muse"] { border-top: 2px solid rgba(232, 205, 181, 0.4); }
.world-gate[data-gate="mistress"] { border-top: 2px solid rgba(114, 47, 55, 0.5); }
.world-gate[data-gate="voice"] { border-top: 2px solid rgba(212, 175, 55, 0.4); }
.world-gate[data-gate="authority"] { border-top: 2px solid rgba(212, 175, 55, 0.4); }
.world-gate[data-gate="body"] { border-top: 2px solid rgba(114, 47, 55, 0.5); }

/* Hover intensifies border top */
.world-gate[data-gate="muse"]:hover { border-top-color: #e8cdb5; }
.world-gate[data-gate="mistress"]:hover { border-top-color: rgba(114, 47, 55, 0.9); }
.world-gate[data-gate="voice"]:hover { border-top-color: #d4af37; }
.world-gate[data-gate="authority"]:hover { border-top-color: #d4af37; }
.world-gate[data-gate="body"]:hover { border-top-color: rgba(114, 47, 55, 0.9); }

/* ========================================
   GATE STATES - LOCKED / UNLOCKED
   ======================================== */

/* Unlocked gate - full color, interactive */
.world-gate.gate-unlocked {
    cursor: pointer;
}

.world-gate.gate-unlocked:hover {
    transform: translateY(-4px);
}

/* Locked gate - desaturated, no hover lift */
.world-gate.gate-locked {
    cursor: not-allowed;
}

.world-gate.gate-locked .world-gate__media video {
    filter: grayscale(0.7) brightness(0.55) contrast(1.1);
}

.world-gate.gate-locked:hover {
    transform: none;
}

/* ========================================
   CINEMATIC IMAGE PROCESSING PER GATE
   ======================================== */

/* Base video processing - luxury cinematic (adjusted for readability) */
.world-gate__media video {
    filter: contrast(1.15) saturate(1.25) brightness(0.95) hue-rotate(8deg);
}

/* Voice gate: smoke/silver tint (neutral, foundation) */
.world-gate[data-gate="voice"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(220, 220, 230, 0.08) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    z-index: 2;
    pointer-events: none;
}

/* Muse gate: soft plum tint (sensual, artistic) */
.world-gate[data-gate="muse"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(120, 60, 140, 0.12) 0%,
        rgba(0, 0, 0, 0) 60%
    );
    z-index: 2;
    pointer-events: none;
}

/* Mistress / Authority gate: restrained bordeaux */
.world-gate[data-gate="mistress"]::before,
.world-gate[data-gate="authority"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(114, 47, 55, 0.12) 0%,
        rgba(0, 0, 0, 0) 60%
    );
    z-index: 2;
    pointer-events: none;
}

/* Body gate: bordeaux tint */
.world-gate[data-gate="body"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(114, 47, 55, 0.12) 0%,
        rgba(0, 0, 0, 0) 60%
    );
    z-index: 2;
    pointer-events: none;
}

/* Required status overlay for locked gates */
.world-gate__required {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.world-gate.gate-locked .world-gate__required {
    display: none; /* hidden for clean visual */
}

.world-gate__required-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.world-gate__required-status {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #d4af37;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(20, 15, 18, 0.85);
    backdrop-filter: blur(4px);
}

/* Double-bind micro-copy below status badge */
.world-gate__required-microcopy {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    max-width: 200px;
    line-height: 1.4;
}

.world-gate.gate-locked .world-gate__veil::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.world-gate.gate-locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.world-gate.gate-locked .world-gate__title {
    color: rgba(255, 255, 255, 0.4);
}

.world-gate.gate-locked .world-gate__desc {
    color: rgba(255, 255, 255, 0.3);
}

.world-gate.gate-locked .world-gate__cta {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    background: rgba(20, 15, 18, 0.7);
}

.world-gate.gate-locked:hover .world-gate__cta {
    background: rgba(20, 15, 18, 0.7);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* MEDIA LAYER (video) */
.world-gate__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.world-gate__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Muse video: shift orange glow to vibrant pink */
.world-gate[data-gate="muse"] .world-gate__media video {
    filter: hue-rotate(-45deg) saturate(1.2);
}

/* VEIL - subtle gradient for text readability without killing detail */
.world-gate__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.40) 0%,
        rgba(0, 0, 0, 0.22) 35%,
        rgba(0, 0, 0, 0.12) 65%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

/* Bottom darkening - for CTA readability */
.world-gate__veil::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* CONTENT LAYER - hidden for clean visual */
.world-gate__content {
    display: none;
}

/* TITLE - 1 line, ellipsis */
.world-gate__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

/* Title accent colors */
.world-gate[data-gate="muse"] .world-gate__title { color: #e8cdb5; }
.world-gate[data-gate="mistress"] .world-gate__title { color: #ff5566; }
.world-gate[data-gate="voice"] .world-gate__title { color: #c9a0dc; }
.world-gate[data-gate="authority"] .world-gate__title { color: #d4af37; }
.world-gate[data-gate="body"] .world-gate__title { color: #ff5566; }

/* DESCRIPTION - 2 lines max, line-clamp */
.world-gate__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0,0,0,1);
}

/* CTA - never wrap */
.world-gate__cta {
    display: inline-block;
    width: fit-content;
    padding: 12px 24px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(20, 15, 18, 0.6);
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.world-gate:hover .world-gate__cta {
    background: var(--mx-gold, #d4af37);
    color: var(--mx-ink, #0B0B0D);
    border-color: var(--mx-gold, #d4af37);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .world-gates {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tablet */
        gap: 24px;
        padding: 0 24px;
    }

    .world-gate {
        aspect-ratio: 16 / 9;
    }

    .world-gate__content {
        max-width: 60%;
        padding: 25px;
    }

    .world-gate__title {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .world-gates {
        grid-template-columns: 1fr; /* 1 kolumna na mobile */
        gap: 24px;
        padding: 0 16px;
    }

    .world-gate {
        aspect-ratio: 16 / 9;
    }

    .world-gate__veil {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.3) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .world-gate__content {
        max-width: 70%;
        padding: 20px;
    }

    .world-gate__title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .world-gate__desc {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .world-gate__cta {
        padding: 10px 18px;
        font-size: 0.65rem;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .world-gate__media video {
        display: none;
    }

    .world-gate__media {
        background: linear-gradient(145deg, #0a0000 0%, #1a0005 50%, #0d0000 100%);
    }

    .world-gate[data-gate="muse"] .world-gate__media {
        background: linear-gradient(145deg, #1a0a05 0%, #0d0505 100%);
    }

    .world-gate[data-gate="mistress"] .world-gate__media {
        background: linear-gradient(145deg, #1a0005 0%, #0d0000 100%);
    }

    .world-gate[data-gate="voice"] .world-gate__media {
        background: linear-gradient(145deg, #0a0010 0%, #05000a 100%);
    }
}

/* ========================================
   EMPIRE 2025 - PRODUCT CARDS VERTICAL VIDEO
   ======================================== */

/* Product card video container - 16:9 horizontal */
.product-card__video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #050505;
}

.product-card__video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* IsBundle badge - Empire 2025 */
.product-card__badge--bundle {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* VIP exclusive badge */
.product-card__badge--vip {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #d4af37;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 10;
}

/* Product card grid - vertical videos */
.products-grid--vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px;
}

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

    .product-card__badge--bundle,
    .product-card__badge--vip {
        padding: 4px 8px;
        font-size: 0.55rem;
    }
}

/* ========================================
   GPT GATE REDESIGN v10.0 - Final Luxury
   Classes: .gate-card, .gate-badge, .gate-overlay
   ======================================== */

/* 1) karta bramy większa, spokojniejsza */
.gate-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 22px;
    overflow: hidden;
    min-height: 380px;
    aspect-ratio: 4 / 5;
    background: #050505;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}

.gate-card:hover {
    transform: scale(1.008);
    box-shadow: 0 22px 60px rgba(0,0,0,0.65);
}

/* VIDEO */
.gate-card video,
.gate-card .gate-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2) delikatny veil tylko pod tekstem */
.gate-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.40) 45%,
        rgba(0,0,0,0.00) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* 3) status badge top-right */
.gate-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(212,175,55,0.22);
    color: rgba(255,255,255,0.78);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 4) panel tekstowy w dole, szkło */
.gate-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    padding: 16px;
    border-radius: 18px;
    background: rgba(10,10,10,0.35);
    border: 1px solid rgba(212,175,55,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 5) typografia */
.gate-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.35rem, 1.6vw, 2.0rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(212,175,55,0.96);
    line-height: 1.05;
    margin: 0 0 8px 0;
}

.gate-desc {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.72);
    margin: 0;
    max-width: 42ch;
}

/* 6) CTA */
.gate-cta {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,55,0.38);
    color: rgba(212,175,55,0.92);
    background: rgba(0,0,0,0.10);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.gate-card:hover .gate-cta {
    transform: translateY(-1px);
    background: rgba(212,175,55,0.10);
    border-color: rgba(212,175,55,0.55);
}

/* 7) locked state */
.gate-card.is-locked {
    cursor: not-allowed;
}

.gate-card.is-locked video,
.gate-card.is-locked .gate-video {
    filter: saturate(0.85) contrast(1.05) brightness(0.85);
}

.gate-card.is-locked .gate-cta {
    border-color: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.62);
}

.gate-card.is-locked:hover {
    transform: none;
}

/* 8) mobile */
@media (max-width: 768px) {
    .gate-card {
        min-height: 65vh;
        aspect-ratio: auto;
    }

    .gate-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gate-cta {
        justify-self: start;
    }

    .gate-title {
        font-size: 1.2rem;
    }
}

/* Tablet gate sizing */
@media (min-width: 769px) and (max-width: 1024px) {
    .gate-card {
        min-height: 320px;
        aspect-ratio: 3 / 4;
    }
}
