/* ==========================================================================
   ZZX UNDERTALE TRANSLATIONS - PURE STEAM POSTER SHOWCASE CSS
   ========================================================================== */

:root {
    --bg-dark: #0e141b;
    --card-bg: #1b2838;
    --ut-white: #ffffff;
    --ut-yellow: #ffc82c;
    --ut-red: #ff3333;
    --ut-green: #5cbe4a;
    --ut-cyan: #00e5ff;
    --font-pixel: 'Press Start 2P', monospace;
    --font-retro: 'VT323', monospace;
    --font-sans: 'Space Grotesk', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--ut-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Minimal Header */
.showcase-header {
    text-align: center;
    padding: 35px 20px 15px 20px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--ut-white);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.header-subtitle {
    font-family: var(--font-retro);
    font-size: 1.4rem;
    color: var(--ut-yellow);
    margin-top: 8px;
}

.heart-pulse {
    font-size: 2.2rem;
    color: var(--ut-red);
    display: inline-block;
    animation: heartPulse 1.6s infinite ease-in-out;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--ut-red)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 15px var(--ut-red)); }
}

/* Showcase Container */
.showcase-container {
    max-width: 1280px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    width: 100%;
}

/* Poster Grid (Pure Steam Store Poster Grid) */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Individual Poster Card - PURE POSTER ONLY */
.poster-card {
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--ut-yellow);
    box-shadow: 0 15px 35px rgba(255, 200, 44, 0.4);
}

.poster-image-wrap {
    width: 100%;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain; /* Displays full poster without cropping text! */
    display: block;
    transition: transform 0.3s ease;
}

.poster-card:hover .poster-image-wrap img {
    transform: scale(1.04);
}

/* Steam Discount Style Overlay Badge */
.poster-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #4c6b22;
    color: #a4d007;
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 2px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.9);
    border: 1px solid #a4d007;
    letter-spacing: 0.5px;
    z-index: 2;
}

.poster-badge.badge-wip {
    background: #6b5a22;
    color: var(--ut-yellow);
    border-color: var(--ut-yellow);
}

.poster-badge.badge-exclusive {
    background: #6b2222;
    color: #ff6666;
    border-color: #ff6666;
}

/* Steam Game Page Modal */
.steam-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.steam-modal-card {
    background: #171d25;
    border: 2px solid #3d4450;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
    color: #acb2b8;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid #666;
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--ut-red);
    border-color: var(--ut-red);
}

/* Modal Content Styling */
.modal-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #1b2838 0%, #101822 100%);
    border-bottom: 1px solid #2a475e;
}

@media (max-width: 768px) {
    .modal-hero {
        grid-template-columns: 1fr;
    }
}

.modal-poster-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border: 2px solid #2a475e;
    object-fit: contain;
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-game-title {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    color: var(--ut-white);
    margin-bottom: 10px;
}

.modal-meta {
    font-family: var(--font-retro);
    font-size: 1.25rem;
    color: #66c0f4;
    margin-bottom: 15px;
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #c6d4df;
    margin-bottom: 20px;
}

/* Download Steam Button */
.steam-download-btn {
    background: linear-gradient(90deg, #47bfff 0%, #1a9fff 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(26, 159, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.steam-download-btn:hover {
    background: linear-gradient(90deg, #66cbff 0%, #33a7ff 100%);
    box-shadow: 0 8px 25px rgba(26, 159, 255, 0.6);
    transform: translateY(-2px);
}

.modal-sections {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-box {
    background: #10151d;
    border: 1px solid #2a475e;
    padding: 16px 20px;
    border-radius: 4px;
}

.modal-box h3 {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--ut-yellow);
    margin-bottom: 10px;
}

/* Hidden helper */
.hidden {
    display: none !important;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: #171d25;
    border: 2px solid #66c0f4;
    color: #fff;
    font-family: var(--font-retro);
    font-size: 1.3rem;
    padding: 12px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}
