/* PakGameDev shared site styles */

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

body {
    /* Rajdhani for Latin; Noto Nastaliq fills Urdu/Arabic glyphs */
    font-family: 'Rajdhani', 'Noto Nastaliq Urdu', sans-serif;
    font-display: swap;
    background-color: #0f172a;
    color: white;
    overflow-x: hidden;
}

/* Extra line box for Nastaliq ascenders/descenders in titles */
.urdu,
:lang(ur) {
    font-family: 'Noto Nastaliq Urdu', 'Rajdhani', sans-serif;
    line-height: 1.85;
    font-weight: 500;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 4px;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    transform: scale(1.02);
}

/* Panels that should not lift on hover (tables, forms) */
.glass-panel.glass-static:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: none;
}

/* Animated Background Gradient */
.bg-animated {
    background: linear-gradient(-45deg, #022c22, #0f172a, #1a2e05, #000000);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scanline effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 50;
    opacity: 0.3;
}

.hero-glow {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.15), inset 0 0 60px rgba(0, 0, 0, 0.35);
}

.glitch-text {
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.text-glow {
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Helper / secondary body copy - readable muted text */
.helper-text {
    color: #cbd5e1; /* slate-300, better contrast than gray-500 */
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.helper-text.lead {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.meta-text {
    color: #94a3b8; /* slate-400 */
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

tbody tr:hover {
    background: rgba(34, 197, 94, 0.06);
}

.no-filter {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
}

/* Home - cinematic What We Do tiles */
.pillar-tile {
    position: relative;
    display: block;
    width: 100%;
    min-height: 11rem;
    aspect-ratio: 16 / 10;
    border-radius: 0.875rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

@media (min-width: 640px) {
    .pillar-tile {
        min-height: 12rem;
        aspect-ratio: 3 / 2;
    }
}

@media (min-width: 1024px) {
    .pillar-tile {
        min-height: 13rem;
        aspect-ratio: 16 / 11;
    }
}

.pillar-tile__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pillar-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    transform: scale(1.03);
    transition: transform 1s ease, opacity 0.45s ease;
}

.pillar-tile__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.92) 100%);
}

.pillar-tile__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: inherit;
    padding: 1rem 1.15rem;
}

@media (min-width: 768px) {
    .pillar-tile__body {
        padding: 1.25rem 1.35rem;
    }
}

.pillar-tile:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 32px rgba(22, 163, 74, 0.22);
}

.pillar-tile:hover .pillar-tile__media img {
    transform: scale(1.1);
    opacity: 0.78;
}

.pillar-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #22c55e;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pillar-tile:hover .pillar-tile__cta {
    opacity: 1;
    transform: translateX(5px);
}

/* Join us icon row - no lift on the container */
.join-row .join-icon {
    text-decoration: none;
}

/* Events page - full-width banner tiles */
.event-banner {
    position: relative;
    display: block;
    width: 100%;
    min-height: 20rem;
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

@media (min-width: 768px) {
    .event-banner {
        min-height: 24rem;
        aspect-ratio: 21 / 9;
    }
}

@media (min-width: 1280px) {
    .event-banner {
        min-height: 28rem;
    }
}

.event-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.event-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 1.1s ease, opacity 0.5s ease;
    opacity: 0.55;
}

.event-banner--logo .event-banner__media img {
    object-fit: contain;
    object-position: 75% center;
    padding: 2rem;
    opacity: 0.7;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(22, 163, 74, 0.25), transparent 55%),
        linear-gradient(135deg, #022c22 0%, #0f172a 50%, #000 100%);
}

.event-banner__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.25) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
    transition: background 0.4s ease;
}

.event-banner__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: inherit;
    padding: 1.75rem 1.5rem;
    max-width: 40rem;
}

@media (min-width: 768px) {
    .event-banner__body {
        padding: 3rem 3.25rem;
        max-width: 48rem;
    }
}

.event-banner:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 40px rgba(22, 163, 74, 0.25);
}

.event-banner:hover .event-banner__media img {
    transform: scale(1.08);
    opacity: 0.75;
}

.event-banner--logo:hover .event-banner__media img {
    opacity: 0.95;
}

.event-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #22c55e;
    opacity: 0.85;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.event-banner:hover .event-banner__cta {
    opacity: 1;
    transform: translateX(6px);
}

.event-banner:hover .event-banner__cta i {
    animation: event-cta-pulse 1s ease infinite;
}

@keyframes event-cta-pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Games page - cinematic storefront tiles (2-col layout) */
.game-banner {
    position: relative;
    display: block;
    width: 100%;
    min-height: 18rem;
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

@media (min-width: 768px) {
    .game-banner {
        min-height: 22rem;
        aspect-ratio: 5 / 4;
    }
}

@media (min-width: 1024px) {
    .game-banner {
        min-height: 26rem;
        aspect-ratio: 16 / 11;
    }
}

.game-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.game-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    opacity: 0.72;
    transition: transform 1.1s ease, opacity 0.5s ease;
}

.game-banner__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
}

.game-banner__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: inherit;
    padding: 1.5rem 1.35rem;
}

@media (min-width: 768px) {
    .game-banner__body {
        padding: 2rem 2rem;
    }
}

.game-banner:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 36px rgba(22, 163, 74, 0.22);
}

.game-banner:hover .game-banner__media img {
    transform: scale(1.1);
    opacity: 0.9;
}

.game-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #22c55e;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-banner:hover .game-banner__cta {
    opacity: 1;
    transform: translateX(6px);
}

/* itch-games - step cards */
.itch-step {
    min-height: 100%;
}

/* itch-games - compact CTA (not full event banner) */
.itch-cta {
    position: relative;
    display: block;
    width: 100%;
    min-height: 10rem;
    aspect-ratio: 3 / 1;
    max-height: 14rem;
    border-radius: 0.875rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

@media (min-width: 768px) {
    .itch-cta {
        min-height: 11rem;
        max-height: 13rem;
        aspect-ratio: 4 / 1;
    }
}

.itch-cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.itch-cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    transform: scale(1.02);
    transition: transform 0.8s ease, opacity 0.4s ease;
}

.itch-cta__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.itch-cta__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: inherit;
    padding: 1.25rem 1.5rem;
    max-width: 36rem;
}

@media (min-width: 768px) {
    .itch-cta__body {
        padding: 1.5rem 2rem;
    }
}

.itch-cta:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 24px rgba(22, 163, 74, 0.2);
}

.itch-cta:hover .itch-cta__media img {
    transform: scale(1.06);
    opacity: 0.7;
}

.itch-cta__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #22c55e;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.itch-cta:hover .itch-cta__action {
    transform: translateX(4px);
}
