/*
Theme Name: Game or Blog Theme
Theme URI: https://greystranik.ru https://argh-linux.ru
Author URI: https://greystranik.ru https://argh-linux.ru
Description: Тема для личной визитки и блогах
Version: 1.0
License: GNU GPL v2
Text Domain: game-or-blog-theme
*/

/* Основные стили */
html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8fafc;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 20h10v10H20zM50 20h10v10H50zM80 20h10v10H80zM20 50h10v10H20zM50 50h10v10H50zM80 50h10v10H80zM20 80h10v10H20zM50 80h10v10H50zM80 80h10v10H80z" fill="rgba(52, 152, 219, 0.05)" fill-rule="evenodd"/></svg>');
}

header {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.80);
    background: #2c3e50;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.main-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #3498db;
}

/* СТИЛИ ДЛЯ КОНТЕНТА СТРАНИЦ */
.page-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.80);
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.entry-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.entry-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 2px;
}

.entry-title {
    font-size: 2.8rem;
    margin: 0 20px 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    padding: 20px 20px;
}

.entry-content > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content h2 {
    color: #2980b9;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f3f5;
}

.entry-content h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: rgba(0, 0, 0, 0.80);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.05);
}

.entry-content a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px dashed rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
}

.entry-content blockquote {
    border-left: 4px solid #3498db;
    background-color: #f9fbfd;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.entry-content .wp-block-image img {
    box-shadow: none;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.entry-content th {
    background: #3498db;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.entry-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.entry-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.entry-content .button,
.entry-content button,
.entry-content input[type="submit"] {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px 5px;
}

.entry-content .button:hover,
.entry-content button:hover,
.entry-content input[type="submit"]:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Стили для подвала записи */
.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f3f5;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: right;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.edit-link {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.edit-link a {
    color: #3498db;
    text-decoration: none;
}

.edit-link:hover {
    background-color: #e3f2fd;
}

.edit-link:hover a {
    color: #2980b9;
}

footer {
    background: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2.2rem;
    }
    
    .entry-content {
        padding: 0 15px;
    }
    
    .entry-content h2 {
        font-size: 1.6rem;
    }
    
    .page-content {
        margin: 20px 0;
        padding: 40px 0;
    }
    
    .main-menu {
        flex-wrap: wrap;
    }
    
    .main-menu li {
        margin: 5px 10px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
}

/* ====================== */
/* СТИЛИ ДЛЯ КАРТОЧЕК СТАТЕЙ */
/* ====================== */

.recent-posts {
    padding: 80px 0;
    background-color: #f8fafc;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 8px;
    box-shadow: 0 px 20px rgba(0, 0, 0, 0.80);
    padding: 20px 0;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    background-color: rgb(52, 73, 94);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-content {
    padding: 25px;
}

.post-card-header {
    margin-bottom: 15px;
}

.post-card-title {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: #ffffff;
    transition: color 0.3s ease;
    text-align: center;
}

.post-card:hover .post-card-title {
    color: #3498db;
}

.post-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #929fa0;
    gap: 15px;
    padding-left: 10px;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-excerpt {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-card-excerpt p {
    margin: 0;
}

.post-card-footer {
    border-top: 1px solid #f0f3f5;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.post-card-more {
    color: #3498db;
    font-weight: 600;
    position: relative;
    padding-right: 20px;
}

.post-card-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-more::after {
    transform: translateX(5px);
}

/* Адаптивность для карточек */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .recent-posts {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card-thumbnail {
        height: 180px;
    }
}