/*
Theme Name: Blog About Movies 16.10.2025
Description: A modern WordPress theme for gaming content
Version: 1.0
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-title a {
    color: white;
    transition: color 0.3s;
}

.site-title a:hover {
    color: #4CAF50;
}

.desktop-nav {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
    color: white;
}

.desktop-nav a:hover {
    color: #4CAF50;
}


/* Mobile Header */
.mobile-header {
    display: none;
    background-color: #1a1a1a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.mobile-title-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mobile-title-center a {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #1a1a1a;
    color: white;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    padding: 5px;
}

.sidebar-nav {
    margin-top: 50px;
}

.sidebar-nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.sidebar-nav a:hover {
    color: #4CAF50;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Main Content */
.site-content {
    margin: 40px auto;
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #222;
}

/* Blog Layout - No Thumbnails, One Post Per Row */
.posts-list {
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.post-title {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4CAF50;
}

.post-meta {
    margin-bottom: 15px;
}

.post-date {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.post-excerpt {
    color: #444;
    line-height: 1.6;
    font-size: 16px;
}

.no-posts {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.page-numbers:hover {
    background-color: #f8f9fa;
    border-color: #1a1a1a;
}

.page-numbers.current {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 70px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .post-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-excerpt {
        font-size: 15px;
    }
    
    .page-numbers {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .page-title {
        font-size: 26px;
    }
}

/* Remove old grid styles that are no longer needed */
.posts-container,
.post-card,
.post-thumbnail {
    display: none;
}

/* Unified layout for both Pages and Single Posts */
.page-item {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-content {
    line-height: 1.7;
    font-size: 16px;
    color: #333;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.page-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-align: center;
}

.post-meta {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .page-item {
        padding: 25px 15px;
        margin: 0 6px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-content {
        font-size: 15px;
    }
}
/* Responsive YouTube / iframe embeds */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
