/*
Theme Name: GTA 6 Base
Description: Адаптивная тема для портала по GTA 6
Author: Ваш Имя
Version: 1.0
*/

:root {
    --bg-body: #f4f5f7; --bg-surface: #ffffff; --text-main: #2b2b2b; --text-muted: #6c757d; 
    --rs-yellow: #ffb600; --rs-dark: #1a1a1a; --border-color: #e5e7eb;
}
body { background-color: var(--bg-body); color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.6; }
h1, h2, h3, h4, h5, h6, .nav-link, .brand-logo { font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; }

/* Шапка и Навигация */
.top-header { background-color: var(--rs-dark); border-bottom: 4px solid var(--rs-yellow); padding: 15px 0; }
.brand-logo { color: #fff; font-size: 2rem; text-decoration: none; letter-spacing: 1px; margin: 0; font-weight: 700;}
.brand-logo span { color: var(--rs-yellow); }
.main-nav { background-color: var(--bg-surface); border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.main-nav .nav-link { color: var(--text-main); font-size: 1.1rem; padding: 15px 20px !important; font-weight: 700; transition: color 0.2s; }
.main-nav .nav-link:hover { color: var(--rs-yellow); }

/* Хайлайты */
.highlight-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; display: block; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.highlight-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.highlight-img-wrapper { position: relative; padding-top: 56.25%; overflow: hidden; border-bottom: 3px solid var(--rs-yellow); }
.highlight-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.highlight-card:hover img { transform: scale(1.05); }
.highlight-content { padding: 15px; }
.highlight-title { color: var(--text-main); font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: 0; }

/* Заголовки и Лента */
.section-title { font-size: 1.8rem; border-left: 5px solid var(--rs-yellow); padding-left: 15px; margin-bottom: 30px; color: var(--rs-dark); }
.section-title.light { color: #fff; }
.post-horizontal { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 4px; margin-bottom: 25px; overflow: hidden; transition: box-shadow 0.2s; display: flex; text-decoration: none;}
.post-horizontal:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.post-h-img { flex: 0 0 35%; position: relative; overflow: hidden; display: block; }
.post-h-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

.post-h-content { padding: 25px; flex: 1; display: flex; flex-direction: column; text-decoration: none;}
.post-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 15px; }
.cat-tag { background-color: var(--rs-dark); color: var(--rs-yellow); padding: 3px 8px; border-radius: 3px; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; }
.cat-tag.guides { background-color: var(--rs-yellow); color: var(--rs-dark); }
.post-title { font-size: 1.4rem; color: var(--rs-dark); text-decoration: none; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.post-title:hover { color: #ff9900; }
.post-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* База Транспорта и Сообщество */
.section-dark { background-color: var(--rs-dark); padding: 60px 0; margin: 40px 0; border-top: 4px solid var(--rs-yellow); border-bottom: 4px solid var(--rs-yellow); }
.vehicle-card { background: #2b2b2b; border-radius: 4px; overflow: hidden; position: relative; display: block; text-decoration: none; border: 1px solid #444; transition: all 0.3s; }
.vehicle-card:hover { border-color: var(--rs-yellow); transform: translateY(-5px); }
.vehicle-card img { width: 100%; height: 180px; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.vehicle-card:hover img { opacity: 1; }
.vehicle-info { padding: 15px; background: linear-gradient(0deg, #1a1a1a 0%, transparent 100%); position: absolute; bottom: 0; width: 100%; }
.vehicle-name { color: #fff; margin: 0; font-size: 1.2rem; }
.vehicle-class { color: var(--rs-yellow); font-size: 0.8rem; text-transform: uppercase; font-weight: bold; font-family: 'Roboto Condensed'; }

.community-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; height: 100%; transition: box-shadow 0.2s; }
.community-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.com-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.com-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border-color); }
.com-user { font-weight: 600; color: var(--rs-dark); margin: 0; font-size: 0.95rem; }
.com-date { font-size: 0.8rem; color: var(--text-muted); }
.com-text { font-size: 0.95rem; color: var(--text-main); margin-bottom: 15px; }
.com-footer { border-top: 1px dashed var(--border-color); padding-top: 10px; font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; }

/* Сингл Пост */
.breadcrumb-custom { font-size: 0.85rem; margin-bottom: 20px; color: var(--text-muted); }
.breadcrumb-custom a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-custom a:hover { color: var(--rs-dark); }
.breadcrumb-custom .separator { margin: 0 8px; font-size: 0.8rem; }
.single-post-wrapper { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 4px; padding: 35px 40px; margin-bottom: 30px; }
.post-h1 { font-size: 2.6rem; color: var(--rs-dark); font-weight: 700; margin-bottom: 15px; line-height: 1.2; text-transform: none; letter-spacing: -0.5px;}
.post-meta-top { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 25px; }
.post-cat-tag { background-color: var(--rs-yellow); color: var(--rs-dark); padding: 3px 10px; border-radius: 3px; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 0.85rem; }
.meta-author { font-weight: 600; color: var(--rs-dark); text-decoration: none; display: flex; align-items: center; gap: 8px;}
.meta-author img { width: 24px; height: 24px; border-radius: 50%; }
.meta-author:hover { color: var(--rs-yellow); }
.post-thumbnail { width: 100%; max-height: 450px; object-fit: cover; border-radius: 4px; margin-bottom: 30px; border: 1px solid var(--border-color); }
.post-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.8rem; color: var(--rs-dark); margin: 40px 0 20px; font-weight: 700; border-left: 5px solid var(--rs-yellow); padding-left: 15px; }
.post-content h3 { font-size: 1.4rem; color: var(--rs-dark); margin: 30px 0 15px; font-weight: 700; }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; border: 1px solid var(--border-color); }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 20px; }
.post-content a { color: #0056b3; text-decoration: none; border-bottom: 1px solid rgba(0,86,179,0.3); transition: all 0.2s; }
.post-content a:hover { color: var(--rs-yellow); border-bottom-color: var(--rs-yellow); }
.info-box { background-color: #fff9e6; border-left: 4px solid var(--rs-yellow); padding: 20px; margin: 30px 0; border-radius: 0 4px 4px 0; }
.info-box-title { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--rs-dark); margin-bottom: 10px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px;}
.post-content blockquote { background: var(--rs-dark); color: #fff; padding: 25px 30px; margin: 30px 0; border-left: 5px solid var(--rs-yellow); font-style: italic; font-size: 1.15rem; border-radius: 0 4px 4px 0; }
.post-footer { margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.share-title { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; text-transform: uppercase; margin: 0; color: var(--rs-dark); }
.share-buttons button { border: none; padding: 8px 15px; font-weight: 600; font-size: 0.85rem; border-radius: 3px; color: #fff; margin-left: 10px; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s;}
.share-buttons button:hover { opacity: 0.8; }
.btn-vk { background-color: #0077FF; }
.btn-tg { background-color: #229ED9; }
.author-box { background-color: var(--bg-body); border: 1px solid var(--border-color); border-radius: 4px; padding: 25px; margin-bottom: 40px; display: flex; align-items: center; gap: 20px; }
.author-avatar img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.author-info h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--rs-dark); font-weight: 700; text-transform: none;}
.author-info p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-muted); }
.comments-section-title { font-size: 1.6rem; border-left: 5px solid var(--rs-yellow); padding-left: 15px; margin-bottom: 25px; color: var(--rs-dark); }
.comment-form { background: var(--bg-surface); padding: 25px; border: 1px solid var(--border-color); border-radius: 4px; margin-top: 30px; }
.comment-form textarea, .comment-form input { width: 100%; border: 1px solid var(--border-color); border-radius: 4px; padding: 15px; margin-bottom: 15px; resize: vertical; }
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--rs-yellow); }
.btn-submit-comment { background-color: var(--rs-dark); color: #fff; border: none; padding: 10px 20px; font-weight: 700; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; border-radius: 3px; transition: 0.2s; cursor: pointer;}
.btn-submit-comment:hover { background-color: var(--rs-yellow); color: var(--rs-dark); }

/* САЙДБАР */
.sidebar { position: sticky; top: 20px; }
.widget { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 4px; padding: 25px; margin-bottom: 25px; }
.widget-title { font-size: 1.2rem; border-bottom: 2px solid var(--bg-body); padding-bottom: 10px; margin-bottom: 20px; color: var(--rs-dark); display: flex; align-items: center; justify-content: space-between;}
.widget-status { background-color: var(--rs-yellow); border-color: var(--rs-yellow); text-align: center; }
.widget-status .widget-title { border-bottom-color: rgba(0,0,0,0.1); justify-content: center;}
.widget-timer { background-color: var(--rs-dark); color: #fff; text-align: center; border: 2px solid var(--rs-yellow); padding: 30px 20px;}
.timer-title { color: var(--rs-yellow); font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-weight: 700; margin-bottom: 15px; letter-spacing: 1px;}
.timer-box { display: flex; justify-content: center; gap: 15px; }
.timer-item { display: flex; flex-direction: column; align-items: center; }
.timer-num { font-size: 2.2rem; font-weight: 700; font-family: 'Roboto Condensed', sans-serif; line-height: 1; margin-bottom: 5px;}
.timer-label { font-size: 0.75rem; color: #a0a0a0; text-transform: uppercase; letter-spacing: 1px; }
.trending-list { list-style: none; padding: 0; margin: 0; }
.trending-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); }
.trending-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.trending-img { width: 65px; height: 65px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.trending-title { font-size: 0.95rem; line-height: 1.3; font-weight: 600; color: var(--text-main); text-decoration: none; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;}
.trending-title:hover { color: var(--rs-yellow); }
.widget-community { background-color: var(--bg-body); text-align: center; }
.widget-community h4 { font-size: 1.3rem; color: var(--rs-dark); margin-bottom: 10px; }
.widget-community p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.btn-community { display: inline-block; width: 100%; background-color: var(--rs-yellow); color: var(--rs-dark); font-weight: 700; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; text-decoration: none; padding: 12px; border-radius: 3px; transition: background 0.2s;}
.btn-community:hover { background-color: #e5a400; color: var(--rs-dark); }
.promo-map { position: relative; border-radius: 4px; overflow: hidden; display: block; border: 1px solid var(--border-color); transition: transform 0.2s; margin-bottom: 25px;}
.promo-map:hover { transform: translateY(-3px); }
.promo-map img { width: 100%; height: 180px; object-fit: cover; }
.promo-map-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; text-decoration: none;}
.promo-map-title { color: var(--rs-yellow); font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; font-size: 1.3rem; font-weight: 700; margin: 0; }
.promo-map-desc { color: #fff; font-size: 0.85rem; margin: 0; }
.newsletter-box { background-color: #222; color: #fff; padding: 20px; border-radius: 4px; text-align: center; margin-bottom: 25px;}
.newsletter-box h4 { color: var(--rs-yellow); margin-bottom: 10px; }
.newsletter-box p { font-size: 0.85rem; color: #ccc; }
.newsletter-box input { width: 100%; padding: 10px; border: none; margin-bottom: 10px; border-radius: 2px; }
.btn-subscribe { background-color: var(--rs-yellow); color: #111; width: 100%; border: none; padding: 10px; font-weight: 600; text-transform: uppercase; font-family: 'Roboto Condensed'; transition: background 0.2s; }
.btn-subscribe:hover { background-color: #e5a400; }

/* Футер */
footer { background-color: var(--rs-dark); color: #a0a0a0; padding: 50px 0 20px; margin-top: 60px; }
footer h5 { color: #fff; margin-bottom: 20px; }
footer a { color: #a0a0a0; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--rs-yellow); }

/* Фиксы для картинок внутри постов WP */
.post-content img { max-width: 100%; height: auto; }
.wp-block-image img { max-width: 100%; height: auto; border-radius: 4px; }
.aligncenter { display: block; margin: 0 auto; }

@media (max-width: 768px) { 
    .post-horizontal { flex-direction: column; } 
    .post-h-img { padding-top: 56.25%; width: 100%; } 
    .single-post-wrapper { padding: 20px; }
    .post-h1 { font-size: 2rem; }
}