/* ═══════════════════════════════════════════════
   Baumoria - Custom Styles
   Colors: Cyan (#00BCD4), Yellow (#FFD54F),
           Green (#4CAF50), Brown (#6B4226)
   ═══════════════════════════════════════════════ */

:root {
    --bm-cyan: #00BCD4;
    --bm-cyan-light: #4DD0E1;
    --bm-yellow: #FFD54F;
    --bm-green: #4CAF50;
    --bm-green-dark: #388E3C;
    --bm-brown: #6B4226;
    --bm-brown-light: #8B5E3C;
    --bm-beige: #FFF8E7;
    --bm-gray: #B0BEC5;
    --bm-gray-light: #CFD8DC;
}

/* ── Global ────────────────────────────────────── */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ────────────────────────────────────── */
.navbar-baumoria {
    background-color: transparent;
    padding: 1rem 2rem;
    min-height: 60px;
}

.navbar-baumoria.navbar-logged-in {
    background-color: var(--bm-cyan);
}

.navbar-icons {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.navbar-icon-link {
    color: #000;
    font-size: 1.6rem;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.navbar-icon-link:hover {
    color: #333;
    transform: scale(1.1);
}

.navbar-auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Login Button - Black pill */
.btn-login {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* Register Button - Outlined pill */
.btn-register {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-register:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Landing Page ──────────────────────────────── */
.landing-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    width: 100%;
}

.landing-tree-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.landing-tree-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

/* ── Search ────────────────────────────────────── */
.landing-search-section {
    width: 100%;
    max-width: 550px;
}

.search-container {
    position: relative;
}

.search-input {
    border: 2px solid #000 !important;
    border-radius: 50px !important;
    padding: 1rem 3.5rem 1rem 1.5rem !important;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    border-color: var(--bm-green) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15) !important;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #000;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--bm-green);
}

/* ── Detail Pages (cyan cards) ─────────────────── */
.detail-card {
    background-color: var(--bm-cyan);
    border-radius: 20px;
    padding: 2rem;
    color: #000;
    position: relative;
    max-width: 700px;
    margin: 2rem auto;
}

.detail-card h2 {
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.detail-card .field-group {
    margin-bottom: 1.5rem;
}

.detail-card .field-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.4rem;
}

.detail-card .form-control {
    border: 2px solid #000;
    border-radius: 4px;
    background: #fff;
}

/* Confirm button (blue checkmark) */
.btn-confirm-entry {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bm-cyan-light);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    float: right;
}

.btn-confirm-entry:hover {
    background-color: var(--bm-cyan);
    transform: scale(1.1);
}

.btn-confirm-entry.confirmed {
    background-color: var(--bm-cyan);
}

/* ── Info Bubbles ──────────────────────────────── */
.info-trigger {
    display: inline-block;
    font-style: italic;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: help;
    color: #000;
    margin-left: 0.3rem;
}

/* ── Yellow hint boxes ─────────────────────────── */
.hint-box {
    background-color: var(--bm-yellow);
    border-radius: 8px;
    padding: 1.5rem;
    color: #000;
    font-size: 0.95rem;
}

/* ── Progress states ───────────────────────────── */
.entry-item {
    transition: opacity 0.3s, filter 0.3s;
}

.entry-item.incomplete {
    filter: grayscale(100%);
    opacity: 0.5;
}

.entry-item.complete {
    filter: none;
    opacity: 1;
}

/* ── Dashboard ─────────────────────────────────── */
.dashboard-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dashboard-content {
    width: 100%;
    max-width: 650px;
}

.tree-circle-container {
    display: flex;
    justify-content: center;
}

.tree-circle {
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background-color: var(--bm-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Interactive Tree SVG ──────────────────────── */
.tree-interactive-svg {
    width: 100%;
    height: auto;
    max-height: 480px;
}

/* Zone interaction */
.tree-zone {
    cursor: pointer;
    transition: filter 0.25s, opacity 0.25s;
}

.tree-zone:hover,
.tree-zone.zone-hover {
    filter: url(#glow) brightness(1.15);
}

.tree-zone .zone-hitbox {
    cursor: pointer;
}

/* Labels hidden by default, visible on hover */
.tree-label {
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.tree-label.label-visible {
    opacity: 1;
}

/* Hint text under tree */
.tree-hint {
    margin-top: 0.5rem;
}

/* ── Auth Modals tweaks ────────────────────────── */
.modal-content {
    border-radius: 15px;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .navbar-baumoria {
        padding: 0.8rem 1rem;
    }

    .navbar-auth-buttons {
        gap: 0.5rem;
    }

    .btn-login, .btn-register {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .landing-tree-container {
        max-width: 280px;
    }

    .tree-circle {
        width: 380px;
        height: 380px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .landing-tree-container {
        max-width: 220px;
    }

    .search-input {
        padding: 0.8rem 3rem 0.8rem 1rem !important;
        font-size: 0.9rem;
    }

    .tree-circle {
        width: 300px;
        height: 300px;
        padding: 0.5rem;
    }

    .tree-hint {
        display: none;
    }
}
