/* ========================================================
   ROBOTIKA UPGRIS - HOME PAGE STYLES
   Page Scoping: .page-home
   ======================================================== */

.bg-alt {
        background-color: var(--alt-bg);
    }
    .pixel-news-screen {
        background-color: var(--bg);
    }
    .pixel-proker-screen {
        background-color: var(--alt-bg);
    }

    /* Pixel Jagged Border Transition (Desain 2) */
    .pixel-divider-top {
        position: absolute;
        top: -16px;
        left: 0;
        width: 100%;
        height: 16px;
        background-color: var(--alt-bg);
        -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" width="32" height="16"><path d="M 0,16 L 0,8 L 8,8 L 8,0 L 24,0 L 24,8 L 32,8 L 32,16 Z" fill="black" /></svg>');
        -webkit-mask-repeat: repeat-x;
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" width="32" height="16"><path d="M 0,16 L 0,8 L 8,8 L 8,0 L 24,0 L 24,8 L 32,8 L 32,16 Z" fill="black" /></svg>');
        mask-repeat: repeat-x;
        z-index: 5;
    }
    .pixel-divider-bottom {
        position: absolute;
        bottom: -16px;
        left: 0;
        width: 100%;
        height: 16px;
        background-color: var(--alt-bg);
        -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" width="32" height="16"><path d="M 0,0 L 0,8 L 8,8 L 8,16 L 24,16 L 24,8 L 32,8 L 32,0 Z" fill="black" /></svg>');
        -webkit-mask-repeat: repeat-x;
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" width="32" height="16"><path d="M 0,0 L 0,8 L 8,8 L 8,16 L 24,16 L 24,8 L 32,8 L 32,0 Z" fill="black" /></svg>');
        mask-repeat: repeat-x;
        z-index: 5;
    }

    .theme-invert-text {
        color: var(--invert-text) !important;
    }
    .theme-text {
        color: var(--text-main) !important;
    }
    .pixel-font {
        font-family: var(--pixel-font);
    }
    /* ═══════════════════════════════════════════════════
       1 LAYAR PER BAGIAN (DESKTOP FULL-VIEWPORT SECTIONS)
       ═══════════════════════════════════════════════════ */
    .pixel-screen-section {
        position: relative;
        width: 100%;
    }

    @media (min-width: 992px) {
        .pixel-screen-section {
            min-height: calc(100vh - 64px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            width: 100%;
        }

        .pixel-hero-screen {
            padding: 2rem 0;
            background-size: cover;
            background-position: center;
            border-bottom: 4px solid var(--primary);
            image-rendering: pixelated;
        }

        .pixel-divisi-screen {
            padding: 2.5rem 0;
        }

        .pixel-news-screen {
            padding: 2rem 0 2.75rem 0;
            background-color: var(--bg);
        }

        .pixel-proker-screen {
            padding: 2.75rem 0 2.25rem 0;
            background-color: var(--alt-bg);
        }

        .proker-img-box {
            height: 110px !important;
        }
    }

    @media (max-width: 991.98px) {
        .pixel-screen-section {
            min-height: auto;
            padding: 3rem 0;
            display: block;
        }

        .pixel-hero-screen {
            background-size: cover;
            background-position: center;
            border-bottom: 4px solid var(--primary);
            padding: 3.5rem 0 2.5rem 0;
            image-rendering: pixelated;
        }

        .proker-img-box {
            height: 120px !important;
        }
    }

    .pixel-badge {
        background: #000;
        color: var(--primary);
        border: 3px solid var(--primary);
        padding: 0.4rem 0.85rem;
        font-family: var(--pixel-font);
        font-size: 0.68rem;
        box-shadow: 3px 3px 0px #000;
    }
    .pixel-title {
        font-size: clamp(1.85rem, 3.8vw, 2.75rem);
        text-shadow: 3px 3px 0px #000;
        line-height: 1.25;
        color: #fff;
    }
    .pixel-section-title {
        color: var(--primary);
        font-size: clamp(1.35rem, 2.6vw, 1.95rem);
        text-shadow: 3px 3px 0px #000;
        display: inline-block;
        border-bottom: 4px solid var(--primary);
        padding-bottom: 0.35rem;
    }
    .pixel-stat {
        background: var(--surface);
        border-color: var(--primary);
        padding: 0.85rem 1.15rem;
    }
    .stat-icon {
        font-family: var(--pixel-font);
        color: var(--text-main);
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }
    .stat-num {
        font-family: var(--pixel-font);
        font-size: 2.15rem;
        margin-bottom: 0.25rem;
        line-height: 1.1;
        text-shadow: 3px 3px 0px #000;
    }
    .stat-label {
        font-family: var(--pixel-font);
        font-size: 0.62rem;
        color: var(--text-muted);
    }
    .pixel-class-card {
        background: var(--surface);
        padding: 1.25rem 1.25rem;
        transition: transform 0.2s;
        cursor: pointer;
    }
    .pixel-class-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
    }
    .class-name {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 0px var(--border);
    }
    .class-desc {
        font-family: var(--pixel-font-alt);
        font-size: 1.15rem;
        line-height: 1.45;
        color: var(--text-muted);
    }
    .pixel-line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .pixel-news-featured {
        background: var(--surface);
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .pixel-news-featured:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
    }
    .pixel-news-desc {
        color: var(--text-muted) !important;
    }
    .pixel-news-list {
        background: var(--surface);
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }
    .pixel-news-list:hover {
        transform: translateY(-3px);
        border-color: var(--primary);
    }
    .pixel-news-thumb-box {
        width: 105px;
        height: 100%;
        min-height: 85px;
        max-height: 115px;
        aspect-ratio: 1 / 1;
        border: 3px solid var(--border);
        overflow: hidden;
    }

    @media (min-width: 992px) {
        .pixel-news-row {
            align-items: stretch;
        }
        .pixel-news-link {
            min-height: 0;
        }
        .pixel-featured-img-box {
            position: relative;
            flex: 1 1 auto;
            min-height: 200px;
            max-height: 250px;
            overflow: hidden;
            border-bottom: 4px solid var(--border);
        }
        .pixel-featured-img-box .pixel-featured-img,
        .pixel-featured-img-box .pixel-featured-no-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .pixel-featured-body {
            flex: 0 0 auto;
        }
    }

    @media (max-width: 991.98px) {
        .pixel-featured-img-box {
            position: relative;
            height: 220px;
            overflow: hidden;
            border-bottom: 4px solid var(--border);
        }
        .pixel-featured-img-box .pixel-featured-img,
        .pixel-featured-img-box .pixel-featured-no-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .pixel-news-thumb-box {
            width: 80px;
            height: 80px;
            min-height: 80px;
            max-height: 80px;
        }
        .pixel-news-link {
            flex: 0 0 auto;
        }
    }
    .pixel-proker-card {
        background: var(--surface);
        border: 3px solid var(--border);
        border-radius: 0;
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        overflow: hidden;
    }
    .pixel-proker-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
        box-shadow: 4px 4px 0px var(--primary);
    }
    .pixel-proker-card:focus {
        outline: none;
        border-color: var(--primary);
    }
    .proker-img-box {
        overflow: hidden;
        border-bottom: 3px solid var(--border);
        background: var(--bg);
    }
    .proker-img {
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    .pixel-proker-card:hover .proker-img {
        transform: scale(1.05);
    }
    .proker-card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.2s ease;
        color: var(--primary);
    }
    .pixel-proker-card:hover .proker-card-overlay {
        opacity: 1;
    }
    .proker-header-pattern {
        height: 100%;
        border-bottom: none;
    }
    .proker-icon-symbol {
        font-size: 2rem;
    }
    .proker-title-bar {
        min-height: 46px;
        background: var(--surface);
    }
    .proker-minimal-title {
        font-family: var(--pixel-font);
        font-size: 0.72rem;
        line-height: 1.35;
        word-break: break-word;
    }
    .proker-status-badge {
        font-family: var(--pixel-font);
        font-size: 0.55rem;
        padding: 0.35rem 0.6rem;
        border-radius: 0;
        border: 2px solid;
    }
    .proker-status-plan {
        background: rgba(245, 158, 11, 0.15);
        color: #F59E0B;
        border-color: #F59E0B;
    }
    .proker-status-progress {
        background: rgba(59, 130, 246, 0.15);
        color: #3B82F6;
        border-color: #3B82F6;
    }
    .proker-status-success {
        background: rgba(16, 185, 129, 0.15);
        color: #10B981;
        border-color: #10B981;
    }
    .pixel-modal-content {
        background: var(--surface);
        border: 4px solid var(--primary);
        border-radius: 0;
        box-shadow: 10px 10px 0px rgba(0,0,0,0.7);
        color: var(--text-main);
    }
    .pixel-modal-footer {
        border-top: 4px solid var(--border);
        background: var(--surface);
    }
    .proker-subtitle {
        color: #cbd5e1 !important;
    }

    [data-theme="light"] .proker-subtitle {
        color: #475569 !important;
    }
    [data-theme="light"] .proker-minimal-title {
        color: #0f172a !important;
    }

    @media (max-width: 768px) {
        .proker-img-box {
            height: 120px;
        }
        .proker-minimal-title {
            font-size: 0.65rem;
        }
    }
    .pixel-header {
        background: var(--primary);
        color: #000;
        font-family: var(--pixel-font);
        font-size: 0.8rem;
        border-bottom: 4px solid #000;
        border-radius: 0;
        padding: 0.75rem 1rem;
    }
    .pixel-popup {
        border-color: var(--primary);
    }

    @media (max-width: 768px) {
        .pixel-title {
            font-size: 2rem;
        }
        .pixel-stat {
            padding: 0.75rem 0.2rem;
        }
        .stat-icon {
            font-size: 0.6rem;
            margin-bottom: 0.5rem;
        }
        .stat-num {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }
        .stat-label {
            font-size: 0.45rem;
        }
    }
