/*
Theme Name: Vizhithirai News Theme
Theme URI: https://vizhiththirai.com
Author: Vizhithirai Team
Version: 1.0
Description: Custom News Theme for Vizhithirai Portal
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #1a252c;
    top: 0 !important;
    position: static !important;
}

.goog-te-banner-frame, .skiptranslate {
    display: none !important;
}

/* ==========================================
   0. Compact Top Radio Player Bar (New)
   ========================================== */
.top-radio-bar {
    background: #0f172a;
    color: #ffffff;
    padding: 6px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid #1e293b;
}

.radio-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.radio-pulse {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.top-radio-bar audio {
    height: 28px;
    width: 220px;
    outline: none;
}

/* 1. Top Bar Navigation */
.top-nav {
    background-color: #0d2b80;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #60a5fa;
}

.watch-live {
    background-color: #ffffff;
    color: #0d2b80;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    height: 8px;
    width: 8px;
    background-color: #e11d48;
    border-radius: 50%;
    display: inline-block;
}

/* 2. Main Header */
header {
    background-color: #ffffff;
    border-bottom: 3px solid #0056b3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    mix-blend-mode: multiply;
    display: block;
}

.ticker-bar {
    background-color: #eef2ff;
    color: #0d2b80;
    border: 1px solid #c7d2fe;
    padding: 6px 15px;
    border-radius: 6px;
    flex-grow: 1;
    margin: 0 15px;
    font-size: 13.5px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: #0d2b80;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 10px;
}

.ticker-link {
    color: #0d2b80;
    text-decoration: none;
}

.ticker-link:hover {
    color: #e11d48;
}

.ticker-sep {
    color: #e11d48;
    margin: 0 12px;
}

.controls-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.lang-btn:hover {
    background-color: #0d2b80;
}

.search-input {
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
    font-size: 13px;
}

.social-bar {
    display: flex;
    gap: 6px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #0056b3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
}

/* 3. Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    padding: 25px 5%;
}

.section-title {
    background-color: #0056b3;
    color: white;
    display: inline-block;
    padding: 6px 20px;
    font-weight: bold;
    font-size: 15px;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
    margin-bottom: 10px;
}

.section-divider {
    border-bottom: 2px solid #0056b3;
    margin-bottom: 15px;
}

.top-story-box, .latest-news-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.top-story h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #0f172a;
}

.top-story h2 a {
    color: #0f172a;
    text-decoration: none;
}

.top-story h2 a:hover {
    color: #0056b3;
}

.top-story p {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.story-meta {
    color: #0056b3;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.top-story img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 15px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.news-item h3 {
    font-size: 16px;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 6px;
}

.news-item h3 a {
    color: #0f172a;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #0056b3;
}

.news-item p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.details-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.details-link:hover {
    text-decoration: underline;
}

footer {
    background-color: #0d2b80;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
}

/* Responsiveness */
@media (max-width: 850px) {
    .main-layout { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; }
    .top-radio-bar { flex-direction: column; gap: 8px; text-align: center; }
}