/* =================================================================
   LANDING PAGE STYLE — Elegant Professional
   Dipakai oleh: index.php, user/index.php, admin/index.php
   ================================================================= */

.landing-body { background: #FDF7FA; }

/* ============== HEADER ============== */
.site-header {
    background: rgba(123, 30, 58, 0.98);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EC407A 0%, #C2185B 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(236,64,122,0.3);
    flex-shrink: 0;
}
.logo-text h1 {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.2;
}
.logo-text p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Menu Toggle (mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-links a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
}
.nav-links a.nav-cta {
    background: #EC407A;
    color: #fff;
    font-weight: 600;
    margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: #C2185B; }
.nav-links a.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}
.nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #EC407A;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============== HERO — Background Image, No Overlay ============== */
.hero {
    position: relative;
    background: url('../Kantor.png') center center / cover no-repeat;
    color: white;
    padding: 140px 24px 150px;
    text-align: center;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.45) 100%
    );
    pointer-events: none;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}
.hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    z-index: 2;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(123,30,58,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #fff;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.75),
        0 4px 24px rgba(0,0,0,0.55),
        0 8px 40px rgba(0,0,0,0.35);
}
.hero-desc {
    font-size: 1.05rem;
    opacity: 1;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 34px;
    font-weight: 500;
    color: #fff;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.7),
        0 3px 16px rgba(0,0,0,0.45);
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-hero {
    padding: 15px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 10px;
}
.hero .btn-primary {
    background: #fff;
    color: var(--burgundy);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.hero .btn-primary:hover {
    background: #FDF7FA;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.hero .btn-outline {
    background: rgba(123,30,58,0.85);
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero .btn-outline:hover {
    background: rgba(123,30,58,1);
    border-color: rgba(255,255,255,0.85);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ============== STATS STRIP ============== */
.stats-strip {
    max-width: 1100px;
    margin: -50px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 10;
}
.stat-item {
    background: white;
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(123,30,58,0.06);
}
.stat-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-item:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right: none; }
.stat-item .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--burgundy);
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 500;
}

/* ============== SECTION ============== */
.section { padding: 20px 0 8px; }
.section-eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--pink-soft);
    color: var(--pink-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ============== FEATURE GRID ============== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 22px 0;
}
.feature-item {
    padding: 22px 20px;
    background: #FDF7FA;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.feature-item:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(123,30,58,0.08);
    border-color: var(--pink);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pink-soft), #F8BBD0);
    color: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1rem;
}
.feature-item strong {
    display: block;
    color: var(--burgundy);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}
.feature-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============== FOTO / IMAGE BOX ============== */
.image-box {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #FCE4EC 0%, #FDF7FA 100%);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}
.image-box img {
    width: 100%;
    height: auto;
    display: block;
}
.image-placeholder {
    display: none;
    text-align: center;
    padding: 50px 20px;
    color: var(--burgundy);
}
.image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 10px;
}
.image-placeholder span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.image-placeholder small {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.image-box.empty .image-placeholder { display: block; }

/* ============== CTA BLOCK ============== */
.cta-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
    border-radius: var(--radius);
    background: #FFF5F8;
    border: 1px solid #F8D5E2;
    border-left: 4px solid var(--pink-dark);
    flex-wrap: wrap;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(236,64,122,0.04);
}
.cta-block strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 4px;
    letter-spacing: -0.1px;
}
/* LEBIH SPESIFIK: hanya <span> di dalam <div> (teks penjelasan),
   BUKAN <span> di dalam tombol */
.cta-block > div > span {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.cta-block-alt > div > span { color: var(--text-muted); }

.cta-block-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--burgundy);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}
.cta-block-btn span {
    color: white !important;
}
.cta-block-btn:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(123,30,58,0.25);
    color: white !important;
}
.cta-block-btn:hover span {
    color: white !important;
}
.cta-block-btn svg {
    color: white !important;
    stroke: white !important;
}

.cta-block-btn-dark {
    background: var(--pink-dark);
    color: white !important;
}
.cta-block-btn-dark span {
    color: white !important;
}
.cta-block-btn-dark:hover {
    background: #C2185B;
    color: white !important;
    box-shadow: 0 6px 18px rgba(236,64,122,0.3);
}
.cta-block-btn-dark:hover span {
    color: white !important;
}
.cta-block-btn-dark svg {
    color: white !important;
    stroke: white !important;
}

/* ============== SOSMED SECTION ============== */
.social-section {
    position: relative;
    background: linear-gradient(160deg, #3A0E1E 0%, #7B1E3A 60%, #A83254 100%);
    color: white;
    padding: 70px 24px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
}
.social-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,64,122,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.social-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    z-index: 2;
}
.social-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.social-desc {
    font-size: 0.92rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 28px;
}
.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 30px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}
.social-btn:hover {
    background: white;
    color: var(--burgundy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: white;
}

/* ============== FOOTER ============== */
.site-footer {
    background: #2C0A17;
    color: rgba(255,255,255,0.6);
    padding: 36px 24px;
    text-align: center;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-copy {
    font-size: 0.82rem;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.footer-copy strong { color: #FFD1DC; font-weight: 600; }
.footer-link a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-link a:hover { color: #EC407A; }

/* ============== GREETING (user dashboard) ============== */
.greeting-block {
    background: linear-gradient(135deg, #7B1E3A 0%, #A83254 100%);
    color: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(123,30,58,0.15);
    position: relative;
    overflow: hidden;
}
.greeting-block::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,64,122,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.greeting-block h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}
.greeting-block p {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.greeting-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.greeting-actions .btn {
    padding: 11px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
}
.greeting-actions .btn-white {
    background: white;
    color: var(--burgundy);
}
.greeting-actions .btn-white:hover {
    background: #FDF7FA;
    transform: translateY(-2px);
}
.greeting-actions .btn-ghost {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
}
.greeting-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
}

/* ============== LAYOUT: Footer Nempel di Bawah ============== */
.landing-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.page-wrapper > .container {
    width: 100%;
}
.page-wrapper > .container:only-child {
    flex: 1;
}

/* ============== PAGE CONTAINER (index.php landing) ============== */
.page-container {
    max-width: 1140px;
    margin: 32px auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.page-container .card {
    padding: 32px 36px;
    max-width: 100%;
    box-sizing: border-box;
}
.page-container .card .section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--burgundy);
    margin-bottom: 16px;
    letter-spacing: -0.4px;
    line-height: 1.3;
}
.page-container .card .section-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4A2C38;
    margin-bottom: 14px;
}
.page-container .card .section-desc strong {
    color: var(--burgundy);
    font-weight: 700;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
    .stat-item:nth-child(1) { border-radius: var(--radius) 0 0 0; }
    .stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
    .stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); }
    .stat-item:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0 4px;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 8px;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 11px 14px;
        text-align: left;
        font-size: 0.88rem;
        border-radius: 8px;
    }
    .nav-links a.nav-cta { margin-left: 0; text-align: center; }

    .hero {
        padding: 90px 20px 100px;
        min-height: 460px;
        background-position: center center;
    }
    .hero-title { font-size: 1.9rem; letter-spacing: -0.5px; }
    .hero-desc { font-size: 0.93rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-hero { width: 100%; }

    .stats-strip { margin-top: -40px; padding: 0 16px; }
    .stat-item { padding: 20px 12px; }
    .stat-item .num { font-size: 1.4rem; }
    .stat-item .label { font-size: 0.68rem; letter-spacing: 0.5px; }

    .section-title { font-size: 1.4rem; }
    .section-desc { font-size: 0.88rem; }

    .cta-block {
        flex-direction: column;
        text-align: center;
        padding: 20px 22px;
        gap: 14px;
    }
    .cta-block-btn {
        width: 100%;
        justify-content: center;
    }

    .social-section { padding: 55px 20px; }
    .social-title { font-size: 1.4rem; }
    .social-desc { font-size: 0.85rem; }
    .social-links { flex-direction: column; }
    .social-btn { width: 100%; justify-content: center; }

    .logo-icon { width: 36px; height: 36px; }
    .logo-text h1 { font-size: 0.92rem; }
    .logo-text p { font-size: 0.65rem; }

    .greeting-block { padding: 24px 20px; }
    .greeting-block h2 { font-size: 1.25rem; }
    .greeting-block p { font-size: 0.85rem; }
    .greeting-actions { flex-direction: column; }
    .greeting-actions .btn { width: 100%; }

    .page-container {
        padding: 0 16px;
        margin: 24px auto;
    }
    .page-container .card {
        padding: 24px 22px;
    }
    .page-container .card .section-title {
        font-size: 1.25rem;
    }
    .page-container .card .section-desc {
        font-size: 0.9rem;
        line-height: 1.75;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 16px 80px;
        min-height: 420px;
    }
    .hero-title { font-size: 1.55rem; }
    .hero-badge { font-size: 0.65rem; padding: 6px 14px; }
    .hero-desc { font-size: 0.88rem; }

    .stat-item { padding: 18px 8px; }
    .stat-item .num { font-size: 1.25rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.25rem; }
    .footer-copy { font-size: 0.78rem; }

    .page-container { padding: 0 14px; }
    .page-container .card { padding: 20px 18px; }
    .page-container .card .section-title { font-size: 1.15rem; }
    .cta-block { padding: 18px; }
}



/* Perbaikan tulisan skor leaderboard khusus mobile */
@media screen and (max-width: 600px) {
    #leaderboard .artisan-podium-item .artisan-podium-score {
        font-size: 12px !important;
        line-height: 1.25 !important;
        padding: 5px 7px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-align: center;
    }

    #leaderboard .artisan-podium-item .artisan-podium-score small {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
}


@media screen and (max-width: 600px) {
    #leaderboard .artisan-podium {
        align-items: stretch !important;
    }

    #leaderboard .artisan-podium-item.podium-second,
    #leaderboard .artisan-podium-item.podium-third {
        height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
    }
}