@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');

:root {
    --bg: #060607;
    --panel: #0d0e11;
    --line: rgba(255, 45, 45, 0.18);
    --text: #e2dfdb;
    --muted: #8b8883;
    --red: #ff2a2a;
    --red-glow: rgba(255, 42, 42, 0.35);
    --white: #f5f3ef;
    --serif: Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 125px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

/* =========================================================
   STAR WARS / SITH HOLOCRON SCANLINES & HUD GRID
   ========================================================= */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: .08;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.5) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
}

/* Custom Sci-Fi Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #060607;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 42, 42, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 42, 42, 0.8);
}

/* =========================================================
   TOPBAR HEADER — SITH IMPERIAL COMMAND BAR
   ========================================================= */

.topbar {
    height: 68px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 max(4vw, 24px);
    position: sticky;
    top: 0;
    background: rgba(6, 6, 7, 0.94);
    backdrop-filter: blur(14px);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    color: var(--muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.nav>a:hover,
.text-link:hover {
    color: var(--red);
    text-shadow: 0 0 10px var(--red-glow);
}

.menu-toggle {
    display: none;
    position: absolute;
    left: 22px;
    background: none;
    border: 0;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
}

.topbar-discount {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid rgba(255, 42, 42, 0.35);
    padding: 6px 14px;
    border-radius: 2px;
}

.discount-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #ff9999;
    text-transform: uppercase;
}

.discount-label strong {
    color: #fff;
    font-weight: 800;
}

.discount-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
    animation: sithPulse 1.5s infinite ease-in-out;
}

@keyframes sithPulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
        box-shadow: 0 0 4px var(--red);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        box-shadow: 0 0 12px var(--red);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
        box-shadow: 0 0 4px var(--red);
    }
}

/* =========================================================
   HERO SECTION — STAR WARS REDM VORTEX
   ========================================================= */

.hero {
    min-height: 680px;
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #1f0a0a 0%, #0d0707 40%, #060607 80%);
    border-bottom: 1px solid var(--line);
}

/* Sci-fi background grid lines overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 42, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 42, 42, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-inner {
    width: min(780px, 90%);
    padding: 50px 0 65px;
    position: relative;
    z-index: 1;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 28px;
    width: min(420px, 80%);
    filter: drop-shadow(0 0 25px rgba(255, 42, 42, 0.35));
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.intro {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    line-height: 1.75;
    color: #c9c5bf;
    margin: 0 auto 28px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 26px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--red);
    box-shadow: 0 0 15px var(--red-glow);
}

.button-light {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 0 12px rgba(255, 42, 42, 0.4);
}

.button-light:hover {
    background: #ff4d4d;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.7);
}

.button-dark {
    background: rgba(255, 255, 255, .02);
    color: #e7e4df;
}

.stats {
    display: flex;
    justify-content: center;
    margin: 50px auto 0;
    background: rgba(13, 14, 17, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 15px 0;
}

.stat {
    padding: 0 28px;
    min-width: 150px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.stat:last-child {
    border: 0;
}

.stat strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.4);
}

.stat span {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--muted);
}

/* =========================================================
   SPOTLIGHT & CATALOGUE SECTIONS
   ========================================================= */

.spotlight-section,
.section {
    padding: 85px max(4vw, 24px);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.spotlight-wrapper,
.section {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.spotlight-heading h2,
.section h2 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
    font-weight: 800;
    color: #fff;
}

.spotlight-heading h2 em,
.section h2 em {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: none;
    color: var(--red);
    text-shadow: 0 0 12px var(--red-glow);
}

.spotlight-dual-grid,
.script-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.spotlight-dual-grid {
    grid-template-columns: 1fr 1fr;
}

.spotlight-window,
.script-card,
.term-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 24px;
    position: relative;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.spotlight-window:hover,
.script-card:hover,
.term-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 42, 42, 0.5);
    box-shadow: 0 10px 30px rgba(255, 42, 42, 0.15);
}

/* HUD Corner Brackets on Hover */
.script-card::before,
.spotlight-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--red);
    border-left: 2px solid var(--red);
    opacity: 0;
    transition: opacity 0.2s;
}

.script-card:hover::before,
.spotlight-window:hover::before {
    opacity: 1;
}

.card-art,
.spotlight-art {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #040404;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.card-art img.package-image,
.spotlight-art img.package-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.card-content h3,
.spotlight-content-minimal h3 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    margin: 16px 0 8px;
    color: #fff;
    letter-spacing: 0.03em;
}

.card-content p,
.spotlight-content-minimal p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   STAMPS & BADGES (SITH RED ACCENTS)
   ========================================================= */

.release-stamp,
.featured-stamp,
.discount-stamp,
.top-pick-stamp {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: rgba(13, 14, 17, 0.92);
    border: 1px solid rgba(255, 42, 42, 0.5);
    color: #ff9999;
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    z-index: 3;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.discount-stamp,
.top-pick-stamp {
    top: auto;
    bottom: 14px;
    left: auto;
    right: 14px;
    background: rgba(255, 42, 42, 0.85);
    color: #fff;
    border-color: #ff6666;
    box-shadow: 0 0 10px var(--red-glow);
}

/* =========================================================
   CARD FOOTERS & ACTION BUTTONS
   ========================================================= */

.card-footer,
.spotlight-content-minimal .card-footer {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.price {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.card-action-buttons-stacked {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.script-action-btn,
.catalog-btn {
    width: 100% !important;
    border-radius: 2px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700 !important;
    font-size: 9px !important;
    letter-spacing: 0.1em !important;
    padding: 10px 8px !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.script-buy-btn,
.catalog-btn-buy {
    background: rgba(255, 42, 42, 0.15) !important;
    border: 1px solid rgba(255, 42, 42, 0.5) !important;
    color: #ffcccc !important;
}

.script-buy-btn:hover,
.catalog-btn-buy:hover {
    background: rgba(255, 42, 42, 0.35) !important;
    border-color: var(--red) !important;
    color: #fff !important;
    box-shadow: 0 0 12px var(--red-glow);
}

.script-cart-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--line) !important;
    color: var(--text) !important;
}

.script-cart-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* =========================================================
   CART DRAWER & MODALS (DARK SITH INTERFACE)
   ========================================================= */

.cart-drawer-panel,
.modal-card,
.cookie-banner {
    background: #0d0e11 !important;
    border: 1px solid rgba(255, 42, 42, 0.35) !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(255, 42, 42, 0.05);
}

.cart-drawer-header h3,
.modal-details h2 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    color: #fff;
    letter-spacing: 0.05em;
}

.cart-drawer-close,
.modal-close {
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
}

.cart-drawer-close:hover,
.modal-close:hover {
    color: var(--red);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 1024px) {

    .spotlight-dual-grid,
    .script-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 67px;
        left: 0;
        right: 0;
        background: #060607;
        border-bottom: 1px solid var(--line);
        padding: 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .nav.open {
        display: flex;
    }

    .spotlight-dual-grid,
    .script-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 15px;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* IMPERIAL FOOTER NEWSLETTER INTEGRATION (MAX WIDTH) */
.newsletter-card {
    grid-column: 1 / -1;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 32px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
    border-radius: 4px 0 0 4px;
}

.newsletter-content h3 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 26px;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.newsletter-content p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.newsletter-form input.form-control {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

.newsletter-form button {
    min-height: 52px !important;
    padding: 0 32px !important;
    white-space: nowrap !important;
}

/* =========================================================
   TITANS COOKIE CONSENT BANNER
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    background: #111110;
    border: 1px solid rgba(177, 151, 115, 0.35);
    padding: 22px;
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95);
    display: none;
    /* Κρυφό μέχρι να το καλέσει η JS */
    flex-direction: column;
    gap: 14px;
    animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpCookie {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner p {
    margin: 0;
    color: #9e9b94;
    font-size: 12px;
    line-height: 1.6;
    font-family: 'DM Sans', Arial, sans-serif;
}

.cookie-banner p a {
    color: #f3e8d7;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner p a:hover {
    color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: rgba(177, 151, 115, 0.15);
    border-color: rgba(177, 151, 115, 0.5);
    color: #f3e8d7;
}

.cookie-btn-accept:hover {
    background: rgba(177, 151, 115, 0.3);
    border-color: #f3e8d7;
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================================
   FOOTER SOCIAL LINKS STYLING
   ========================================================= */
.footer-social-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s ease;
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon-link:hover {
    background: rgba(177, 151, 115, 0.15);
    border-color: rgba(177, 151, 115, 0.5);
    color: #fff;
    transform: translateY(-2px);
}