/* ============================================
   DIKSI.CO – MODERN WIDGETS DESIGN SYSTEM
   Stunning Widgets: Popular Posts, Weather, Categories
============================================ */

/* ─── Universal Widget Box Container ────────── */
.widget {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(11, 19, 43, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.widget:hover {
    box-shadow: 0 6px 20px rgba(11, 19, 43, 0.07);
}

.widget-title,
.widget .section-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 800;
    color: #0B132B;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    letter-spacing: -0.2px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 36px;
    height: 2.5px;
    background: #0284C7;
    border-radius: 2px;
}

/* ════════════════════════════════════════════
   1. WIDGET: BERITA TERPOPULER (PREMIUM LIST)
════════════════════════════════════════════ */
.diksi-popular-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diksi-pop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.diksi-pop-item:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

/* Ranking Badges */
.diksi-pop-rank {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    background: #F1F5F9;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.diksi-pop-item:hover .diksi-pop-rank {
    transform: scale(1.1);
}

.diksi-pop-rank.rank-1 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.diksi-pop-rank.rank-2 {
    background: linear-gradient(135deg, #94A3B8 0%, #475569 100%);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(71, 85, 105, 0.25);
}

.diksi-pop-rank.rank-3 {
    background: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.25);
}

.diksi-pop-rank.rank-4,
.diksi-pop-rank.rank-5 {
    background: #E0F2FE;
    color: #0284C7;
}

/* Thumbnail */
.diksi-pop-thumb {
    width: 80px;
    height: 64px;
    min-width: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #F1F5F9;
    flex-shrink: 0;
}

.diksi-pop-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.diksi-pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.diksi-pop-item:hover .diksi-pop-thumb img {
    transform: scale(1.1);
}

/* Content */
.diksi-pop-info {
    flex: 1;
    min-width: 0;
}

.diksi-pop-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.diksi-pop-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.3;
}

.diksi-pop-views {
    color: #EA580C;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.diksi-pop-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #0B132B;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diksi-pop-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.diksi-pop-item:hover .diksi-pop-title a {
    color: #0284C7;
}

.diksi-pop-time {
    font-size: 11px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
}

.diksi-pop-time i {
    font-size: 12px;
}

/* ════════════════════════════════════════════
   2. WIDGET: CUACA SAMARINDA (APPLE/MODERN CARD)
════════════════════════════════════════════ */
.widget.widget_diksi_weather {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.widget.widget_diksi_weather .widget-title {
    display: none; /* Replaced by the internal rich header */
}

.diksi-weather-box {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #0284C7 0%, #0369A1 50%, #0B132B 100%);
    color: #FFFFFF;
    padding: 22px 20px;
    box-shadow: 0 8px 26px rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.diksi-weather-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Weather Header */
.diksi-weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.diksi-weather-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #E0F2FE;
    letter-spacing: 0.2px;
}

.diksi-weather-city i {
    color: #38BDF8;
    font-size: 17px;
}

.diksi-weather-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    padding: 3px 9px;
    border-radius: 20px;
    color: #FFFFFF;
}

.diksi-weather-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px #4ADE80;
    animation: diksiPulse 1.8s infinite;
}

@keyframes diksiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* Weather Main Temperature Row */
.diksi-weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.diksi-weather-temp-wrap {
    display: flex;
    flex-direction: column;
}

.diksi-weather-temp {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: -1.5px;
}

.diksi-weather-temp sup {
    font-size: 24px;
    font-weight: 600;
    margin-left: 2px;
    color: #38BDF8;
}

.diksi-weather-desc {
    font-size: 14px;
    font-weight: 700;
    color: #BAE6FD;
    margin-top: 6px;
}

.diksi-weather-feels {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.diksi-weather-icon-wrap {
    font-size: 52px;
    color: #FDE047;
    filter: drop-shadow(0 4px 14px rgba(253, 224, 71, 0.35));
    animation: diksiFloat 3.5s ease-in-out infinite;
}

@keyframes diksiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Weather Metric Grid */
.diksi-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.diksi-weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: background 0.2s ease;
}

.diksi-weather-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.diksi-weather-card i {
    font-size: 18px;
    color: #7DD3FC;
    flex-shrink: 0;
}

.diksi-weather-card-info {
    display: flex;
    flex-direction: column;
}

.diksi-weather-card-info span {
    font-size: 9.5px;
    color: #BAE6FD;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.diksi-weather-card-info strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
}

.diksi-weather-card-info strong.aqi-good {
    color: #86EFAC;
}

/* Weather Footer */
.diksi-weather-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.diksi-weather-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.diksi-weather-badge-source {
    color: #7DD3FC;
    font-weight: 600;
}

/* ════════════════════════════════════════════
   3. WIDGET: KATEGORI PILIHAN (PILLS & LIST)
════════════════════════════════════════════ */
.diksi-category-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diksi-cat-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1.5px solid #F1F5F9;
    color: #1E293B;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(11, 19, 43, 0.03);
    position: relative;
}

.diksi-cat-pill-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.diksi-cat-pill-btn .diksi-cat-count {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    background: #F1F5F9;
    color: #64748B;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.diksi-cat-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
    border-color: #0284C7;
    color: #0284C7;
}

.diksi-cat-pill-btn:hover i {
    transform: scale(1.2) rotate(4deg);
}

.diksi-cat-pill-btn:hover .diksi-cat-count {
    background: #0284C7;
    color: #FFFFFF;
}

/* Category Modern List Layout */
.diksi-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diksi-cat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(11, 19, 43, 0.02);
}

.diksi-cat-list-item:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.diksi-cat-list-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.diksi-cat-list-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.diksi-cat-list-item:hover .diksi-cat-list-icon {
    transform: scale(1.1);
}

.diksi-cat-list-name {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #0B132B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.diksi-cat-list-item:hover .diksi-cat-list-name {
    color: #0284C7;
}

.diksi-cat-list-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.diksi-cat-list-count {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    background: #F1F5F9;
    color: #64748B;
    transition: all 0.2s ease;
}

.diksi-cat-list-item:hover .diksi-cat-list-count {
    background: #E0F2FE;
    color: #0284C7;
}

.diksi-cat-list-arrow {
    font-size: 16px;
    color: #94A3B8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.diksi-cat-list-item:hover .diksi-cat-list-arrow {
    color: #0284C7;
    transform: translateX(3px);
}

/* Native WordPress Category Widget Modernized */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget_categories ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 700;
}

.widget_categories ul li:hover {
    background: #F0F9FF;
    border-color: #0284C7;
    transform: translateX(4px);
}

.widget_categories ul li a {
    color: #1E293B;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    transition: color 0.2s;
}

.widget_categories ul li:hover a {
    color: #0284C7;
}

.widget_categories ul li a::before {
    content: '#';
    color: #0284C7;
    font-weight: 800;
    font-size: 14px;
}

.widget_categories ul li span.count,
.widget_categories ul li .diksi-native-cat-count {
    font-size: 11px;
    font-weight: 800;
    color: #0284C7;
    background: #E0F2FE;
    padding: 2px 8px;
    border-radius: 20px;
}
