/**
 * C-sisuper Widget & Shortcode Stylesheet
 * Native Responsive Poster Card Design
 * Package: PN-RED SUITE
 * Author: Catur Adi Sukrisno
 */

.c-sisuper-container {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    margin: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.c-sisuper-container *,
.c-sisuper-container *::before,
.c-sisuper-container *::after {
    box-sizing: border-box;
}

.c-sisuper-poster {
    width: 100%;
    max-width: 280px;
    min-height: 430px;
    border-radius: 12px;
    background: 
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 15% 90%, rgba(0, 0, 0, 0.35) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 430' preserveAspectRatio='none'%3E%3Cpath d='M0,140 C80,100 170,180 280,120 L280,430 L0,430 Z' fill='rgba(0,0,0,0.14)'/%3E%3Cpath d='M0,195 C90,245 190,165 280,215 L280,430 L0,430 Z' fill='rgba(255,255,255,0.06)'/%3E%3Cpath d='M0,285 C100,245 180,315 280,275 L280,430 L0,430 Z' fill='rgba(0,0,0,0.18)'/%3E%3C/svg%3E"),
        linear-gradient(155deg, #8f1212 0%, #ad1c0b 35%, #730a0a 70%, #4a0505 100%);
    background-size: cover;
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 28px rgba(112, 11, 11, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.c-sisuper-header {
    padding: 12px 12px 6px;
    text-align: center;
    flex-shrink: 0;
}

.c-sisuper-logo-box {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    text-align: left;
}

.c-sisuper-logo {
    width: 36px;
    height: 36px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.c-sisuper-instansi h3 {
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.c-sisuper-instansi p {
    font-size: 8px;
    opacity: 0.92;
    margin: 2px 0 0 0;
    line-height: 1.2;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.c-sisuper-hero-title {
    background: linear-gradient(180deg, #8f1010, #bd3a24);
    padding: 6px 10px;
    border-radius: 0 10px 10px 0;
    margin-right: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.c-sisuper-hero-title h1 {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.2px;
}

/* Triwulan Switcher Navigation */
.c-sisuper-tw-nav {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 0 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

.c-sisuper-tw-btn {
    flex: 1;
    padding: 4px 2px;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(22, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    outline: none;
    white-space: nowrap;
}

.c-sisuper-tw-btn:hover:not(.active) {
    background: rgba(22, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.7);
}

.c-sisuper-tw-btn.active,
.c-sisuper-tw-btn.active:hover,
.c-sisuper-tw-btn.active:focus {
    background: #ffffff !important;
    color: #b50d0d !important;
    border-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    font-weight: 800;
}

/* Score Box */
.c-sisuper-score-box {
    background: rgba(255, 255, 255, 0.96);
    color: #9a2109;
    margin: 8px 12px;
    border-radius: 9px;
    padding: 10px 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.c-sisuper-score {
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.c-sisuper-period {
    font-size: 9px;
    font-weight: 600;
    margin-top: 4px;
    color: #475569;
}

/* Content Area */
.c-sisuper-content {
    flex: 1;
    padding: 0 12px 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.c-sisuper-resp-label {
    background: #b50d0d;
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 7px 7px 0 0;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.c-sisuper-card {
    background: #ffffff;
    color: #334155;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.c-sisuper-card-header {
    background: #f8fafc;
    padding: 5px 8px;
    font-size: 8.5px;
    font-weight: 800;
    text-align: center;
    color: #9a2109;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.c-sisuper-list {
    list-style: none;
    padding: 6px 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3.5px;
}

.c-sisuper-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 5px;
    padding: 3.5px 7px;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.25;
    color: #334155;
    transition: all 0.15s ease;
}

.c-sisuper-list li:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.c-sisuper-list li span:first-child {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 6px;
}

.c-sisuper-list li span:last-child {
    color: #b50d0d;
    background: rgba(181, 13, 13, 0.08);
    border: 1px solid rgba(181, 13, 13, 0.15);
    font-weight: 800;
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Wilayah Hukum Collapsible Card */
.c-sisuper-wilkum-card {
    margin-top: 7px;
    flex-shrink: 0;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.c-sisuper-wilkum-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    background: linear-gradient(135deg, #8f1010 0%, #b50d0d 100%);
    color: #ffffff;
    padding: 6px 10px;
    font-size: 9px;
    font-weight: 800;
    font-family: inherit;
    border-radius: 7px;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.c-sisuper-wilkum-toggle:hover {
    background: linear-gradient(135deg, #780b0b 0%, #9a2109 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.c-sisuper-arrow {
    font-size: 7.5px;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    padding: 2px 5px;
    border-radius: 3px;
    transition: transform 0.25s ease;
    line-height: 1;
}

.c-sisuper-wilkum-body {
    display: none;
    padding: 7px 9px;
    background: #ffffff;
    color: #334155;
    max-height: 110px;
    overflow-y: auto;
    border-radius: 0 0 7px 7px;
    border: 1px solid #e2e8f0;
    border-top: none;
}

.c-sisuper-wilkum-body.open {
    display: block;
}

.c-sisuper-wilkum-group {
    margin-bottom: 5px;
}

.c-sisuper-wilkum-group:last-child {
    margin-bottom: 0;
}

.c-sisuper-wilkum-kab {
    font-size: 8px;
    font-weight: 800;
    color: #b50d0d;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.c-sisuper-wilkum-kec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.c-sisuper-kec-badge {
    background: #f8fafc;
    color: #1e293b;
    font-size: 7.5px;
    font-weight: 600;
    padding: 1.5px 4.5px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
}

/* Action Box */
.c-sisuper-action-box {
    padding: 0 12px 12px;
    flex-shrink: 0;
}

.c-sisuper-btn-survey {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 10px;
    background: #be2304;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(190, 35, 4, 0.35);
    text-align: center;
}

.c-sisuper-btn-survey:hover {
    background: #9a2109;
    box-shadow: 0 6px 14px rgba(154, 33, 9, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Maintenance Card */
.c-sisuper-maintenance {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin: 10px 0;
    width: 100%;
    max-width: 280px;
}

.c-sisuper-maintenance .maintenance-icon {
    color: #f59e0b;
    margin-bottom: 10px;
}

.c-sisuper-maintenance h3 {
    margin: 6px 0 6px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.c-sisuper-maintenance p {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0;
}

