/* ═══════════════════════════════════════════════
   Sidebar En-Widget Collection CSS
   ═══════════════════════════════════════════════ */

.en-widgets-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Widgets stack by default */
.en-tab-widget {
    width: 100%;
}

.en-widget-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 14px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.en-widget-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.en-widget-title i {
    color: var(--accent-blue);
    font-size: 13px;
}

.en-widget-title .en-widget-all-link {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    opacity: 0.9;
}

.en-widget-title .en-widget-all-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.en-widget-title .en-widget-all-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ─── Tabs ─── */
.en-widget-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 14px;
}

.en-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-short);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.en-tab-btn i {
    font-size: 12px;
    opacity: 0.7;
}

.en-tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.en-tab-btn.active i {
    opacity: 1;
}

.en-tab-panel {
    display: none;
}

.en-tab-panel.active {
    display: block;
    animation: enFadeIn 0.3s ease;
}

/* ─── List Layout Logic ─── */
.en-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
}

/* Full width widgets get 2 columns */
.en-tab-widget .en-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* Half width widgets stay 1 column */
.en-widget-box:not(.en-tab-widget) .en-list {
    grid-template-columns: 1fr;
}

.en-list li a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 9px;
    border-radius: 8px;
    transition: all var(--transition-short);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.en-list li a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.en-list li a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.en-tab-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.en-city-info {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.en-city-rank {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-blue);
    opacity: 0.6;
    min-width: 16px;
}

.en-city-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.en-list li a:hover .en-city-name {
    color: #fff;
}

.en-city-data {
    display: flex;
    align-items: center;
    gap: 5px;
}

.en-city-temp {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.en-city-icon {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* ─── Animations ─── */
@keyframes enFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Section Specific ─── */
.hottest-list li a:hover .en-city-temp {
    color: #f87171;
}

.coldest-list li a:hover .en-city-temp {
    color: #60a5fa;
}

/* ─── Mobile Adjustments ─── */
@media (max-width: 480px) {
    .en-widgets-container {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .en-tab-widget {
        grid-column: span 2;
    }

    .en-tab-widget .en-list {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
}

/* ─── Turkey Stats Widget ─── */
.en-stats-widget {
    width: 100%;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.3)) !important;
}

.en-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.en-stats-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.en-stats-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.en-stats-pulse {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    animation: statsPulse 2s infinite;
}

.en-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.en-stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.en-stat-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.en-stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 18px;
}

.en-stat-details {
    display: flex;
    flex-direction: column;
}

.en-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.en-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

@keyframes statsPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}