/*
Theme Name: Slovenska Tribuna
Theme URI: https://slovenskatribuna.com
Author: Slovenska Tribuna
Description: Profesionalen novičarski portal - Glas ljudstva
Version: 1.0
License: GNU General Public License v2
Text Domain: slovenskatribuna
*/

/* ============================================
   OSNOVE & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --modra: #003DA5;
    --rdeca: #E31B23;
    --bela: #FFFFFF;
    --temna: #1A1A1A;
    --svetlo-siva: #F5F5F5;
    --siva: #666666;
    --border: #E0E0E0;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: var(--svetlo-siva);
    color: var(--temna);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   BREAKING NEWS BAR
   ============================================ */
.breaking-news-bar {
    background-color: var(--rdeca);
    color: var(--bela);
    padding: 8px 0;
    font-size: 14px;
    overflow: hidden;
}

.breaking-news-bar .label {
    background-color: var(--temna);
    color: var(--bela);
    padding: 4px 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 15px;
    font-size: 12px;
    letter-spacing: 1px;
}

.breaking-news-bar .ticker {
    display: inline-block;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: var(--modra);
    color: var(--bela);
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--bela);
    letter-spacing: 1px;
    line-height: 1.2;
}

.site-logo .tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    letter-spacing: 2px;
}

.site-logo .red-line {
    width: 60px;
    height: 3px;
    background-color: var(--rdeca);
    margin-top: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.header-search input {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--bela);
    border-radius: 20px;
    font-size: 13px;
    width: 200px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   NAVIGACIJA
   ============================================ */
.main-nav {
    background-color: #002D7A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 14px 22px;
    color: var(--bela);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li.active a {
    background-color: var(--rdeca);
}

/* ============================================
   GLAVNA NOVICA (HERO)
   ============================================ */
.hero-section {
    padding: 20px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 450px;
    background-color: var(--temna);
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-main .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--bela);
}

.hero-main .category-badge {
    background-color: var(--rdeca);
    color: var(--bela);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-main .overlay h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-main .overlay .meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    min-height: 210px;
    background-color: var(--temna);
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-side-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--bela);
}

.hero-side-item .overlay h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-side-item .category-badge {
    background-color: var(--rdeca);
    color: var(--bela);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

/* ============================================
   SEKCIJA KATEGORIJ
   ============================================ */
.category-section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--modra);
    padding-bottom: 10px;
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--temna);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--rdeca);
}

.section-header a {
    color: var(--modra);
    font-size: 13px;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background-color: var(--bela);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.news-card .card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.news-card .card-image .category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--rdeca);
    color: var(--bela);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card .card-content {
    padding: 15px;
}

.news-card .card-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--temna);
}

.news-card .card-content .excerpt {
    font-size: 13px;
    color: var(--siva);
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-card .card-content .meta {
    font-size: 12px;
    color: #999;
}

/* ============================================
   STRANSKA VRSTICA
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px 0;
}

.sidebar .widget {
    background-color: var(--bela);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar .widget-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--temna);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--modra);
    position: relative;
}

.sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--rdeca);
}

.sidebar .trending-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar .trending-item:last-child {
    border-bottom: none;
}

.sidebar .trending-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--rdeca);
    line-height: 1;
    min-width: 35px;
}

.sidebar .trending-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--temna);
}

.sidebar .trending-item .meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background-color: var(--modra);
    color: var(--bela);
    padding: 40px 0;
    text-align: center;
}

.newsletter-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    flex: 1;
}

.newsletter-form button {
    padding: 12px 30px;
    background-color: var(--rdeca);
    color: var(--bela);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #c41720;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--temna);
    color: var(--bela);
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bela);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--rdeca);
}

.footer-col .about-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .site-logo h1 {
        font-size: 28px;
    }

    .hero-main {
        min-height: 300px;
    }

    .hero-main .overlay h2 {
        font-size: 22px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .main-nav ul li a {
        padding: 10px 15px;
        font-size: 12px;
    }
}
