/* Visit South Whidbey - Stylesheet */
/* Color Theme: Coastal Whidbey Island - Ocean blues, forest greens, sandy beiges */

:root {
    --ocean-blue: #2c5f7d;
    --deep-blue: #1a4a63;
    --light-blue: #4a8fb8;
    --forest-green: #3d6b4f;
    --sage-green: #6b8e7a;
    --sandy-beige: #d4c5a9;
    --warm-cream: #f5f1e8;
    --sunset-coral: #d4a574;
    --white: #ffffff;
    --text-dark: #2c3e2d;
    --text-light: #5a6b5c;
} 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
    max-width: min(200px, 100%);
    object-fit: contain;
    display: block;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Styles - Rebuilt from scratch */
.main-nav {
    display: flex;
    flex-shrink: 1;
    min-width: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-list li {
    margin: 0;
    position: relative;
}

.nav-list > li > a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
    white-space: nowrap;
}

.nav-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-link-with-dropdown {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.nav-link-with-dropdown:hover .dropdown-arrow {
    opacity: 1;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all 0.2s ease;
    font-weight: 400;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: var(--warm-cream);
    color: var(--ocean-blue);
    border-left-color: var(--ocean-blue);
    padding-left: 1.75rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-container p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .site-branding {
        gap: 0.75rem;
    }
    
    .site-logo {
        height: 40px;
        max-width: min(150px, 100%);
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-blue);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 100%;
    }
    
    .main-nav.active {
        max-height: 500px;
        overflow-y: auto;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 1rem 0;
        align-items: stretch;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list > li > a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list > li > a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-link-with-dropdown {
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 0.75rem 3rem;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
        padding-left: 3rem;
        border-left: none;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Responsive Design - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-list {
        gap: 0.75rem;
    }
    
    .nav-list > li > a {
        padding: 0.5rem 0.75rem;
    }
    
    .main-content {
        padding: 2rem 1.5rem;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: var(--ocean-blue);
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--sage-green);
    padding-bottom: 0.5rem;
}

.section h3 {
    color: var(--forest-green);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.5rem;
}


/* 404 Error Page Styles */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 600px;
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2rem;
    color: var(--forest-green);
    margin: 1rem 0;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 1.5rem 0;
}

.error-suggestion {
    color: var(--text-light);
    margin: 1rem 0 2rem 0;
}

.error-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.error-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-content {
        padding: 2rem 1.5rem;
    }
}

/* Category & Listing Pages */
.category-page {
    padding-bottom: 3rem;
}

.category-header {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.category-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.item-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.item-card.featured {
    border: 2px solid var(--sunset-coral);
    position: relative;
}

.item-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--sunset-coral);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: 8px;
}

.item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.item-content h2 a {
    color: var(--ocean-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-content h2 a:hover {
    color: var(--forest-green);
}

.item-summary {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more {
    display: inline-block;
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: transform 0.2s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

.no-items {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--white);
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: var(--ocean-blue);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--ocean-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(44, 95, 125, 0.3);
}

/* Article Page Styles */
.item-article-full {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.article-header {
    background: linear-gradient(to right, var(--ocean-blue), var(--deep-blue));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.article-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

.article-contact-info {
    background: var(--warm-cream);
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.contact-item strong {
    color: var(--forest-green);
}

.contact-item a {
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.article-body {
    padding: 3rem 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    color: var(--ocean-blue);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--sandy-beige);
    padding-bottom: 0.5rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .category-header {
        padding: 2rem 1rem;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .article-header {
        padding: 2rem 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-body {
        padding: 2rem 1.5rem;
    }
    
    .article-contact-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
