/* css/style.css */

:root {
    --color-bg: #111111;
    /* Deep dark variant of black */
    --color-text: #E0E0E0;
    /* Off-white text */
    --color-gold: #D4AF37;
    /* Metallic gold */
    --color-gold-hover: #b9982f;
    /* Darker gold for hovers */
    --color-card-bg: #1a1a1a;
    /* Slightly lighter dark background for cards */
    --color-border: #333333;

    --font-heading: 'Metamorphous', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tło z delikatnym ziarnem lub gradientem (opcjonalnie) */
.site-wrapper {
    background: radial-gradient(circle at 50% -20%, #1a1a1a 0%, var(--color-bg) 60%);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.header {
    width: 100%;
    text-align: center;
    padding: 40px 0 20px;
}

.logo-container {
    display: inline-block;
    padding: 10px;
}

.logo-k {
    font-family: var(--font-heading);
    font-size: 10rem;
    /* Gigantyczne K na środku */
    color: var(--color-gold);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(195, 163, 67, 0.4);
    /* Delikatny efekt złocenia - przejrzyste srebro wchodzace w jasne zloto */
    background: linear-gradient(to bottom, #fcfcfc, #e0ca79, #c3a343, #e0ca79);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content {
    max-width: 1400px;
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: #ffffff;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.call-to-action {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 50px;
    font-style: italic;
}

/* Karty gier */
.games-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    margin-bottom: 50px;
}

.game-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px 20px;
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--color-gold);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--color-gold);
}

.game-card-content h2 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: normal;
    font-size: 1.8rem;
}

.game-card-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #bbbbbb;
    min-height: 45px;
}

/* Przyciski Glamour */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-bg);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Modal gry (Overlay) */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.game-modal {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: row;
    /* Gra obok Hall of Fame na desktopie */
    gap: 30px;
}

@media (max-width: 768px) {
    .game-modal {
        flex-direction: column;
        padding: 20px;
        max-height: 95vh;
        overflow-y: auto;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

#gameArea {
    flex: 2;
    background-color: #000;
    border: 2px solid #333;
    border-radius: 4px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hall-of-fame {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 4px;
    border-left: 1px solid var(--color-border);
}

.hall-of-fame h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.hall-of-fame ul {
    list-style: none;
    padding: 0;
}

.hall-of-fame li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.hall-of-fame li:last-child {
    border-bottom: none;
}

/* Stopka */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid var(--color-border);
    margin-top: 50px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-gold);
}

/* RWD do logo i nagłówków */
@media (max-width: 500px) {
    .logo-k {
        font-size: 7rem;
    }

    .welcome-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 1200px) {
    .games-container {
        gap: 15px;
    }

    .game-card {
        padding: 20px 10px;
    }

    .game-card-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 850px) {
    .games-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .games-container {
        grid-template-columns: 1fr;
    }
}