/* ==========================================================================
   landing-enhance.css — vibrant gaming polish for IEC Games AE landing
   Loaded AFTER dist/css/style.css → overrides via cascade (source order).
   Additive only: no HTML structure / layout-grid rewrites. Safe to remove.
   Palette mirrors src/scss/abstracts/_variables.scss.
   ========================================================================== */

:root {
    --le-primary: #535FD7;
    --le-primary-hover: #7C85E1;
    --le-primary-deep: #212880;
    --le-accent: #61EFFD;
    --le-amber: #FFBC48;
    --le-ink: #182538;
    --le-muted: #6B7A90;
    --le-surface: #FFFFFF;
    --le-border: #EEF1F6;
}

/* --------------------------------------------------------------------------
   Header legal nav — full-width centered bar below brand/contact row
   -------------------------------------------------------------------------- */
/* template sets flex-wrap:nowrap at >medium — re-enable wrap so nav drops to its own row */
.site-header-inner { flex-wrap: wrap; }

.header-nav {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--le-border);
}

.header-nav a {
    position: relative;
    color: var(--le-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 2px;
    transition: color 0.2s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--le-primary), var(--le-accent));
    transition: width 0.25s ease;
}

.header-nav a:hover { color: var(--le-primary); }
.header-nav a:hover::after { width: 100%; }
.header-nav a:focus-visible {
    outline: 2px solid var(--le-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Header — clean rounded logo, tidy bar
   -------------------------------------------------------------------------- */
.site-header { padding-top: 26px; }

/* inline width/height on the logo img → override with !important */
.header-brand .header-logo-image.asset-light {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(24, 37, 56, 0.18);
    background: #fff;
}

.header-contact-item {
    background: #fff;
    box-shadow: 0 2px 10px rgba(24, 37, 56, 0.06);
}

/* --------------------------------------------------------------------------
   Hero — stronger gradient title + CTA buttons
   -------------------------------------------------------------------------- */
.hero-title {
    background: linear-gradient(110deg, var(--le-primary-deep) 0%, var(--le-primary) 45%, var(--le-accent) 110%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero-paragraph { color: var(--le-muted); }

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
    max-width: none;
}

.hero .button {
    text-transform: none;
    border-radius: 12px;
    height: auto;
    padding: 14px 28px;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero .button-primary {
    background: linear-gradient(135deg, var(--le-primary) 0%, var(--le-primary-deep) 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(83, 95, 215, 0.35);
}

.hero .button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(83, 95, 215, 0.45);
}

.hero .button-ghost {
    background: #fff !important;
    color: var(--le-primary) !important;
    border: 1.5px solid rgba(83, 95, 215, 0.30) !important;
    box-shadow: 0 4px 14px rgba(24, 37, 56, 0.06);
}

.hero .button-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--le-primary) !important;
    box-shadow: 0 10px 22px rgba(83, 95, 215, 0.18);
}

/* round the tilted hero screenshot a touch more */
.hero-media-image.asset-light { border-radius: 14px; }

/* --------------------------------------------------------------------------
   Games — turn flat rows into elevated cards with lift-on-hover
   -------------------------------------------------------------------------- */
.games .game-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(24, 37, 56, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.games .game-card:last-child { margin-bottom: 0; }

/* neutralise template's row separator + sideways hover */
.games .game-card,
.games .game-card:last-child { border-bottom: 1px solid var(--le-border); }

.games .game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(83, 95, 215, 0.18);
}

.games .game-image {
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(24, 37, 56, 0.16);
}

.games .game-image img { height: 210px; }

.games .game-title { font-weight: 500; }

/* accent pill before category */
.games .game-category {
    display: inline-block;
    color: var(--le-primary-deep);
    background: rgba(83, 95, 215, 0.10);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 999px;
}

/* Store badges — cleaner, vibrant hover */
.games .store-badge {
    border: 1px solid var(--le-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 37, 56, 0.05);
}

.games .store-badge:hover {
    background: linear-gradient(135deg, var(--le-primary) 0%, var(--le-primary-deep) 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(83, 95, 215, 0.30);
    transform: translateY(-3px);
}

.games .game-rating {
    background: rgba(255, 188, 72, 0.14);
    border: 1px solid rgba(255, 188, 72, 0.35);
}

/* --------------------------------------------------------------------------
   Section rhythm
   -------------------------------------------------------------------------- */
.games-inner { padding-bottom: 96px; }

.games-title h2 span {
    background: linear-gradient(110deg, var(--le-primary) 0%, var(--le-accent) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Footer — accommodate new "Legal" column + accents
   -------------------------------------------------------------------------- */
@media (min-width: 641px) {
    .site-footer-inner {
        grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
    }
}

.footer-legal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-list a:hover { color: var(--le-accent); }

.footer-section-title {
    position: relative;
    padding-bottom: 8px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--le-primary), var(--le-accent));
}

/* --------------------------------------------------------------------------
   Responsive guards
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .header-nav { gap: 18px; margin-top: 14px; }
    .games .game-card { padding: 18px; }
    .games .game-image img { height: 200px; }
    /* center the section-title underline accent on stacked footer */
    .footer-section-title::after { left: 50%; transform: translateX(-50%); }
    .hero-cta { justify-content: center; }
    .hero .button { flex: 1 1 auto; }
}
