/**
 * UNMAS Sistem Farmasi — Public CSS
 * Integrated styling for /sistem-farmasi matching theme Kadu & Farmasi UNMAS branding.
 * Primary: #005E4F (Forest Emerald), Accent: #EF991F (Golden Amber)
 */

:root {
    --sys-pr: #005e4f;
    --sys-pr-dark: #004a3e;
    --sys-pr-light: rgba(0, 94, 79, 0.08);
    --sys-sd: #ef991f;
    --sys-sd-dark: #d97706;
    --sys-sd-light: rgba(239, 153, 31, 0.12);
    --sys-text-dark: #1e293b;
    --sys-text-muted: #64748b;
    --sys-text-light: #94a3b8;
    --sys-border: #e2e8f0;
    --sys-border-hover: #cbd5e1;
    --sys-bg-light: #f8f9fa;
    --sys-card-shadow: 0 4px 20px -2px rgba(0, 94, 79, 0.06);
    --sys-card-hover-shadow: 0 16px 36px -4px rgba(0, 94, 79, 0.14);
}

.unmas-sistem-wrapper {
    background: var(--sys-bg-light);
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--sys-text-dark);
    min-height: 80vh;
}

/* ── Hide Theme Breadcrumb & Archive Header on Sistem Farmasi Page ── */
body.post-type-archive-sistem_farmasi .breadcrumb-area,
body:has(#unmas-sistem-app) .breadcrumb-area {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════ */
/*  HERO BANNER (Matches Homepage h1-bg-1.png)                */
/* ══════════════════════════════════════════════════════════ */
.unmas-sistem-hero {
    position: relative;
    background-color: var(--sys-pr);
    color: #ffffff;
    padding: 280px 20px 95px;
    overflow: hidden;
    text-align: center;
}

.unmas-sistem-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.unmas-sistem-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.unmas-sistem-hero-container {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    z-index: 2;
}

.unmas-sistem-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    color: var(--sys-sd);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.unmas-sistem-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.unmas-sistem-subtitle {
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 740px;
    margin: 0 auto 26px;
}

.unmas-sistem-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 40px;
    font-size: 13.5px;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.unmas-sistem-stats strong {
    color: var(--sys-sd);
    font-size: 15px;
}

.unmas-sistem-stats i {
    color: var(--sys-sd);
    margin-right: 4px;
}

.unmas-sistem-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.unmas-sistem-wave svg {
    display: block;
    width: 100%;
    height: 52px;
}

/* ══════════════════════════════════════════════════════════ */
/*  MAIN SECTION                                              */
/* ══════════════════════════════════════════════════════════ */
.unmas-sistem-section {
    padding: 40px 20px 70px;
}

.unmas-sistem-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Toolbar */
.unmas-sistem-toolbar {
    margin-bottom: 22px;
}

.unmas-sistem-search-wrap {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.unmas-sistem-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.unmas-sistem-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 44px 14px 46px;
    font-size: 15px;
    border: 1.5px solid var(--sys-border);
    border-radius: 50px;
    background: #ffffff;
    color: var(--sys-text-dark);
    box-shadow: 0 4px 16px rgba(0, 94, 79, 0.04);
    transition: all 0.25s ease;
    outline: none;
}

.unmas-sistem-search-input:focus {
    border-color: var(--sys-pr);
    box-shadow: 0 4px 20px rgba(0, 94, 79, 0.12), 0 0 0 3px rgba(0, 94, 79, 0.08);
}

.unmas-sistem-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.unmas-sistem-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Category Filter Pills */
.unmas-sistem-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 36px;
    padding: 4px;
}

.unmas-sys-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1.5px solid var(--sys-border);
    border-radius: 30px;
    color: var(--sys-text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.unmas-sys-pill:hover {
    border-color: var(--sys-sd);
    color: var(--sys-pr);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 94, 79, 0.08);
}

.unmas-sys-pill.active {
    background: var(--sys-pr);
    border-color: var(--sys-pr);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 94, 79, 0.25);
}

.unmas-sys-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s;
}

.unmas-sys-pill.active .unmas-sys-pill-count {
    background: var(--sys-sd);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════ */
/*  SYSTEM CARDS GRID                                         */
/* ══════════════════════════════════════════════════════════ */
.unmas-sistem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

.unmas-sys-card {
    background: #ffffff;
    border: 1px solid var(--sys-border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sys-card-shadow);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

.unmas-sys-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sys-sd) 0%, var(--sys-pr) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.unmas-sys-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sys-card-hover-shadow);
    border-color: var(--sys-border-hover);
}

.unmas-sys-card:hover::before {
    opacity: 1;
}

/* Card Header */
.unmas-sys-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.unmas-sys-logo-wrap {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 94, 79, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.unmas-sys-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.unmas-sys-logo-emblem {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sys-pr-dark) 0%, var(--sys-pr) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sys-sd);
    font-size: 24px;
}

/* Badges */
.unmas-sys-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.unmas-sys-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.unmas-sys-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* Card Body */
.unmas-sys-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.unmas-sys-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--sys-sd);
    background: rgba(239, 153, 31, 0.1);
    border: 1px solid rgba(239, 153, 31, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    align-self: flex-start;
}

.unmas-sys-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sys-text-dark);
    margin: 0 0 10px 0;
    line-height: 1.35;
    transition: color 0.2s;
}

.unmas-sys-card:hover .unmas-sys-card-title {
    color: var(--sys-pr);
}

.unmas-sys-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--sys-text-muted);
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer / Action Button */
.unmas-sys-card-footer {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.unmas-sys-btn-launch {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--sys-pr) 0%, #007a67 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 94, 79, 0.18);
    transition: all 0.25s ease;
}

.unmas-sys-btn-launch:hover {
    background: linear-gradient(135deg, var(--sys-sd) 0%, var(--sys-sd-dark) 100%);
    box-shadow: 0 6px 18px rgba(239, 153, 31, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════ */
/*  EMPTY STATE                                               */
/* ══════════════════════════════════════════════════════════ */
.unmas-sistem-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 18px;
    max-width: 600px;
    margin: 20px auto 40px;
}

.unmas-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.unmas-sistem-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sys-text-dark);
    margin: 0 0 8px;
}

.unmas-sistem-empty p {
    font-size: 14px;
    color: var(--sys-text-muted);
    margin: 0 0 20px;
}

.unmas-sys-btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--sys-pr);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.unmas-sys-btn-reset:hover {
    background: var(--sys-sd);
}

/* ══════════════════════════════════════════════════════════ */
/*  RESPONSIVE QUERIES                                        */
/* ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .unmas-sistem-hero {
        padding: 220px 16px 70px;
    }
    .unmas-sistem-title {
        font-size: 28px;
    }
    .unmas-sistem-subtitle {
        font-size: 14.5px;
    }
    .unmas-sistem-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .unmas-sys-card {
        padding: 18px;
    }
}
