/* 
Theme Name: 3 Oaks Casino Theme
Theme URI: https://3-oaks.top
Author: Your Name
Author URI: https://3-oaks.top
Description: Modern casino slots theme in 3 Oaks style
Version: 2.0.0
License: GPL v2 or later
Text Domain: 3oaks-slots
*/

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* === ОСНОВНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    /* ЦВЕТА */
    --bg-primary: #0A0E17;
    --bg-secondary: #141927;
    --bg-card: #1C2232;
    --text-primary: #FFFFFF;
    --text-secondary: #98A2B3;
    --border-color: #2D3548;
    --accent-gradient: linear-gradient(215.45deg,#f8b900 9.4%,#e67508 89.72%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* === ТИПОГРАФИЯ === */
h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #FFFFFF;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #FFFFFF;
}

p, .text-base {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #FFFFFF;
}

/* === КНОПКИ === */
.btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.btn-gradient {
    background: var(--accent-gradient);
    color: #0A0E17;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: #f8b900;
    color: #f8b900;
}

/* === HEADER === */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
    font-size: 16px;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f8b900;
    border-radius: 2px;
}

/* === ГЛАВНАЯ СТРАНИЦА === */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 64px;
    margin-bottom: 24px;
    color: #FFFFFF;
    line-height: 1.1;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === ПАНЕЛЬ ПОИСКА === */
.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background-color: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.search-wrapper {
    position: relative;
    min-width: 280px;
    flex: 1;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.filter-input {
    padding: 12px 20px 12px 45px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #f8b900;
    box-shadow: 0 0 0 3px rgba(248, 185, 0, 0.1);
}

.stats {
    color: var(--text-secondary);
    font-size: 16px;
    white-space: nowrap;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stats span {
    color: #f8b900;
    font-weight: 700;
}

/* === СЕТКА КАРТОЧЕК ИГР === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* === КАРТОЧКА ИГРЫ === */
.game-card {
    background: linear-gradient(145deg, var(--bg-card), #1A2030);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #f8b900;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ИЗОБРАЖЕНИЕ */
.card-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    display: block;
    background: linear-gradient(135deg, #0A0E17 0%, #141927 100%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--border-color);
    padding: 10px;
}

.game-card:hover .card-image {
    transform: scale(1.05);
}

.card-image.placeholder {
    background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    opacity: 0.7;
}

/* НАЗВАНИЕ ИГРЫ */
.game-title {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.game-card:hover .game-title {
    color: #f8b900;
}

/* === СТРАНИЦА ОТДЕЛЬНОГО СЛОТА === */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 0;
    color: #FFFFFF;
    line-height: 1.2;
}

.hero-excerpt {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.full-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.full-description h2 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: 28px;
}

.full-description h3 {
    color: #FFFFFF;
    margin-bottom: 10px;
    font-size: 22px;
}

.full-description p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

.full-description ul, 
.full-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.full-description li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 16px;
}

/* КНОПКИ В HERO */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

/* КАРТИНКА СЛОТА */
.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    background: linear-gradient(135deg, #0A0E17 0%, #141927 100%);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    padding: 20px;
}

.hero-image:hover img {
    transform: scale(1.03);
}

.description-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.description-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* === БЛОК ПОХОЖИХ СЛОТОВ === */
.related-slots-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
}

.related-slots-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.related-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.related-slot-card {
    background: linear-gradient(145deg, var(--bg-card), #1A2030);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.related-slot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #f8b900;
}

.related-slot-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    background: linear-gradient(135deg, #0A0E17 0%, #141927 100%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--border-color);
    padding: 10px;
}

.related-slot-card:hover .related-slot-image {
    transform: scale(1.05);
}

.related-slot-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-slot-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.related-slot-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-slot-title a:hover {
    color: #f8b900;
}

/* === ФУТЕР === */
.main-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.page-footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
    font-size: 16px;
}

.footer-links a:hover {
    color: #f8b900;
}

.copyright {
    font-size: 14px;
}

/* === СООБЩЕНИЕ "НЕТ РЕЗУЛЬТАТОВ" === */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.no-results p {
    max-width: 400px;
    margin: 0 auto 25px;
    font-size: 16px;
    line-height: 1.6;
}

/* === АДАПТИВНОСТЬ === */
/* ПЛАНШЕТЫ */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .related-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    h1 {
        font-size: 56px;
    }
    
    .page-header h1 {
        font-size: 56px;
    }
    
    .hero-section {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .related-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-height: 400px;
    }
    
    .page-header h1 {
        font-size: 48px;
    }
    
    .page-header p {
        font-size: 18px;
    }
    
    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 28px;
    }
}

/* МОБИЛЬНЫЕ ТЕЛЕФОНЫ */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .controls-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .search-wrapper {
        min-width: 100%;
    }
    
    .card-image {
        height: 180px;
    }
    
    .related-slot-image {
        height: 150px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .description-section,
    .related-slots-section {
        padding: 25px;
    }
    
    .footer-links {
        gap: 15px;
        flex-direction: column;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-slots-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .related-slot-image {
        height: 180px;
    }
    
    .game-title {
        font-size: 16px;
        padding: 15px;
    }
    
    .related-slot-title {
        font-size: 16px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-image img {
        max-height: 250px;
    }
    
    .btn-gradient,
    .btn-secondary {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 20px;
    }
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ КАРТОЧЕК */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.game-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.game-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* АНИМАЦИЯ ДЛЯ ПОХОЖИХ СЛОТОВ */
.related-slot-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.related-slot-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.related-slot-card:nth-child(even) {
    animation-delay: 0.2s;
}