﻿/* style.css */

:root {
    --dusty-rose: #C496A1;
    --muted-sage: #919D85;
    --lavender-purple: #8E88A3;
    --vintage-cream: #EBE1C6;
    --antique-bronze: #81785A;
    --dusty-rose-rgb: 196, 150, 161;
    --muted-sage-rgb: 145, 157, 133;
    --lavender-purple-rgb: 142, 136, 163;
    --vintage-cream-rgb: 235, 225, 198;
    --antique-bronze-rgb: 129, 120, 90;
    --leaf: var(--muted-sage);
    --leaf-dark: var(--antique-bronze);
    --leaf-soft: rgba(var(--muted-sage-rgb), 0.18);
    --flower: rgba(var(--dusty-rose-rgb), 0.24);
    --sky: var(--lavender-purple);
    --blush: var(--dusty-rose);
    --ink: #393529;
    --cream: var(--vintage-cream);
    --paper: #f4ecd8;
    --line: rgba(var(--antique-bronze-rgb), 0.28);
    --line-strong: rgba(var(--antique-bronze-rgb), 0.52);
    --muted: rgba(57, 53, 41, 0.8);
    --accent-soft: rgba(var(--dusty-rose-rgb), 0.22);
    --accent-softer: rgba(var(--muted-sage-rgb), 0.11);
    --lavender-soft: rgba(var(--lavender-purple-rgb), 0.1);
    --cream-soft: rgba(var(--vintage-cream-rgb), 0.72);
    --shadow-soft: rgba(var(--antique-bronze-rgb), 0.13);
}

body {
    font-family: "Alice", Georgia, serif;
    background:
        linear-gradient(rgba(var(--antique-bronze-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--antique-bronze-rgb), 0.016) 1px, transparent 1px),
        radial-gradient(circle at 16% 0%, rgba(var(--dusty-rose-rgb), 0.17), transparent 30%),
        radial-gradient(circle at 84% 6%, rgba(var(--muted-sage-rgb), 0.14), transparent 32%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
    color: var(--ink);
    padding: 28px 24px 52px;
    margin: 0;
    opacity: 1;
    transition: opacity 0.1s ease;
}

body.is-language-switching {
    opacity: 0.88;
}

.journal-layout {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.timer-box {
    background:
        linear-gradient(180deg, rgba(var(--vintage-cream-rgb), 0.24), transparent 82%);
    padding: 0 0 18px;
    text-align: center;
    width: min(420px, 100%);
    margin-bottom: 26px;
    border-bottom: 3px double rgba(var(--dusty-rose-rgb), 0.62);
}

.card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.app-tagline {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(57, 53, 41, 0.82);
    text-align: left;
    line-height: 1.55;
    max-width: 18rem;
}

.supporting-line {
    margin: 0 0 16px;
    max-width: 31rem;
    color: rgba(57, 53, 41, 0.88);
    font-size: 0.97rem;
    line-height: 1.58;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: auto;
}

.lang-link {
    background: none;
    border: none;
    padding: 0 0 2px;
    margin: 0;
    border-radius: 0;
    color: rgba(57, 53, 41, 0.72);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
    transform: none !important;
    border-bottom: 1px solid transparent;
    min-width: 0;
}

.lang-link:hover {
    color: var(--leaf-dark);
    border-color: rgba(var(--dusty-rose-rgb), 0.56);
}

.lang-link.is-active {
    color: var(--leaf-dark);
    border-color: var(--dusty-rose);
}

.lang-divider {
    color: rgba(var(--antique-bronze-rgb), 0.32);
    font-size: 0.88rem;
    line-height: 1;
}

h1 {
    font-size: clamp(2.7rem, 5.8vw, 3.8rem);
    color: var(--antique-bronze);
    color: color-mix(in srgb, var(--antique-bronze) 72%, var(--ink));
    margin: 0 0 14px;
    letter-spacing: 0.015em;
    font-weight: 400;
    line-height: 1.08;
}

h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(2rem, 4.2vw, 2.65rem);
    font-weight: 400;
    line-height: 1.12;
    color: rgba(var(--antique-bronze-rgb), 0.94);
}

.garden-kicker {
    margin: 0 0 5px;
    color: rgba(57, 53, 41, 0.76);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.time-settings {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    color: rgba(57, 53, 41, 0.84);
}

#time-options {
    border: 1px solid var(--line);
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 6px 22px 6px 0;
    color: var(--ink);
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#time-options:hover {
    border-color: var(--leaf);
    color: var(--leaf-dark);
}

#time-options:focus-visible {
    outline: none;
    border-color: var(--leaf-dark);
    box-shadow: 0 3px 0 -2px rgba(var(--dusty-rose-rgb), 0.44);
}

#time-display {
    font-size: clamp(4.1rem, 8.4vw, 6rem);
    font-weight: 400;
    margin: 18px 0 15px;
    color: #2f2b21;
    letter-spacing: 0.08em;
    line-height: 1;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.controls-microcopy {
    margin: 10px auto 0;
    max-width: 28rem;
    color: rgba(57, 53, 41, 0.8);
    font-size: 0.91rem;
    line-height: 1.52;
}

.notification-status {
    margin: 6px auto 0;
    max-width: 28rem;
    min-height: 1.25em;
    color: rgba(57, 53, 41, 0.8);
    font-size: 0.9rem;
    line-height: 1.45;
}

.notification-status.is-positive {
    color: var(--leaf-dark);
    color: color-mix(in srgb, var(--dusty-rose) 46%, var(--ink));
}

.notification-status.is-calm {
    color: rgba(57, 53, 41, 0.76);
}

button {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 11px 0 9px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    background: transparent;
    font-family: inherit;
    min-width: 10rem;
}

button:hover {
    transform: none;
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

button:focus-visible,
.lang-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--dusty-rose-rgb), 0.22);
}

.btn-primary,
#close-popup {
    background-color: rgba(var(--vintage-cream-rgb), 0.18);
    color: var(--leaf-dark);
    border-color: rgba(var(--antique-bronze-rgb), 0.5);
}

.btn-primary:hover,
#close-popup:hover {
    background-color: var(--accent-soft);
    border-color: var(--dusty-rose);
    color: var(--leaf-dark);
}

#start-btn {
    background-color: rgba(var(--dusty-rose-rgb), 0.15);
    color: #3f392a;
    border-color: rgba(var(--dusty-rose-rgb), 0.92);
    box-shadow: inset 0 -2px 0 rgba(var(--dusty-rose-rgb), 0.3);
}

#start-btn:hover {
    background-color: rgba(var(--dusty-rose-rgb), 0.25);
    border-color: var(--dusty-rose);
    color: var(--ink);
    box-shadow: inset 0 -2px 0 rgba(var(--dusty-rose-rgb), 0.38);
}

.btn-secondary,
#pause-btn {
    background-color: transparent;
    color: rgba(57, 53, 41, 0.82);
    border-color: rgba(var(--muted-sage-rgb), 0.5);
}

.btn-secondary:hover,
#pause-btn:hover {
    background-color: var(--accent-softer);
    border-color: rgba(var(--muted-sage-rgb), 0.56);
    color: var(--leaf-dark);
}

.btn-disabled {
    background-color: transparent;
    cursor: not-allowed;
    color: rgba(63, 58, 46, 0.38);
    border-color: rgba(var(--antique-bronze-rgb), 0.16);
}

.garden-box {
    background: transparent;
    width: 100%;
    min-height: 300px;
    padding: 0;
    text-align: left;
}

.garden-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background-color: transparent;
    padding: 11px 0 13px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: rgba(57, 53, 41, 0.78);
    border-top: 1px solid rgba(var(--antique-bronze-rgb), 0.24);
    border-bottom: 3px double rgba(var(--antique-bronze-rgb), 0.38);
}

.garden-stats b {
    color: var(--leaf-dark);
    color: color-mix(in srgb, var(--muted-sage) 48%, var(--ink));
    font-size: 1.16rem;
    font-weight: 400;
}

.archive-intro {
    margin-bottom: 14px;
}

.archive-intro p {
    margin: 0;
    max-width: 44rem;
    color: rgba(57, 53, 41, 0.82);
    line-height: 1.72;
    font-size: 0.98rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.latest-discovery {
    background: transparent;
    padding: 0 0 15px;
    font-size: 0.95rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 3px double rgba(var(--antique-bronze-rgb), 0.36);
    min-height: 0;
}

.archive-card-topline,
.archive-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    color: rgba(57, 53, 41, 0.76);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--muted-sage-rgb), 0.42);
}

.archive-entry-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.archive-entry-mark {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(var(--muted-sage-rgb), 0.22) 48% 52%, transparent 52%),
        rgba(var(--muted-sage-rgb), 0.08);
    flex-shrink: 0;
    border-right: 1px solid var(--line);
    padding-right: 18px;
}

.archive-entry-names {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archive-entry-names b {
    font-size: 1.35rem;
    line-height: 1.34;
    font-weight: 400;
    color: var(--ink);
}

.archive-entry-names span {
    color: rgba(57, 53, 41, 0.78);
    font-size: 0.98rem;
    line-height: 1.6;
}

.archive-entry-note {
    margin: 0;
    color: rgba(57, 53, 41, 0.86);
    line-height: 1.9;
    font-size: 1rem;
}

.archive-entry-quote {
    margin: -2px 0 0;
    padding-left: 16px;
    border-left: 1px solid var(--line-strong);
    color: rgba(57, 53, 41, 0.76);
    line-height: 1.85;
    font-size: 0.98rem;
    font-style: italic;
}

#latest-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
}

.badge {
    display: inline-block;
    padding: 3px 0 2px;
    border-radius: 0;
    font-size: 0.76rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid currentColor;
}

.badge.common {
    background: transparent;
    color: rgba(57, 53, 41, 0.84);
    border-bottom-color: var(--muted-sage);
}

.badge.rare {
    background: transparent;
    color: rgba(57, 53, 41, 0.86);
    border-bottom-color: var(--dusty-rose);
}

.badge.epic {
    background: transparent;
    color: rgba(57, 53, 41, 0.82);
    border-bottom-color: var(--lavender-purple);
}

.badge.legendary {
    background: transparent;
    color: rgba(57, 53, 41, 0.86);
    border-bottom-color: var(--antique-bronze);
}

#garden-area {
    background: transparent;
    padding: 0;
    min-height: 220px;
}

.latest-discovery-art {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.species-visual-placeholder {
    display: inline-block;
    background: transparent;
}

.popup-reward-art {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.species-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.latest-discovery .species-emoji {
    font-size: 1.75rem;
}

.popup-reward-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    line-height: 1;
}

#empty-garden-msg {
    margin: 0;
    color: var(--muted);
    font-style: italic;
    line-height: 1.9;
    font-size: 1rem;
}

.archive-list-block {
    background: transparent;
    border-left: 1px solid rgba(var(--muted-sage-rgb), 0.4);
    padding-left: 20px;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
}

.archive-list-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    min-width: 0;
    padding: 14px 12px 16px;
    border-radius: 0;
    background: transparent;
    text-align: left;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid transparent;
    margin-left: -12px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.archive-list-item:hover {
    background-color: var(--accent-softer);
    border-left-color: var(--leaf);
}

.archive-list-item.is-active {
    background-color: rgba(var(--dusty-rose-rgb), 0.18);
    border-left-color: var(--dusty-rose);
}

.archive-list-item.is-active .archive-item-name {
    color: var(--ink);
}

.archive-list-item.is-active .archive-item-index,
.archive-list-item.is-active .archive-item-common {
    color: rgba(57, 53, 41, 0.82);
}

.archive-item-index {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(57, 53, 41, 0.68);
}

.archive-item-name {
    font-size: 1.08rem;
    line-height: 1.6;
    font-weight: 400;
    transition: color 0.18s ease;
}

.archive-list-item:hover .archive-item-name {
    color: var(--antique-bronze);
}

.archive-item-common {
    color: rgba(57, 53, 41, 0.76);
    font-size: 0.97rem;
    line-height: 1.6;
}

.archive-item-level {
    align-self: flex-start;
    margin-top: 4px;
}

.archive-list-empty {
    margin: 0;
    color: rgba(57, 53, 41, 0.78);
    line-height: 1.9;
    font-style: italic;
    font-size: 1rem;
}

.popup {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(57, 53, 41, 0.2);
    padding: 20px;
    z-index: 1000;
}

.popup-content {
    background:
        linear-gradient(rgba(var(--antique-bronze-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--antique-bronze-rgb), 0.016) 1px, transparent 1px),
        var(--cream);
    background-size: 24px 24px, 24px 24px, auto;
    padding: 26px 30px 22px;
    border-radius: 0;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-top: 0;
    border-bottom: 3px double var(--line-strong);
    max-width: 420px;
    width: min(100%, 420px);
    box-shadow: 0 18px 40px var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.popup-content > * {
    position: relative;
    z-index: 1;
}

.popup-content h2 {
    color: var(--antique-bronze);
    font-size: 2rem;
    margin: 0 0 6px;
    font-weight: 400;
    line-height: 1.15;
}

.popup-content p {
    margin: 0 0 14px;
    line-height: 1.72;
    font-size: 1rem;
}

.popup-reward-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 214px;
    margin: 4px 0 0;
}

.popup-rarity-chip {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 0 2px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid currentColor;
}

.popup-rarity-chip.common {
    background: transparent;
    color: rgba(57, 53, 41, 0.84);
    border-bottom-color: var(--muted-sage);
}

.popup-rarity-chip.rare {
    background: transparent;
    color: rgba(57, 53, 41, 0.86);
    border-bottom-color: var(--dusty-rose);
}

.popup-rarity-chip.epic {
    background: transparent;
    color: rgba(57, 53, 41, 0.82);
    border-bottom-color: var(--lavender-purple);
}

.popup-rarity-chip.legendary {
    background: transparent;
    color: rgba(57, 53, 41, 0.86);
    border-bottom-color: var(--antique-bronze);
}

.hidden {
    display: none !important;
}

@keyframes dropIn {
    0% {
        transform: translateY(-30px) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes speciesFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes archiveAura {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

@keyframes archiveShimmer {
    0%,
    100% {
        opacity: 0;
    }

    35%,
    65% {
        opacity: 0.32;
    }
}

.popup-content.effect-glow {
    box-shadow:
        0 0 0 1px rgba(var(--antique-bronze-rgb), 0.18),
        0 18px 45px rgba(var(--antique-bronze-rgb), 0.14);
}

.effect-float {
    animation: speciesFloat 5.5s ease-in-out infinite;
}

.popup-content.effect-aura::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 35%,
            rgba(var(--dusty-rose-rgb), 0.16),
            rgba(var(--antique-bronze-rgb), 0.08) 36%,
            transparent 68%);
    opacity: 0.7;
    animation: archiveAura 7s ease-in-out infinite;
}

.popup-content.effect-sparkle::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(var(--antique-bronze-rgb), 0.24) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(var(--dusty-rose-rgb), 0.18) 1px, transparent 1.5px);
    background-size: 72px 72px, 108px 108px;
    background-position: 18px 22px, 44px 58px;
    opacity: 0;
    animation: archiveShimmer 4.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .effect-float,
    .popup-content.effect-aura::before,
    .popup-content.effect-sparkle::after {
        animation: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 18px 16px 36px;
    }

    .timer-box,
    .garden-box {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .timer-box {
        padding-bottom: 14px;
        margin-bottom: 20px;
    }

    .card-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 8px;
    }

    .app-tagline {
        max-width: 100%;
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .supporting-line {
        margin-bottom: 12px;
        font-size: 0.92rem;
        line-height: 1.48;
    }

    h1 {
        margin-bottom: 9px;
    }

    .time-settings {
        gap: 3px;
        font-size: 0.95rem;
    }

    #time-options {
        padding-top: 4px;
        padding-bottom: 5px;
    }

    #time-display {
        font-size: 3rem;
        margin: 13px 0 11px;
    }

    button {
        min-width: 9.6rem;
        padding: 10px 0 9px;
    }

    .controls {
        gap: 10px;
    }

    .controls-microcopy {
        margin-top: 8px;
        font-size: 0.88rem;
        line-height: 1.42;
    }

    .notification-status {
        margin-top: 5px;
        min-height: 1.15em;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .garden-kicker {
        margin-bottom: 4px;
    }

    h3 {
        margin-bottom: 8px;
    }

    .garden-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 0 11px;
        margin-bottom: 14px;
    }

    .archive-intro {
        margin-bottom: 12px;
    }

    .archive-intro p {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .latest-discovery {
        min-height: auto;
    }

    .archive-list-block {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 14px;
    }

    .archive-card-topline,
    .archive-list-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .popup-content {
        padding: 28px 22px;
    
    }
}
    footer {
    display: flex; /* Gunakan flexbox untuk penengahan yang lebih kuat */
    flex-direction: column; /* Pastikan gambar di atas teks */
    align-items: center; /* Menengahkan semua konten secara horizontal */
    justify-content: center; /* Menengahkan semua konten secara vertikal jika ada tinggi lebih */
    text-align: center; /* Untuk memastikan teks di dalam paragraf berpusat */
    
    /* Gaya visual ala PaperMod (pertahankan) */
    border-top: 1px solid rgba(var(--antique-bronze-rgb), 0.28);
    margin-top: 4rem;
    padding-top: 2rem;
    color: rgba(57, 53, 41, 0.74);
    font-size: 0.7rem;
}

footer p {
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* Styling khusus untuk efek garis bawah pada link (pertahankan) */
footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--dusty-rose-rgb), 0.72);
    padding-bottom: 2px;
    transition: border-bottom-color 0.3s ease;
}

footer a:hover {
    border-bottom-color: var(--antique-bronze);
}

/* Update: Ukuran signature yang jauh lebih kecil */
.mus-signature {
    width: 25px; /* Ukuran diperkecil secara signifikan */
    height: auto; /* Mempertahankan rasio */
    max-width: 100%; /* Agar tidak meluap di container kecil */
    opacity: 0.8;
    margin-bottom: 0.5rem; /* Jarak antara gambar dan teks */
    transition: all 0.3s ease; 
}

/* Hover effect for signature (pertahankan) */
.mus-signature:hover {
    opacity: 1;
    transform: scale(1.05);
}
