/**
 * Kolaras Hulchal - Sidebar Widgets CSS (Recent News, Weather Card, Ad Slot)
 *
 * @package Kolaras_Hulchal
 * @version 1.0.0
 */

/* 1. Generic Base Widget Styling */
.kh-widget {
    background-color: var(--kh-bg-white, #FFFFFF);
    border-radius: var(--kh-radius, 6px);
    border: 1px solid var(--kh-border, #E2E8F0);
    padding: 1.25rem;
    box-shadow: var(--kh-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.kh-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--kh-border, #E2E8F0);
}

.kh-widget-title {
    font-family: var(--kh-font-heading, 'Tiro Devanagari Hindi', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--kh-navy-dark, #0B132B);
    margin: 0;
}

.kh-widget-view-all {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kh-red-primary, #D90429);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.kh-widget-view-all:hover {
    color: var(--kh-red-hover, #EF233C);
}

/* 2. Compact Recent News List Widget */
.kh-recent-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.kh-recent-news-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--kh-border, #E2E8F0);
}

.kh-recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kh-recent-news-media {
    flex-shrink: 0;
}

.kh-recent-news-thumb {
    width: 56px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.kh-recent-news-thumb-placeholder {
    width: 56px;
    height: 48px;
    background-color: var(--kh-navy-dark, #0B132B);
    border-radius: 4px;
}

.kh-recent-news-info {
    flex: 1;
    min-width: 0;
}

.kh-recent-news-cat {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--kh-red-primary, #D90429);
    display: block;
    margin-bottom: 0.125rem;
}

.kh-recent-news-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kh-recent-news-title a {
    color: var(--kh-text-main, #0F172A);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kh-recent-news-title a:hover {
    color: var(--kh-red-primary, #D90429);
}

.kh-recent-news-meta {
    font-size: 0.75rem;
    color: var(--kh-text-muted, #64748B);
}

/* 3. Weather Card Widget (Navy Theme) */
.kh-weather-widget {
    background-color: var(--kh-navy-main, #1C2541);
    color: var(--kh-text-inverse, #FFFFFF);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kh-weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kh-weather-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kh-weather-city-title {
    font-family: var(--kh-font-heading, 'Tiro Devanagari Hindi', serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kh-text-inverse, #FFFFFF);
    margin: 0;
}

.kh-weather-main-icon {
    font-size: 1.5rem;
}

.kh-weather-temp-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.875rem;
}

.kh-weather-temp-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--kh-text-inverse, #FFFFFF);
    line-height: 1;
}

.kh-weather-unit {
    font-size: 1.125rem;
    font-weight: 700;
    color: #F87171;
}

.kh-weather-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background-color: rgba(11, 19, 43, 0.6);
    border-radius: 6px;
    padding: 0.625rem 0.375rem;
    text-align: center;
    margin-bottom: 0.875rem;
}

.kh-stat-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.125rem;
}

.kh-stat-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--kh-text-inverse, #FFFFFF);
}

.kh-weather-footer {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.kh-weather-more-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #F87171;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.kh-weather-more-link:hover {
    color: #FFF;
}

.kh-weather-unavailable-msg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

/* 4. Advertisement Unit Widget */
.kh-ad-widget {
    background-color: #F8FAFC;
    border: 1px dashed var(--kh-border, #E2E8F0);
    text-align: center;
    padding: 0.875rem;
}

.kh-ad-header {
    margin-bottom: 0.5rem;
}

.kh-ad-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--kh-text-muted, #64748B);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kh-ad-slot-container {
    width: 100%;
/*     min-height: 100px; */
/*     aspect-ratio: 30 / 25; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F1F5F9;
    border-radius: 4px;
    overflow: hidden;
}

.kh-ad-placeholder {
    padding: 1rem;
}

.kh-ad-placeholder-title {
    display: block;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--kh-navy-dark, #0B132B);
    margin-bottom: 0.25rem;
}

.kh-ad-placeholder-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--kh-text-muted, #64748B);
}
