/* Custom Styles & Editorial Enhancements */
:root {
    --rustic-bg: #F7F5F0;
    --forest: #2C4A3B;
    --forest-light: #3c6350;
    --terracotta: #A65D37;
    --terracotta-hover: #8e4f2f;
    --dark-gray: #2d3748;
}

body {
    background-color: var(--rustic-bg);
    color: var(--dark-gray);
}

/* Subtle engineering/data grid background */
.tech-grid {
    background-image:
        linear-gradient(to right, rgba(44, 74, 59, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(44, 74, 59, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Topographic-like subtle dot pattern for dark sections */
.forest-dots {
    background-image: radial-gradient(rgba(247, 245, 240, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Smooth image hover zoom */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Active navigation link indicator */
.nav-link.active {
    color: var(--terracotta);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: var(--terracotta);
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal animation */
.modal-backdrop {
    transition: opacity 0.25s ease;
}

.modal-panel {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #EFECE4;
}

::-webkit-scrollbar-thumb {
    background: rgba(44, 74, 59, 0.35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 74, 59, 0.6);
}

/* Checklist custom styling */
.checklist-item input:checked + span {
    text-decoration: line-through;
    color: #9ca3af;
}

/* Filter & tab active states */
.filter-btn.active {
    background-color: var(--terracotta);
    color: #ffffff;
    border-color: var(--terracotta);
}

.peak-btn.active {
    background-color: var(--forest);
    color: #F7F5F0;
    border-color: var(--forest);
}

.peak-btn.active .peak-meta {
    color: #d1d5db;
}
