/* ==========================================================================
   SIMDATADIK - Landing Page Styles
   File: assets/css/landing.css
   Fokus: tampilan beranda (home) yang menarik dan informatif
   ========================================================================== */

/* ------------------------------
   1. Hero Section
   ------------------------------ */

.landing-hero {
    position: relative;
    padding: 2.2rem 0 1.8rem;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 1.8rem;
}

.landing-hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    z-index: 1;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.76rem;
}

.landing-kicker span.tag {
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #e5edff;
    font-weight: 500;
}

.landing-title {
    font-size: 1.65rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.landing-title span.highlight {
    background: linear-gradient(90deg, #2563eb, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 32rem;
}

.landing-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.landing-hero-cta-row .btn {
    font-size: 0.82rem;
}

.landing-hero-note {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

/* Hero bottom mini stats */
.landing-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.landing-hero-stat-item {
    display: inline-flex;
    flex-direction: column;
    gap: 0.05rem;
}

.landing-hero-stat-label {
    font-size: 0.76rem;
    color: #9ca3af;
}

.landing-hero-stat-value {
    font-weight: 600;
    color: #111827;
}

/* Hero illustration / cards-side */
.landing-hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle at 10% 0, rgba(59, 130, 246, 0.18), transparent 60%),
                radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.16), transparent 60%);
    filter: blur(8px);
    opacity: 0.9;
    pointer-events: none;
}

.landing-hero-panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 1.2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 0.9rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1;
}

.landing-hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.landing-hero-panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.landing-hero-panel-tag {
    font-size: 0.75rem;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}

/* mini cards for roles */
.landing-hero-roles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.3rem;
}

.landing-role-card {
    background: #f9fafb;
    border-radius: 0.7rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.76rem;
}

.landing-role-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.1rem;
}

.landing-role-desc {
    font-size: 0.72rem;
    color: #6b7280;
}

.landing-role-chip-row {
    margin-top: 0.08rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem;
}

.landing-role-chip {
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 0.68rem;
    color: #4b5563;
}

/* mini stat list in panel */
.landing-hero-panel-stats {
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #e5e7eb;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.landing-hero-panel-stat {
    font-size: 0.72rem;
    color: #6b7280;
}

.landing-hero-panel-stat strong {
    display: block;
    font-size: 0.8rem;
    color: #111827;
}

/* ------------------------------
   2. Landing Stats (angka global)
   ------------------------------ */

.landing-stats {
    margin-top: 0.4rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    font-size: 0.8rem;
}

.landing-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.landing-stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.landing-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.landing-stat-caption {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 1.6rem;
    }

    .landing-hero-right {
        order: -1;
    }

    .landing-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-hero-panel {
        max-width: 100%;
    }
}

/* ------------------------------
   3. Section: Konten Berbagi (Artikel, Materi, Soal, Event)
   ------------------------------ */

.landing-section {
    margin-top: 1.4rem;
}

.landing-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.landing-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.landing-section-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.landing-section-right-link {
    font-size: 0.78rem;
}

.landing-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.landing-card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
}

.landing-card {
    background: #ffffff;
    border-radius: 0.85rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.landing-card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #eff6ff;
    color: #1d4ed8;
}

.landing-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.landing-card-meta {
    font-size: 0.74rem;
    color: #9ca3af;
}

.landing-card-author {
    font-size: 0.76rem;
    color: #6b7280;
}

.landing-card-tags {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.landing-card-tag {
    font-size: 0.7rem;
    padding: 0.05rem 0.42rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}

/* Side card konten */
.landing-side-card {
    background: #f9fafb;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    padding: 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.landing-side-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.landing-side-card-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

.landing-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
    color: #4b5563;
}

.landing-side-list li {
    padding: 0.22rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.landing-side-list li:last-child {
    border-bottom: none;
}

/* ------------------------------
   4. Section: CTA Bawah (Footer strip)
   ------------------------------ */

.landing-cta-strip {
    margin-top: 1.6rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    background: linear-gradient(90deg, #1d4ed8, #22c55e);
    color: #e5edff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    justify-content: space-between;
}

.landing-cta-strip-left {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.landing-cta-strip-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.landing-cta-strip-subtitle {
    font-size: 0.78rem;
    color: #e0f2fe;
}

.landing-cta-strip .btn {
    background: #ffffff;
    border-color: transparent;
    color: #1d4ed8;
    font-size: 0.8rem;
}

.landing-cta-strip .btn:hover {
    background: #eff6ff;
}

/* ------------------------------
   5. Landing-specific chips / badges
   ------------------------------ */

.landing-chip-row {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.76rem;
}

.landing-chip {
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}

/* ------------------------------
   6. Responsive tweaks global landing
   ------------------------------ */

@media (max-width: 960px) {
    .landing-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .landing-hero {
        padding-top: 1.4rem;
        padding-bottom: 1.4rem;
    }

    .landing-cta-strip {
        align-items: flex-start;
    }
}
