/*
Theme Name: Slots Theme
Theme URI: https://slots.devsaidi.ru
Author: Admin
Author URI: https://devsaidi.ru
Description: Кастомная тема для гемблинг-портала со слотами. Светлый дизайн, поддержка CPT news и reviews.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slots-theme
Tags: custom, slots, casino, gambling, responsive
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

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

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.site-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 5px 0 0 0;
}

/* Navigation */
.main-navigation {
    margin-top: 10px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-section p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Main Content Area */
.content-area {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.site-main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #667eea;
}

/* Single Post */
.single-post .post {
    margin-bottom: 0;
}

.single-post .post-content {
    padding: 30px;
}

.single-post .post-meta {
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 30px;
}

/* Archive Header */
.archive-header {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.archive-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.archive-description {
    color: #7f8c8d;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Badges and Tags */
.post-category {
    display: inline-block;
    padding: 5px 12px;
    background: #667eea;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 5px;
}

.post-category:hover {
    background: #764ba2;
    color: #fff;
}

/* Responsive */
@media (max-width: 968px) {
    .content-area {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        text-align: center;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
}
