/* ============================================
   THE LARISSA PAPER – ΛΑΡΙΣΑ ΝΕΑ ΣΗΜΕΡΑ
   Custom CSS
============================================ */

:root {
    --red:       #c82333;
    --red-dark:  #a71d2a;
    --dark:      #1a1a2e;
    --gray-bg:   #f4f5f7;
    --card-bg:   #ffffff;
    --text:      #2d2d2d;
    --muted:     #6c757d;
    --border:    #e9ecef;
    --green:     #28a745;
}

/* Base */
* { box-sizing: border-box; }
body {
    background: var(--gray-bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
    margin-right: 6px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* Header */
.site-header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.logo { max-width: 220px; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
    padding: 50px 0 40px;
    text-align: center;
}
.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-section p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 20px;
}
.last-update-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 50px;
}

/* New articles notification */
.new-articles-bar {
    display: none;
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    position: sticky;
    top: 77px;
    z-index: 999;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* News Grid */
.news-grid {
    padding: 30px 0;
}

/* Card */
.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.news-card.is-new {
    border-left: 4px solid var(--green);
    animation: fadeInCard 0.5s ease;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card Thumbnail */
.card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.card-thumb-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 32px;
}

/* Card Body */
.card-body-custom {
    padding: 20px;
}
.card-body-custom h2 {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 10px;
}
.card-body-custom h2 a {
    color: inherit;
    text-decoration: none;
}
.card-body-custom h2 a:hover {
    color: var(--red);
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}
.news-meta .badge-cat {
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.news-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
}
.read-btn:hover {
    background: var(--red-dark);
    color: #fff;
    transform: scale(1.02);
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}
.spinner-ring {
    width: 45px;
    height: 45px;
    border: 4px solid #dee2e6;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Load More */
.load-more-btn {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    margin: 0 auto 40px;
}
.load-more-btn:hover  { background: #2d2d4e; }
.load-more-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Stats bar */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--muted);
}

/* SEO Text */
.seo-text-section {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.seo-text-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.seo-text-section h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 8px; }
.seo-text-section p  { color: #555; line-height: 1.7; font-size: 15px; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    font-size: 14px;
    text-align: center;
}
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: #fff; }
.footer-links { margin-bottom: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 30px 0 25px; }
    .news-card { margin-bottom: 16px; }
    .card-thumb { height: 160px; }
}
@media (max-width: 480px) {
    .read-btn { width: 100%; text-align: center; }
}