/*
Theme Name: Beach Music Festival
Description: Vintage beach festival theme with classic car show styling
Version: 1.0
Author: Custom Theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-image: url('images/beach-carnival-bg.jpg');
    background-size: cover;
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Minimal overlay for scroll performance only - transparent */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #fff;
}

.main-navigation {
    background: linear-gradient(135deg, #16a085, #9BC95C);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    width: 100%;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    position: relative;
    overflow-x: auto;
}

.nav-menu li {
    margin: 0;
    position: relative;
    flex-shrink: 0;
}

.nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 0.9em;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #f39c12;
    transform: translateY(-2px);
}

/* DROPDOWN MENU STYLES - WHITE BACKGROUND */
/* Hide all submenus by default */
ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #fff !important;
    min-width: 250px !important;
    z-index: 999999 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 0 0 8px 8px !important;
}

/* Ensure parent menu item is positioned */
li.menu-item-has-children {
    position: relative !important;
}

/* Show submenu when parent is hovered */
li.menu-item-has-children:hover ul.sub-menu {
    display: block !important;
}

/* Style submenu items */
ul.sub-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee !important;
    display: block !important;
    position: relative !important;
    z-index: 999999 !important;
}

ul.sub-menu li:last-child {
    border-bottom: none !important;
}

ul.sub-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.85em !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
    z-index: 999999 !important;
    transition: all 0.3s ease !important;
}

ul.sub-menu li a:hover {
    background: #f5f5f5 !important;
    padding-left: 25px !important;
    color: #16a085 !important;
}

/* Add dropdown indicator */
li.menu-item-has-children > a:after {
    content: ' ▼' !important;
    font-size: 0.7em !important;
    margin-left: 5px !important;
}

/* Force navigation container to not clip overflow */
.main-navigation {
    overflow: visible !important;
    position: relative !important;
    z-index: 999998 !important;
}

.nav-menu {
    overflow: visible !important;
    position: relative !important;
    z-index: 999998 !important;
}

/* Main Content Area - OVERLAY REMOVED */
.site-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: transparent;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.content-area {
    padding: 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    color: #16a085;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    border-bottom: 3px solid #f39c12;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2 {
    font-size: 2em;
    color: #9BC95C;
    border-left: 5px solid #f39c12;
    padding-left: 20px;
}

h3 {
    font-size: 1.5em;
    color: #16a085;
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

/* Post Styles - GREEN BORDER REMOVED */
.post {
    background: #fff;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #16a085;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 5px;
}

.post-meta a {
    color: #16a085;
    text-decoration: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Sidebar - OVERLAY REMOVED */
.widget-area {
    background: transparent;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    color: #16a085;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 1em;
}

.footer-content a {
    color: #16a085;
    text-decoration: none;
}

.footer-content a:hover {
    color: #f39c12;
}

/* Buttons */
.btn, .button, input[type="submit"] {
    background: linear-gradient(135deg, #16a085, #9BC95C);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn:hover, .button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #9BC95C, #16a085);
}

/* Forms */
input[type="text"], 
input[type="email"], 
input[type="url"], 
input[type="password"], 
input[type="search"], 
textarea, 
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #16a085;
    box-shadow: 0 0 10px rgba(22, 160, 133, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        padding: 10px 12px;
        text-align: center;
        width: 100%;
    }
    
    /* Mobile dropdown styles */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        border-radius: 0;
        display: none;
    }
    
    .nav-menu li.menu-item-has-children.mobile-open .sub-menu {
        display: block;
    }
    
    .nav-menu .sub-menu a {
        padding: 8px 20px;
        font-size: 0.8em;
        background: rgba(255,255,255,0.1);
    }
    
    .content-area {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .site-main {
        margin: 20px auto;
    }
    
    .header-banner {
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .site-main {
        margin: 10px;
        border-radius: 10px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .post {
        padding: 20px;
    }
    
    .widget-area {
        padding: 20px;
    }
}

/* Special vintage effects */
.vintage-frame {
    border: 8px solid #d4af37;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(45deg, #f9f9f9, #ffffff);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.3);
    margin: 20px 0;
}

.carnival-text {
    font-family: 'Georgia', serif;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #16a085, #9BC95C);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Sticky header effect - keeps position but no size change */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
}