*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* yuyur janggal */
:root {
    --cream: #F7F3ED;
    --warm: #EDE5D8;
    --ink: #1A1614;
    --ink-soft: #4A3F38;
    --ink-muted: #9A8E87;
    --accent: #D4622A;
    --accent-light: #F0C4A8;
    --accent-pale: #FBF0EA;
    --green: #3A6B4A;
    --green-pale: #EBF2ED;
    --blue: #2A4A7A;
    --blue-pale: #EAF0F8;
    --gold: #C4902A;
    --gold-pale: #FBF4E4;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(212,98,42,0.06) 0%, transparent 50%), 
    radial-gradient(circle at 80% 80%, rgba(58,107,74,0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 10%, rgba(196,144,42,0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px 80px ;
}

/* heder keder plenger */
header {
    text-align: center;
    margin-top: 40px;
    animation: fadeUp 0.6s ease both;
}

.site-label {
    font-size:11px ;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

h1 {
    font-family: 'playfair Display', serif;
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 14px;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.subtitle {
    font-size: 16px;
    color: var(--ink-muted);
    font-weight: 300;
    line-height: 1.6;
}

/* STREAK bar more like snack bar*/
.streak-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.streak-pill {
    background: var(--gold-pale);
    border: 1px solid rgba(196,144,42,0.25);
    border-radius: 16px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.streak-pill.accent {
    background: var(--accent-pale);
    border-color: rgba(212,98,42,0.25);
    color: var(--accent);
}

.streak-num {
    font-family: 'playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
}

/* filter tuh mulut ELHUW */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
    animation: fadeUp 0.6s 0.15s ease both;
}

.filter-btn {
    cursor: pointer;
    border: 1px solid rgba(26,22,20,0.15);
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-pill);
    padding: 7px 16px;
    font-size: 13px;
    font-family: 'DM sans', sans-serif;
    font-weight: 400;
    color: var(--ink-soft);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.filter-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
    font-weight: 500;
}

/* I SUMMONED CHALLENGE CARD */
.card-warp {
    animation: fadeUp 0.6s 0.2s ease both;
    margin-bottom: 20px;
}

.challenge-card {
    background: #fff;
    border: 1px solid rgba(26,22,20,0.1);
    border-radius: var(--radius);
    padding: 36px 36px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--card-accent, var(--accent));
    transition: background 0.4s ease;
}

.card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.diff-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.diff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(26,22,20,0.12);
}

.diff-dot.filled {
    background: var(--card-accent, var(--accent));
}

.challenge-text {
    font-family: 'playfir Display', serif;
    font-size: clamp(18px,3.5uw, 22px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 16px;
    flex: 1;
}

.challenge-why {
    font-size: 14px;
    color: var(--ink-muted);
    font-weight: 300;
    line-height: 1.6;
    border-top: 1px solid rgba(26,22,20,0.07);
    padding-top: 16px;
    font-style: italic;
}

.challenge-why span {
    font-style: normal;
    font-weight: 500;
    color: var(--ink-soft);
}

.card-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    pointer-events: none;
    animation: cardShine 0.5s ease forwards;
}
/* buttonsssssssssssssssssssssssssssssssssssssssssssssss */
.actions {
    display: grid;
    grid-template-columns: ifr auto;
    gap: 10px;
    animation: fadeUp 0.6s 0.25s ease both;
    margin-bottom: 32px;
}

.btn {
    cursor: pointer;
    font-family: 'DM sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 14px 24px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}


/* i did it */
.btn-primary {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    overflow: hidden;
    position: relative;
}

.teks-container {
    overflow: hidden;
    height: 20px;
}

.teks-wrapper {
    display: flex;
    flex-direction: column;
    height: 20px;
    line-height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .teks-wrapper {
    transform: translateY(-20px);
}

.btn-primary:active {
    transform: scale(0.98);
}
/* i did it */


.btn-secondary {
    background: transparent;
    color: var(--ink-soft);
    border-color: rgba(26,22,20,0.2);
}

.btn-secondary:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn-done {
    background: var(--green-pale);
    color: var(--green);
    border-color:rgba(58,107,74,0.25);
}

.btn-done:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-done.done-state {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* LLOOGG section */
.log-section {
    animation: fadeUp 0.6s 0.3s ease both ;
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.log-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.log-count {
    font-size: 13px;
    color: var(--ink-muted);
}

.log-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(26,22,20,0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease both;
    backdrop-filter: blur(4px);
}

.log-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-check svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.log-text {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
    flex: 1;
}

.log-empty {
    text-align: center;
    padding: 28px;
    color: var(--ink-muted);
    font-size: 14px;
    font-style: italic;
    background: rgba(255,255,255,0.4);
    border: 1px dashed rgba(26,22,20,0.15);
    border-radius: var(--radius-sm);
}

/* a toast of bread */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--cream);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* divider */
.divider {
    height: 1px;
    background: rgba(26,22,20,0.1);
    margin: 32px 0;
}
/* cat color */
.cat-friends    { background: var(--blue-pale);    color: var(--blue);   }
.cat-family     { background: var(--green-pale);   color: var(--green);  }
.cat-strangers  { background: var(--gold-pale);    color: var(--gold);   }
.cat-online     { background: #F0EBF8;           color: #5B3A9A;       }
.cat-environment{ background: var(--green-pale);   color: var(--green);  }
.cat-self       { background: var(--accent-pale);  color: var(--accent); }

/* FOOTer */
footer {
    text-align: center;
    margin-top: 60px;
    font-size: 13px;
    color: var(--ink-muted);
    font-style: italic;
    animation: fadeUp 0.6s 0.4s ease both;
}
/* A to the NI to the MA to the TIONS!!!! */
@keyframes fadeUp {
    from {opacity: 0; transform: translateY(16px);}
    to   {opacity: 1; transform: translateY(0);}
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes cardFlip {
  0%   { opacity: 1; transform: translateY(0); }
  40%  { opacity: 0; transform: translateY(10px); }
  60%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card-animate { 
    animation: cardFlip 0.35s ease; 
}

/* respponssinves */
@media (max-width: 500px) {
    .actions {
        grid-template-columns: 1fr 1fr;
    }
    .btn-primary {
        grid-column: 1/-1;
    }
    .challenge-card {
        padding: 24px 20px 20px;
    }
}
