/* saram.quest - Minimal Goblincore Naturalist Collection */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Caveat (handwritten display), Inter (body sans) */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Retro field-guide pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20px 20px, rgba(74, 144, 217, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 60px 60px, rgba(74, 144, 217, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px;
    pointer-events: none;
    z-index: 0;
}

/* Lens Flare Effects */
.lens-flare {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.lens-flare-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.12) 0%, rgba(74, 144, 217, 0.06) 40%, transparent 70%);
    animation: lensFlare1 12s ease-in-out infinite;
}

.lens-flare-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 30%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, rgba(232, 184, 75, 0.03) 50%, transparent 70%);
    animation: lensFlare2 18s ease-in-out infinite;
}

@keyframes lensFlare1 {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes lensFlare2 {
    0%, 100% { opacity: 0.4; transform: translate(0, 0) scale(1); }
    33% { opacity: 0.7; transform: translate(20px, -10px) scale(1.1); }
    66% { opacity: 0.5; transform: translate(-15px, 15px) scale(0.95); }
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(26, 26, 46, 0.95);
    border-right: 1px solid rgba(74, 144, 217, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 48px 32px 32px;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.site-title {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: #e8b84b;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.site-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #6c757d;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #4a90d9;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(74, 144, 217, 0.06);
}

.nav-item:hover .nav-label {
    color: #f5f0e8;
}

.nav-item.active {
    background-color: rgba(74, 144, 217, 0.08);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item.active .nav-label {
    color: #e8b84b;
}

.nav-label {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: #6c757d;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

.sidebar-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.footer-text {
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: rgba(108, 117, 125, 0.6);
    letter-spacing: 0.05em;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 60px 80px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeInSection 0.5s ease;
}

.content-section.active {
    display: block;
}

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

/* Section Headers */
.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: 0.02em;
}

.section-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #e8b84b, rgba(74, 144, 217, 0.3));
    margin-top: 12px;
    border-radius: 1px;
}

/* Ripple Effect */
.ripple-target {
    position: relative;
    overflow: hidden;
}

.ripple-target .ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.3) 0%, transparent 70%);
    transform: scale(0);
    animation: rippleEffect 0.7s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Collection Grid (Findings) */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.collection-item {
    background: rgba(74, 144, 217, 0.04);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 8px;
    padding: 32px 28px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.collection-item:hover {
    background: rgba(74, 144, 217, 0.08);
    border-color: rgba(74, 144, 217, 0.2);
    transform: translateY(-2px);
}

.item-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.item-svg {
    width: 100%;
    height: 100%;
}

.item-label {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 10px;
}

.item-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 16px;
}

.item-date {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: rgba(232, 184, 75, 0.6);
    letter-spacing: 0.05em;
}

/* Curiosities */
.curiosities-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.curiosity-entry {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 28px 32px;
    background: rgba(74, 144, 217, 0.03);
    border-left: 2px solid rgba(74, 144, 217, 0.15);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.curiosity-entry:hover {
    background: rgba(74, 144, 217, 0.07);
    border-left-color: #e8b84b;
}

.curiosity-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(74, 144, 217, 0.5);
    letter-spacing: 0.1em;
    min-width: 28px;
    padding-top: 4px;
}

.curiosity-label {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 8px;
}

.curiosity-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
}

/* Specimens */
.specimens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.specimen-card {
    display: flex;
    gap: 32px;
    padding: 36px;
    background: rgba(74, 144, 217, 0.04);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 8px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.specimen-card:hover {
    background: rgba(74, 144, 217, 0.08);
    border-color: rgba(232, 184, 75, 0.2);
}

.specimen-illustration {
    width: 120px;
    min-width: 120px;
    height: 120px;
}

.specimen-svg {
    width: 100%;
    height: 100%;
}

.specimen-name {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f0e8;
    font-style: italic;
    margin-bottom: 6px;
}

.specimen-class {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a90d9;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.specimen-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
}

/* Field Notes */
.field-notes-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.note-entry {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 32px;
    background: rgba(74, 144, 217, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 217, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.note-entry:hover {
    background: rgba(74, 144, 217, 0.06);
    border-color: rgba(74, 144, 217, 0.12);
}

.note-date-badge {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8b84b;
    min-width: 64px;
    padding: 6px 12px;
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

.note-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.8;
}

/* Archive */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.archive-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: rgba(74, 144, 217, 0.03);
    border: 1px solid rgba(74, 144, 217, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.archive-entry:hover {
    background: rgba(74, 144, 217, 0.07);
    border-color: rgba(74, 144, 217, 0.18);
    transform: translateY(-2px);
}

.archive-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
}

.archive-icon svg {
    width: 100%;
    height: 100%;
}

.archive-label {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5f0e8;
    display: block;
    margin-bottom: 6px;
}

.archive-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(108, 117, 125, 0.7);
    letter-spacing: 0.04em;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .sidebar {
        width: 220px;
        min-width: 220px;
    }
    .main-content {
        margin-left: 220px;
        padding: 40px 40px;
    }
    .specimens-grid {
        grid-template-columns: 1fr;
    }
    .specimen-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 680px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(74, 144, 217, 0.15);
    }
    .sidebar-header {
        padding: 24px 24px 16px;
    }
    .sidebar-nav {
        padding: 8px 0;
    }
    .nav-list {
        display: flex;
        overflow-x: auto;
        padding: 0 16px;
        gap: 4px;
    }
    .nav-item {
        padding: 10px 16px;
        white-space: nowrap;
    }
    .nav-item::before {
        width: 100%;
        height: 2px;
        top: auto;
        bottom: 0;
        left: 0;
        transform: scaleX(0);
    }
    .nav-item.active::before {
        transform: scaleX(1);
    }
    .sidebar-footer {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 32px 24px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .collection-grid {
        grid-template-columns: 1fr;
    }
    .specimens-grid {
        grid-template-columns: 1fr;
    }
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .curiosity-entry {
        flex-direction: column;
        gap: 12px;
    }
    .note-entry {
        flex-direction: column;
        gap: 12px;
    }
}