/*
Theme Name: NTER - IT News
Template: generatepress
Description: Дочірня тема GeneratePress для NTER — IT-новини та технології
Version: 1.0
Text Domain: nter
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --nter-primary: #2563eb;
    --nter-primary-dark: #1d4ed8;
    --nter-primary-light: #3b82f6;
    --nter-accent: #f59e0b;
    --nter-bg: #f8fafc;
    --nter-white: #ffffff;
    --nter-text: #0f172a;
    --nter-text-secondary: #64748b;
    --nter-border: #e2e8f0;
    --nter-card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --nter-card-shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
}

/* === Base === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--nter-bg);
    color: var(--nter-text);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--nter-text);
    line-height: 1.3;
}

a {
    color: var(--nter-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--nter-primary-dark);
}

/* === Header === */
.site-header {
    background: var(--nter-white) !important;
    border-bottom: 1px solid var(--nter-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.main-title a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    color: var(--nter-primary) !important;
    letter-spacing: -0.5px;
}
.main-title a:hover {
    color: var(--nter-primary-dark) !important;
}
.site-description {
    font-size: 13px;
    color: var(--nter-text-secondary);
}

/* Navigation */
.main-navigation .main-nav > ul > li > a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--nter-text) !important;
    transition: color 0.15s ease;
}
.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
    color: var(--nter-primary) !important;
}

/* === Blog Grid === */
.generate-columns-container {
    gap: 24px !important;
}

/* Post cards */
.generate-columns-container article,
article.post {
    background: var(--nter-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--nter-card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid var(--nter-border);
}
.generate-columns-container article:hover,
article.post:hover {
    box-shadow: var(--nter-card-shadow-hover);
    transform: translateY(-3px);
}

/* Featured image */
.post-image img,
.featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Inside article (padding) */
.generate-columns-container .inside-article,
.inside-article {
    padding: 0;
}
.generate-columns-container .entry-summary,
.generate-columns-container .entry-header,
.entry-summary,
.blog .entry-header {
    padding: 16px 20px;
}
.generate-columns-container .entry-header {
    padding-bottom: 0;
}

/* Entry title */
.generate-columns-container .entry-title a,
.blog .entry-title a {
    font-size: 18px;
    font-weight: 700;
    color: var(--nter-text);
    line-height: 1.4;
}
.generate-columns-container .entry-title a:hover,
.blog .entry-title a:hover {
    color: var(--nter-primary);
}

/* Category badges */
.cat-links a {
    background: var(--nter-primary);
    color: var(--nter-white) !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 6px;
}
.cat-links a:hover {
    background: var(--nter-primary-dark);
    color: var(--nter-white) !important;
}

/* Entry meta */
.entry-meta {
    font-size: 13px;
    color: var(--nter-text-secondary);
    padding: 0 20px 16px;
}
.entry-meta a {
    color: var(--nter-text-secondary);
}
.entry-meta a:hover {
    color: var(--nter-primary);
}

/* Read more */
a.read-more,
.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--nter-primary);
    color: var(--nter-white) !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 20px 20px;
    transition: background 0.15s ease;
}
a.read-more:hover {
    background: var(--nter-primary-dark);
    color: var(--nter-white) !important;
}

/* === Single Post === */
.single .entry-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}
.single .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}
.single .entry-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* === Sidebar Widgets === */
.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nter-primary);
    margin-bottom: 16px;
}

/* === Footer === */
.site-info {
    background: var(--nter-text) !important;
    color: var(--nter-text-secondary) !important;
    font-size: 14px;
    text-align: center;
}
.site-info a {
    color: var(--nter-primary-light) !important;
}
.site-info a:hover {
    color: var(--nter-white) !important;
}

/* === Pagination === */
.pagination .page-numbers {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 14px;
}
.pagination .page-numbers.current {
    background: var(--nter-primary);
    color: var(--nter-white);
}

/* === Trending/Breaking bar === */
.nter-breaking-bar {
    background: var(--nter-primary);
    color: var(--nter-white);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
}
.nter-breaking-bar .label {
    background: var(--nter-accent);
    color: var(--nter-text);
    padding: 4px 12px;
    border-radius: 3px;
    margin-right: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    display: inline-block;
}
.nter-breaking-bar a {
    color: var(--nter-white) !important;
}

/* === Language switcher === */
.nter-lang-switcher {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 9999;
}
.nter-lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
    background: var(--nter-white);
    border-radius: 6px;
    box-shadow: var(--nter-card-shadow);
    padding: 2px;
}
.nter-lang-switcher li a {
    padding: 4px 10px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--nter-text-secondary);
    border-radius: 4px;
    transition: all 0.15s ease;
    display: block;
}
.nter-lang-switcher li a:hover,
.nter-lang-switcher li.current-lang a {
    color: var(--nter-primary);
    background: var(--nter-bg);
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-title a {
        font-size: 22px !important;
    }
    .single .entry-title {
        font-size: 24px;
    }
    .nter-lang-switcher {
        top: 6px;
        right: 8px;
    }
}
