/*
Theme Name: GeneratePress Child - VETV
Theme URI: https://vetv.vn
Description: Giao diện tối ưu hoá cho VETV.VN - Kênh Tin Tức Game Mobile, Thể Thao Điện Tử & Công Nghệ
Author: VETV Editorial & Engineering Team
Author URI: https://vetv.vn
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

:root {
    --vetv-primary: #e63946;
    --vetv-primary-hover: #d62828;
    --vetv-accent: #00b4d8;
    --vetv-dark: #0f172a;
    --vetv-dark-surface: #1e293b;
    --vetv-light-bg: #f8fafc;
    --vetv-text-main: #1e293b;
    --vetv-text-muted: #64748b;
    --vetv-border: #e2e8f0;
    --vetv-radius: 8px;
    --vetv-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    background-color: var(--vetv-light-bg);
    color: var(--vetv-text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

/* Header & Top Bar */
.vetv-topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
}

.vetv-topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.vetv-topbar-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vetv-badge-hot {
    background: var(--vetv-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vetv-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vetv-social-links a {
    color: #94a3b8;
    transition: var(--vetv-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    line-height: 1;
}

.vetv-social-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.vetv-social-links a.social-yt:hover { color: #ff0000; }
.vetv-social-links a.social-dm:hover { color: #0066dc; }
.vetv-social-links a.social-fb:hover { color: #1877f2; }
.vetv-social-links a.social-x:hover { color: #ffffff; }

/* Site Header */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Main Navigation */
.main-navigation {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.main-navigation .inside-navigation {
    max-width: 1200px;
    margin: 0 auto;
}

.main-navigation .main-nav ul li a {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 18px;
    transition: var(--vetv-transition);
    position: relative;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: #ffffff;
    background-color: rgba(255,255,255,0.06);
}

.main-navigation .main-nav ul li:hover > a::after,
.main-navigation .main-nav ul li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--vetv-primary);
    border-radius: 2px 2px 0 0;
}

/* Post Cards & Grid */
.container.grid-container {
    max-width: 1200px;
}

.vetv-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.vetv-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: radial-gradient(circle, rgba(230,57,70,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.vetv-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
}

.vetv-hero-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 20px;
}

/* Grid loop */
.vetv-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.vetv-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--vetv-border);
    transition: var(--vetv-transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.vetv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.vetv-card-thumb-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #0f172a;
    overflow: hidden;
}

.vetv-card-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vetv-card:hover .vetv-card-thumb-wrap img {
    transform: scale(1.05);
}

.vetv-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--vetv-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vetv-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vetv-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.vetv-card-title a {
    color: var(--vetv-dark);
    text-decoration: none;
    transition: var(--vetv-transition);
}

.vetv-card-title a:hover {
    color: var(--vetv-primary);
}

.vetv-card-excerpt {
    color: var(--vetv-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.vetv-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

/* Single Post styling */
.single .entry-header {
    margin-bottom: 24px;
}

.single .entry-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--vetv-dark);
    margin-bottom: 16px;
}

.single .entry-meta {
    display: flex;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--vetv-text-muted);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--vetv-border);
    padding-bottom: 16px;
}

.single .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: 1.5em;
}

.single .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vetv-dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.single .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--vetv-primary);
}

.single .entry-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vetv-dark);
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.single .entry-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin: 20px auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 25px 0;
    border-top: 4px solid var(--vetv-primary);
}

.vetv-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.vetv-footer-col h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.vetv-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--vetv-primary);
}

.vetv-footer-col p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94a3b8;
}

.vetv-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vetv-footer-col ul li {
    margin-bottom: 8px;
}

.vetv-footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--vetv-transition);
}

.vetv-footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.vetv-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 0 20px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.vetv-footer-bottom a {
    color: #cbd5e1;
    text-decoration: none;
}

.vetv-footer-bottom a:hover {
    color: var(--vetv-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .vetv-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .vetv-footer-grid {
        grid-template-columns: 1fr;
    }
    .vetv-topbar-container,
    .vetv-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .vetv-hero-title {
        font-size: 1.5rem;
    }
}
