/* Color Palette - Camping meets Cyberpunk */
:root {
    --primary-dark: #0f0f0f;
    --secondary-dark: #1a1a1a;
    --accent-cyber: #ff4500;
    --accent-fire: #ff5722;
    --accent-warm: #ff6b35;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --forest-green: #2a2a2a;
}

/* Hacker Mode Palette - Matrix/Terminal Style */
body.hacker-mode {
    --primary-dark: #000000;
    --secondary-dark: #0a0a0a;
    --accent-cyber: #00ff41;
    --accent-fire: #39ff14;
    --accent-warm: #00ff00;
    --text-light: #00ff41;
    --text-muted: #008f11;
    --forest-green: #001a00;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

body.bg-loaded::before {
    background-image: url('campscene.jpg');
    opacity: 0.1;
}

body.hacker-mode.bg-loaded::before {
    opacity: 0.03;
    filter: hue-rotate(100deg) brightness(0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--accent-cyber);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.hacker-mode .navbar {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: var(--accent-cyber);
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 40px;
    width: 40px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo-cyber {
    color: var(--accent-cyber);
}

.logo-camp {
    color: var(--accent-fire);
}

.logo-dev {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyber);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyber);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--accent-cyber);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--accent-cyber);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 0 30px rgba(255, 87, 34, 0.4));
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
}

.glitch {
    position: relative;
    font-weight: 700;
    letter-spacing: 0px;
}

.title-cyber {
    color: var(--accent-cyber);
}

.title-camp {
    color: var(--accent-fire);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: transparent;
    color: var(--accent-cyber);
    border-color: var(--accent-cyber);
}

.btn-primary:hover {
    background: var(--accent-cyber);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-fire);
    border-color: var(--accent-fire);
}

.btn-secondary:hover {
    background: var(--accent-fire);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-cyber), var(--accent-fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Section Controls */
.section-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    background: var(--secondary-dark);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--accent-cyber);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-cyber);
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
}

/* Projects Section */
.projects {
    background: var(--secondary-dark);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--primary-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyber);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--accent-cyber);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-tag {
    display: inline-block;
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent-cyber);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* Adventures Section */
.adventure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.adventure-card {
    background: var(--secondary-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.adventure-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-fire);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.adventure-image {
    height: 200px;
    background: linear-gradient(135deg, var(--forest-green), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    font-size: 4rem;
}

.adventure-content {
    padding: 1.5rem;
}

.adventure-content h3 {
    color: var(--accent-fire);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.adventure-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.adventure-location {
    color: var(--accent-warm);
    font-size: 0.9rem;
}

/* Recipes Section */
.recipes {
    background: var(--primary-dark);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--secondary-dark);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.recipe-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-warm);
    box-shadow: 0 10px 30px rgba(247, 147, 30, 0.2);
}

.recipe-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.recipe-card h3 {
    color: var(--accent-warm);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.recipe-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recipe-tag {
    display: inline-block;
    background: rgba(247, 147, 30, 0.1);
    color: var(--accent-warm);
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.25rem;
    border: 1px solid rgba(247, 147, 30, 0.3);
}

/* View All Button */
.view-all-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--accent-cyber);
    border: 2px solid var(--accent-cyber);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--accent-cyber);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
    transform: translateY(-2px);
}

.adventures .view-all-btn {
    color: var(--accent-fire);
    border-color: var(--accent-fire);
}

.adventures .view-all-btn:hover {
    background: var(--accent-fire);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
}

.recipes .view-all-btn {
    color: var(--accent-warm);
    border-color: var(--accent-warm);
}

.recipes .view-all-btn:hover {
    background: var(--accent-warm);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(247, 147, 30, 0.4);
}

/* About Section */
.about {
    background: var(--secondary-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 87, 34, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: var(--text-light);
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: var(--accent-cyber);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: var(--accent-cyber);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link span {
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

body.hacker-mode .footer {
    border-top-color: var(--accent-cyber);
    box-shadow: 0 -2px 20px rgba(0, 255, 65, 0.2);
}

body.hacker-mode .footer p {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Hacker Mode Text Effects */
body.hacker-mode .section-title {
    background: linear-gradient(135deg, #00ff41, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

body.hacker-mode .project-card,
body.hacker-mode .adventure-card,
body.hacker-mode .recipe-card {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

body.hacker-mode .project-card:hover,
body.hacker-mode .adventure-card:hover,
body.hacker-mode .recipe-card:hover {
    border-color: var(--accent-cyber);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}

body.hacker-mode .btn-primary,
body.hacker-mode .btn-secondary {
    border-color: var(--accent-cyber);
    color: var(--accent-cyber);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

body.hacker-mode .btn-primary:hover,
body.hacker-mode .btn-secondary:hover {
    background: var(--accent-cyber);
    color: #000000;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}

body.hacker-mode .logo-cyber,
body.hacker-mode .logo-camp {
    color: var(--accent-cyber);
}

body.hacker-mode .title-cyber,
body.hacker-mode .title-camp {
    color: var(--accent-cyber);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

/* Theme Toggle */
.theme-toggle-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
    cursor: pointer;
}

.theme-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-dark);
    border: 2px solid var(--accent-cyber);
    border-radius: 40px;
    transition: all 0.3s ease;
    z-index: 1;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 30px;
    width: 30px;
    left: 3px;
    bottom: 3px;
    background: var(--accent-cyber);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle input:checked + .toggle-slider {
    background: #000000;
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.theme-toggle input:checked + .toggle-slider::before {
    transform: translateX(40px);
    background: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    z-index: 2;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.campfire-icon {
    opacity: 1;
}

.hacker-icon {
    opacity: 0.3;
}

.theme-toggle input:checked ~ .toggle-label .campfire-icon {
    opacity: 0.3;
}

.theme-toggle input:checked ~ .toggle-label .hacker-icon {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.8));
}

/* Weather Widget */
.weather-widget {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.weather-widget:hover {
    border-color: var(--accent-warm);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.weather-icon {
    font-size: 1.2rem;
}

.weather-temp {
    font-weight: 600;
}

/* Weather Panel */
.weather-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: var(--secondary-dark);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.weather-panel.active {
    right: 0;
}

.weather-panel-content {
    padding: 2rem;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.weather-location {
    color: var(--accent-warm);
    font-size: 1.5rem;
    margin: 0;
}

.weather-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.weather-close:hover {
    color: var(--accent-fire);
}

/* Location Search */
.location-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.location-input {
    flex: 1;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-light);
    font-size: 1rem;
}

.location-input:focus {
    outline: none;
    border-color: var(--accent-warm);
}

.location-search-btn {
    background: var(--accent-warm);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-search-btn:hover {
    background: var(--accent-fire);
    transform: translateY(-2px);
}

/* Current Weather */
.weather-current {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 87, 34, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.current-temp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.temp-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
}

.temp-icon {
    font-size: 3rem;
}

.weather-description {
    font-size: 1.2rem;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

.current-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Weather Alerts */
.weather-alerts {
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid var(--accent-fire);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.weather-alerts:empty {
    display: none;
}

.no-alerts {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Forecast */
.weather-forecast {
    margin-bottom: 2rem;
}

.weather-forecast h4 {
    color: var(--accent-warm);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.forecast-day {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.forecast-date {
    font-weight: 600;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.forecast-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.forecast-temps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.temp-high {
    color: var(--text-light);
    font-weight: 600;
}

.temp-low {
    color: var(--text-muted);
}

.forecast-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Weather Details */
.weather-details {
    margin-bottom: 2rem;
}

.weather-details h4 {
    color: var(--accent-warm);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.detail-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    display: block;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Weather Footer */
.weather-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-attribution {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.weather-attribution a {
    color: var(--accent-warm);
    text-decoration: none;
}

.weather-attribution a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .weather-widget {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .weather-panel {
        max-width: 100%;
    }

    .weather-panel-content {
        padding: 1rem;
    }

    .details-grid,
    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .project-grid,
    .adventure-grid {
        grid-template-columns: 1fr;
    }
}

/* Fireflies */
.fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 200, 100, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 200, 100, 0.6);
    animation: fireflyFloat infinite ease-in-out;
    opacity: 0;
}

@keyframes fireflyFloat {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
    }
    50% {
        opacity: 0.8;
        transform: translate(-15px, -60px) scale(0.8);
    }
    75% {
        transform: translate(30px, -90px) scale(1.1);
    }
    90% {
        opacity: 0.3;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-cyber);
    color: var(--primary-dark);
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.article-modal-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 2001;
}

.article-download {
    background: var(--secondary-dark);
    border: 2px solid var(--accent-fire);
    color: var(--accent-fire);
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.article-download:hover {
    background: var(--accent-fire);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.article-close {
    background: var(--secondary-dark);
    border: 2px solid var(--accent-cyber);
    color: var(--accent-cyber);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-close:hover {
    background: var(--accent-cyber);
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.article-content {
    background: var(--secondary-dark);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.article-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.article-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-cyber);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-date,
.article-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-body {
    color: var(--text-light);
    line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: var(--accent-cyber);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-fire);
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 1.5rem;
    color: var(--accent-fire);
}

.article-body h3 {
    font-size: 1.2rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    color: var(--text-light);
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body code {
    background: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-cyber);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--primary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-cyber);
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text-light);
}

.article-body blockquote {
    border-left: 4px solid var(--accent-fire);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body a {
    color: var(--accent-cyber);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-cyber);
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: var(--accent-fire);
    border-bottom-color: var(--accent-fire);
}

/* Related Content */
.related-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.related-content h3 {
    color: var(--accent-fire);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-items {
    display: grid;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--accent-cyber);
    transform: translateX(5px);
    background: rgba(255, 69, 0, 0.05);
}

.related-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.related-info h4 {
    color: var(--accent-cyber);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Print Styles */
@media print {
    /* Hide UI elements */
    nav,
    .navbar,
    .article-controls,
    .article-close,
    .article-download,
    .related-content,
    .search-modal,
    .weather-panel,
    .hero,
    footer,
    .fireflies,
    .skip-to-content {
        display: none !important;
    }

    /* Reset colors for printing */
    body {
        background: white;
        color: black;
    }

    body::before {
        display: none;
    }

    .article-modal {
        position: static;
        background: white;
        overflow: visible;
    }

    .article-modal-content {
        max-width: 100%;
        margin: 0;
        padding: 0;
        max-height: none;
        overflow: visible;
    }

    .article-content {
        background: white;
        color: black;
        border: none;
        padding: 1rem;
    }

    .article-header {
        border-bottom-color: #333;
    }

    .article-content h1,
    .article-body h1,
    .article-body h2,
    .article-body h3 {
        color: black;
        page-break-after: avoid;
    }

    .article-body p,
    .article-body ul,
    .article-body ol {
        color: black;
    }

    .article-body a {
        color: black;
        text-decoration: underline;
    }

    .article-body a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .article-body code {
        background: #f5f5f5;
        color: black;
        border: 1px solid #ddd;
    }

    .article-body pre {
        background: #f5f5f5;
        color: black;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .article-emoji {
        filter: grayscale(100%);
    }

    .article-meta {
        color: #666;
    }

    /* Ensure readable font sizes */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 18pt;
    }

    h3 {
        font-size: 14pt;
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    ul, ol, pre {
        page-break-inside: avoid;
    }
}

.article-body strong {
    color: var(--accent-fire);
    font-weight: 700;
}

.article-body hr {
    border: none;
    border-top: 2px solid var(--accent-cyber);
    margin: 2rem 0;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Tags in articles */
.tags-container {
    margin-top: 1rem;
}

.adventure-tag {
    display: inline-block;
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-fire);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* Responsive Article Modal */
@media (max-width: 768px) {
    .article-modal {
        padding: 1rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-controls {
        top: 1rem;
        right: 1rem;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .article-download {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .article-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .article-body pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Search Functionality */
.search-toggle {
    /* Uses existing nav-link styles */
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    padding: 2rem;
    overflow-y: auto;
}

.search-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-modal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.search-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-input {
    flex: 1;
    background: var(--secondary-dark);
    border: 2px solid var(--accent-cyber);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-fire);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: var(--secondary-dark);
    border: 2px solid var(--accent-cyber);
    color: var(--accent-cyber);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: var(--accent-cyber);
    color: var(--primary-dark);
    transform: rotate(90deg);
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.search-hint {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 3rem 1rem;
}

.search-count {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.search-count strong {
    color: var(--accent-cyber);
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.search-no-results p:first-child {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.search-result {
    background: var(--secondary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result:hover {
    border-color: var(--accent-cyber);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.result-type {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.result-type:contains("Project") {
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent-cyber);
}

.result-type {
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-fire);
}

.result-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-title {
    color: var(--accent-cyber);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-description {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.result-location {
    color: var(--accent-warm);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.result-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.result-tag {
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent-cyber);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Highlight matched text */
mark {
    background: var(--accent-fire);
    color: var(--primary-dark);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Keyboard shortcut hint */
.search-input::after {
    content: "⌘K";
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-modal {
        padding: 1rem;
    }

    .search-modal-content {
        padding-top: 1rem;
    }

    .search-header {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .search-close {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        align-self: flex-end;
    }

    .search-result {
        padding: 1rem;
    }

    .result-title {
        font-size: 1.1rem;
    }
}
