/* =========================================
   БАЗОВІ НАЛАШТУВАННЯ ТА ЗМІННІ
========================================= */
:root {
    --bg-body: #e8e4d9;
    --bg-paper: #fdfaf0;
    --nav-bg: #1c2d42;
    --text-main: #222222;
    --text-light: #666666;
    --accent-red: #a32a2a;
    --border-color: #d1cabc;
}

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

body {
    background-color: var(--bg-body);
    font-family: 'Georgia', serif;
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-paper);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* =========================================
   ШАПКА ТА НАВІГАЦІЯ (Спільні для всіх)
========================================= */
header { text-align: center; margin-bottom: 20px; }
.logo-area {
    border-top: 2px solid var(--text-main);
    border-bottom: 2px solid var(--text-main);
    padding: 15px 0; margin-bottom: 10px;
}
.logo-area h1 {
    font-size: 3.5rem; text-transform: uppercase;
    letter-spacing: 2px; font-weight: normal; line-height: 1.1;
}
.logo-area a { text-decoration: none; color: var(--text-main); }

nav { background-color: var(--nav-bg); padding: 12px 0; }
nav ul { list-style: none; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
nav a {
    color: #ffffff; text-decoration: none; text-transform: uppercase;
    font-family: 'Arial', sans-serif; font-size: 0.85rem; font-weight: bold; letter-spacing: 1px;
}
nav a:hover { color: #cccccc; }

/* =========================================
   ГЛОБАЛЬНІ ЕЛЕМЕНТИ (Заголовки сторінок)
========================================= */
.page-header {
    text-align: center; margin: 30px 0;
    border-bottom: 1px solid var(--border-color); padding-bottom: 15px;
}
.page-header h2 { font-size: 2.5rem; font-weight: normal; text-transform: uppercase; }
.page-header p { color: var(--text-light); font-style: italic; margin-top: 5px; }

/* =========================================
   СТОРІНКА ОГЛЯДІВ (Reviews)
========================================= */
.reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}
.review-card {
    border: 1px solid var(--border-color); padding: 15px; background: #fff;
    transition: transform 0.2s ease;
}
.review-card:hover { transform: translateY(-5px); }
.review-card img { height: 180px; width: 100%; margin-bottom: 15px; }
.review-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.rating { color: var(--accent-red); font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.btn-read {
    display: inline-block; padding: 8px 15px; background: var(--nav-bg); color: #fff;
    text-decoration: none; font-family: 'Arial', sans-serif; font-size: 0.8rem; text-transform: uppercase;
}
.btn-read:hover { background: var(--accent-red); color: #fff; }

/* =========================================
   СТОРІНКА "ПРО НАС" (About)
========================================= */
.about-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.about-content p { margin-bottom: 20px; }
.team-section { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.team-member img { border-radius: 50%; width: 150px; height: 150px; margin: 0 auto 15px; border: 3px solid var(--border-color); }
.team-member h4 { font-size: 1.2rem; margin-bottom: 5px; }
.team-member span { font-family: 'Arial', sans-serif; font-size: 0.8rem; color: var(--accent-red); text-transform: uppercase; }

/* =========================================
   ВНУТРІШНЯ СТАТТЯ (Single Article)
========================================= */
.article-layout { display: grid; gap: 40px; margin-top: 20px; }
.article-meta {
    font-family: 'Arial', sans-serif; font-size: 0.85rem; color: var(--text-light);
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    padding: 10px 0; margin-bottom: 20px; display: flex; justify-content: space-between;
}
.article-meta .author { font-weight: bold; color: var(--nav-bg); }
.article-body p { margin-bottom: 20px; font-size: 1.1rem; text-align: justify; }
/* Буквиця (Drop Cap) для першого абзацу */
.article-body > p:first-of-type::first-letter {
    font-size: 4rem; float: left; margin: 10px 15px 0 0; line-height: 0.8;
    color: var(--nav-bg); font-weight: bold;
}
blockquote {
    font-size: 1.4rem; font-style: italic; margin: 30px 0; padding: 20px;
    border-left: 5px solid var(--accent-red); background: #f2efe6; color: var(--nav-bg);
}

/* Сайдбар статті */
.sidebar h3 {
    font-family: 'Arial', sans-serif; text-transform: uppercase; font-size: 1rem;
    border-bottom: 2px solid var(--nav-bg); padding-bottom: 10px; margin-bottom: 20px;
}
.sidebar-item { margin-bottom: 20px; }
.sidebar-item h4 { font-size: 1.1rem; font-weight: normal; margin-bottom: 5px; }
.sidebar-item h4 a { color: var(--text-main); text-decoration: none; }
.sidebar-item h4 a:hover { color: var(--accent-red); }

/* =========================================
   ПІДВАЛ ТА АДАПТИВНІСТЬ
========================================= */
footer {
    background-color: #1a1a1a; color: #ffffff; text-align: center; padding: 20px;
    margin-top: 40px; font-family: 'Arial', sans-serif; text-transform: uppercase;
    letter-spacing: 2px; font-weight: bold; font-size: 1.2rem;
}

@media (max-width: 768px) {
    .article-layout { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .logo-area h1 { font-size: 2.2rem; }
}
/* =========================================
   СТИЛІ ГОЛОВНОЇ СТОРІНКИ (index.html)
========================================= */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* Головна стаття */
.hero-article { margin-bottom: 30px; }
.hero-content { background-color: #1a1a1a; color: #ffffff; padding: 20px; }
.tag {
    background-color: var(--accent-red); color: #fff; padding: 4px 8px;
    font-family: 'Arial', sans-serif; font-size: 0.7rem; text-transform: uppercase;
    display: inline-block; margin-bottom: 10px;
}
.hero-content h2 { font-size: 1.8rem; margin-bottom: 10px; font-weight: normal; }
.hero-content p { font-size: 0.9rem; color: #cccccc; }

/* Бічні статті */
.side-article {
    margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.side-article:last-child { border-bottom: none; }
.side-article h3 { font-size: 1.2rem; margin: 10px 0; font-weight: normal; }
.side-article p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.read-more {
    font-family: 'Arial', sans-serif; font-size: 0.75rem; font-weight: bold;
    color: var(--text-main); text-decoration: none; text-transform: uppercase;
}
.read-more:hover { color: var(--accent-red); }

/* Список статей знизу */
.article-list {
    display: flex; flex-direction: column; gap: 20px;
    border-top: 1px solid var(--border-color); padding-top: 20px;
}
.list-item {
    display: flex; gap: 20px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.list-item img { width: 150px; height: 100px; }
.list-item-content h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: normal; }
.list-item-content p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }

/* Віджет "Топ Казино" */
.top-casinos-widget {
    background-color: #f2efe6; padding: 20px; border: 1px solid var(--border-color);
}
.top-casinos-widget h3 {
    text-align: center; text-transform: uppercase; font-family: 'Arial', sans-serif;
    font-size: 1rem; margin-bottom: 20px; letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color); padding-bottom: 10px;
}
.casino-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.casino-item img { width: 60px; height: 45px; border: 1px solid #ccc; }
.casino-item span { font-size: 0.9rem; font-weight: bold; }

/* Адаптивність для головної сторінки */
@media (max-width: 768px) {
    .main-grid { grid-template-columns: 1fr; }
    .list-item { flex-direction: column; }
    .list-item img { width: 100%; height: auto; }
}
