/*
 * Glocal.gr - Clean Design Without Images
 * Modern, card-based layout preserving original color scheme
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ed1c24;
}

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

/* ========================================
   TOP BAR
   ======================================== */

.top-bar {
    background-color: #222;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-weight: bold;
    font-size: 14px;
}

.social-links a:hover {
    color: #ed1c24;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    text-align: center;
}

.logo img {
    max-width: 300px;
    height: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    background: linear-gradient(to bottom, #333145 0%, #ed1c24 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu li.active a,
.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========================================
   NEWS TICKER
   ======================================== */

.news-ticker {
    background-color: #fff;
    border-bottom: 3px solid #ed1c24;
    padding: 12px 0;
    margin-bottom: 20px;
}

.news-ticker .container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: #ed1c24;
    color: #fff;
    padding: 6px 15px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 15px;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-content a {
    color: #222;
    font-weight: 500;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    padding: 20px 0;
}

/* ========================================
   FEATURED GRID
   ======================================== */

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

.featured-big {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #ed1c24 0%, #c71820 100%);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.featured-medium {
    grid-column: span 2;
    background: linear-gradient(135deg, #333145 0%, #222 100%);
    border-radius: 8px;
    min-height: 192px;
    display: flex;
    align-items: flex-end;
}

.featured-small {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    border-radius: 8px;
    min-height: 192px;
    display: flex;
    align-items: flex-end;
}

.featured-big .article-content,
.featured-medium .article-content,
.featured-small .article-content {
    padding: 25px;
    width: 100%;
}

.featured-big .article-title a,
.featured-medium .article-title a,
.featured-small .article-title a {
    color: #fff;
}

.featured-big .article-title a:hover,
.featured-medium .article-title a:hover,
.featured-small .article-title a:hover {
    color: #f5f5f5;
}

.featured-big .article-title {
    font-size: 24px;
    margin: 12px 0;
}

.featured-medium .article-title {
    font-size: 18px;
    margin: 10px 0;
}

.featured-small .article-title {
    font-size: 15px;
    margin: 8px 0;
}

.featured-big .article-meta,
.featured-medium .article-meta,
.featured-small .article-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* ========================================
   CATEGORY BADGES
   ======================================== */

.category-badge {
    display: inline-block;
    background-color: #ed1c24;
    color: #fff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.category-badge.category-ellada {
    background-color: #ed1c24;
}

.category-badge.category-epikairotita {
    background-color: #ff6b35;
}

.category-badge.category-live {
    background-color: #00a8e8;
}

/* ========================================
   TWO COLUMN LAYOUT
   ======================================== */

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

/* ========================================
   SPECIAL ARTICLE
   ======================================== */

.special-article {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
}

.article-content-overlay .article-title a {
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
}

.article-content-overlay .article-meta {
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0;
}

.article-content-overlay .excerpt {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-top: 10px;
}

/* ========================================
   SECTION TITLE
   ======================================== */

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #222;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ed1c24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   ARTICLES LIST
   ======================================== */

.articles-section {
    margin-bottom: 40px;
}

.articles-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.article-card {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card .article-title {
    font-size: 17px;
    line-height: 1.5;
    margin: 8px 0 10px;
    font-weight: 600;
}

.article-card .article-title a {
    color: #222;
}

.article-card .article-title a:hover {
    color: #ed1c24;
}

.article-card .article-meta {
    color: #777;
    font-size: 12px;
}

.article-card .author {
    font-weight: 600;
    color: #555;
}

.article-card .separator {
    margin: 0 5px;
}

.article-card .excerpt {
    color: #666;
    line-height: 1.7;
    margin-top: 8px;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-number {
    display: inline-block;
    padding: 8px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-weight: 600;
}

.page-number.active,
.page-number:hover {
    background-color: #ed1c24;
    color: #fff;
    border-color: #ed1c24;
}

.page-dots {
    padding: 0 8px;
    color: #999;
}

.page-next,
.page-prev {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */

.category-section {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
}

.category-tabs .tab {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    transition: all 0.2s ease;
}

.category-tabs .tab.active,
.category-tabs .tab:hover {
    background-color: #ed1c24;
    color: #fff;
}

.category-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-articles .article-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border-bottom: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-articles .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #222;
    padding: 10px 15px;
    margin: -25px -25px 20px -25px;
    border-radius: 8px 8px 0 0;
    border-left: 4px solid #ed1c24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-article {
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article .article-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.sidebar-article .article-title a {
    color: #222;
}

.sidebar-article .article-title a:hover {
    color: #ed1c24;
}

.sidebar-article .article-meta {
    color: #777;
    font-size: 11px;
}

/* ========================================
   SOCIAL WIDGET
   ======================================== */

.social-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    padding: 12px 20px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

/* ========================================
   CATEGORY LIST
   ======================================== */

.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #222;
    font-weight: 500;
}

.category-list a:hover {
    color: #ed1c24;
}

.category-list span {
    color: #999;
    font-size: 12px;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ed1c24;
    text-transform: uppercase;
}

.footer-article {
    margin-bottom: 20px;
}

.footer-article h5 {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.footer-article a {
    color: #ccc;
}

.footer-article a:hover {
    color: #ed1c24;
}

.footer-article .date {
    color: #888;
    font-size: 11px;
}

.footer-category-list {
    list-style: none;
}

.footer-category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a3e;
}

.footer-category-list a {
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.footer-category-list a:hover {
    color: #ed1c24;
}

.footer-category-list span {
    color: #666;
}

.footer-bottom {
    border-top: 1px solid #2a2a3e;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    color: #888;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    font-size: 12px;
}

.footer-links a:hover {
    color: #ed1c24;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .category-articles {
        grid-template-columns: 1fr;
    }

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

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

    .featured-big,
    .featured-medium,
    .featured-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 250px;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .ticker-label {
        margin-bottom: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        max-width: 200px;
    }

    .featured-big .article-title {
        font-size: 18px;
    }

    .featured-medium .article-title,
    .special-article .article-title a {
        font-size: 16px;
    }

    .article-card .article-title {
        font-size: 15px;
    }

    .special-article {
        padding: 25px;
    }
}
