@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #1a2533; 
    --secondary-color: #c8a45d; 
    /* Dodajmy wartości RGB dla secondary-color, aby używać w rgba() */
    --secondary-color-rgb: 200, 164, 93; 
    --light-text: #f0f0f0;
    --dark-text: #333;
    --bg-color: #0f1720; 
    --card-bg: #2c3e50; 
    --border-radius: 8px; 
    --border-radius-lg: 16px; 
    --box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.casino-header {
    background-color: var(--primary-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.casino-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--secondary-color);
    font-weight: 700;
}
.logo a {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.main-nav a.disabled-link {
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}
.main-nav a.disabled-link:hover {
    background-color: transparent;
    color: #888;
}


.player-info span {
    font-weight: 500;
}

/* Main Content */
.casino-main {
    padding: 40px 0;
}

.hero-section {
    position: relative; 
    text-align: center;
    padding: 80px 20px; 
    border-radius: var(--border-radius-lg); 
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    overflow: hidden; 
    min-height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text); 
}

#hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, -50%);
    z-index: 1; 
    filter: brightness(0.6) contrast(1.1); 
}

.hero-content {
    position: relative; 
    z-index: 2;
}

.hero-section h2 {
    font-size: 3em; 
    color: var(--secondary-color); 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); 
    font-weight: 700;
}

.hero-section p {
    font-size: 1.4em; 
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
    font-weight: 400;
}


.game-selection {
    padding-top: 20px;
}

.game-selection h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* === ZMODYFIKOWANE STYLE DLA IKON GIER (WERSJA 2) === */
.game-card img {
    width: 100px;  /* Ustawiamy maksymalną szerokość */
    height: 100px; /* Ustawiamy maksymalną wysokość */
    object-fit: contain; /* Zachowuje proporcje obrazka i mieści go w całości */
    margin: 0 auto 20px auto; /* Wycentrowanie i margines dolny */
    border-radius: var(--border-radius); /* Używamy domyślnego, mniejszego zaokrąglenia */
    /* Usunięto padding i background-color, aby polegać na przezroczystości PNG */
    /* Można dodać subtelną ramkę, jeśli potrzebne */
    /* border: 1px solid rgba(var(--secondary-color-rgb), 0.15); */
}
/* === KONIEC ZMODYFIKOWANYCH STYLÓW === */


.game-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.game-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #ccc;
    flex-grow: 1; 
}

.play-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    margin-top: auto; 
}

.play-button:hover {
    background-color: #b08f4d; 
    transform: scale(1.05);
}

.play-button.disabled-link {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}
.play-button.disabled-link:hover {
    background-color: #555;
    transform: none;
}

.game-card.placeholder img {
    filter: grayscale(1);
    opacity: 0.7;
}

/* Footer */
.casino-footer {
    background-color: var(--primary-color);
    color: #aaa;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Responsywność */
@media (max-width: 768px) {
    .casino-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav li {
        margin: 5px;
    }
    .hero-section {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-section h2 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .game-grid {
        grid-template-columns: 1fr; 
    }
    .game-card img { 
        width: 80px;  /* Mniejsze na tabletach */
        height: 80px;
        border-radius: 6px; /* Mniejsze zaokrąglenie */
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 250px;
        padding: 40px 10px;
    }
    .hero-section h2 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .game-card img { 
        width: 70px; /* Jeszcze mniejsze na telefonach */
        height: 70px;
        border-radius: 4px; /* Minimalne zaokrąglenie */
    }
}