/* 🃏 Імпорт шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Crimson+Text:wght@400;600;700&display=swap');

/* 🎯 Сучасний Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Crimson Text', 'Playfair Display', Georgia, serif;
    background: #1e293b;
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 📐 Контейнер */
.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

/* 🔗 Посилання */
a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fbbf24;
}

/* 🎯 Хедер */
header {
    background: #334155;
    color: #e2e8f0;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    border-bottom: 3px solid #dc2626;
}

img {
    max-width: 100%; /* зображення не буде більше за контейнер */
    width: 100%; /* займає всю доступну ширину */
    height: auto; /* висота автоматично пропорційна */
    margin: 10px;
    border: 1px solid #ccc;
    display: block; /* блочний елемент для кращого контролю */
}

/* Медіа-запити для різних розмірів екрана */
@media screen and (min-width: 768px) {
    img {
        max-width: 1200px; /* максимальна ширина на великих екранах */
        width: auto; /* автоматична ширина */
    }
}

@media screen and (max-width: 767px) {
    img {
        margin: 9px; /* менші відступи на мобільних */
        border-radius: 9px; /* заокруглені кути для кращого вигляду */
    }
}

@media screen and (max-width: 480px) {
    img {
        margin: 8px; /* ще менші відступи на дуже маленьких екранах */
    }
}

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

header p, header span, header div {
    color: #e2e8f0;
}

.logo {
    max-width: 200px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul li a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 17px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    border: 2px solid rgba(220, 38, 38, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

nav ul li a:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fbbf24;
    border-color: #fbbf24;
}

/* 🃏 Блоки контенту */
.block {
    background: #334155;
    padding: 50px;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

/* 🎲 Сітка покерних столів */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin: 50px 0;
}

/* 🎰 Картки покерних столів */
.casino-card-dark {
    background: #334155;
    color: #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(220, 38, 38, 0.3);
    position: relative;
}

.ranking-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #fbbf24;
}

.casino-logo-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.casino-logo {
    max-width: 140px;
}

.casino-card-dark h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0;
    color: #fbbf24;
}

.stars {
    color: #fbbf24;
    font-size: 22px;
    margin-bottom: 20px;
}

.bonus-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    background: rgba(30, 41, 59, 0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #cbd5e1;
}

.visit-btn {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    border: 2px solid #fbbf24;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visit-btn:hover {
    background: #fbbf24;
    color: #1e293b;
}

/* 🔤 Типографія */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #dc2626;
    border-radius: 2px;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #fbbf24;
    margin: 25px 0 15px;
}

p {
    margin-bottom: 22px;
    color: #cbd5e1;
    line-height: 1.8;
}

/* 🃏 Таблиця покерних турнірів */
.table-wrapper {
    overflow-x: auto;
    margin: 35px 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid rgba(220, 38, 38, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #334155;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    table-layout: auto;
}

th, td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    white-space: normal;
    min-width: 80px;
    max-width: 150px;
    overflow-wrap: break-word;
    color: #e2e8f0;
}

th {
    background: #475569;
    color: #fbbf24;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #dc2626;
}

tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.6);
}

tr:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* 🃏 Мобільна адаптація таблиці */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 20px 0;
        border-radius: 8px;
        padding: 0 10px;
    }
    
    table {
        font-size: 13px;
        min-width: 300px;
        border-radius: 8px;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 12px;
        min-width: 60px;
        max-width: 120px;
    }
    
    th {
        font-size: 11px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .table-wrapper {
        margin: 15px 0;
        padding: 0 5px;
    }
    
    table {
        font-size: 11px;
        min-width: 250px;
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 10px;
        min-width: 50px;
        max-width: 100px;
    }
    
    th {
        font-size: 9px;
    }
}

/* 🦶 Футер */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 3px solid #dc2626;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

footer ul {
    list-style: none;
    margin: 25px 0;
}

footer ul li {
    margin: 12px 0;
}

footer ul li a {
    color: #cbd5e1;
    opacity: 0.9;
    font-size: 15px;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    opacity: 1;
    color: #fbbf24;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    transition: background 0.2s ease, color 0.2s ease;
    border: 2px solid #fbbf24;
}

.social-icons a:hover {
    background: #fbbf24;
    color: #1e293b;
}

/* 📱 Адаптивність */
@media (max-width: 768px) {
    .container {
        width: 96%;
        padding: 20px;
    }

    header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .casino-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .casino-card-dark {
        padding: 25px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    .block {
        padding: 30px;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .block {
        padding: 25px;
        margin: 20px 0;
    }

    .casino-logo-wrapper {
        height: 90px;
    }

    .casino-logo {
        max-width: 150px;
    }

    .visit-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    h2 {
        font-size: 28px;
    }

    nav ul li a {
        padding: 10px 15px;
        font-size: 15px;
    }
}