/* Gothic Theme - Shared Styles - Updated 2025-09-13 - Enhanced Mobile Navigation */
:root {
    --gothic-black: #000000;
    --gothic-purple: #6c3fa7;
    --gothic-grey: #888888;
    --gothic-dark-grey: #1a1a1a;
    --gothic-hover-grey: #888888;
    --gothic-gradient: linear-gradient(135deg, #18141e 0%, #000000 60%, #23202a 100%);
    --nav-button-width: 140px;
    --nav-button-height: 100px;
    --nav-button-bg-size: 80% 80%;
    --nav-transition: all 0.2s ease;
}

/* Base Styles */
body {
    background: var(--gothic-black);
    color: var(--gothic-purple);
    font-family: 'Cinzel', serif;
    margin: 0;
    min-height: 100vh;
    background-image: none;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE/Edge scrollbar hide */
}

/* Hide scrollbar for all browsers */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; /* Firefox */
}

/* Navigation */
nav {
    background: var(--gothic-dark-grey);
    border-bottom: 2px solid var(--gothic-grey);
    box-shadow: 0 2px 10px #23202a;
    padding: 0.5rem 0;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 2rem;
    position: relative;
}

/* Hamburger Menu Button - Hidden by default, shown on mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--gothic-dark-grey);
    border: 2px solid var(--gothic-grey);
    border-radius: 5px;
    transition: var(--nav-transition);
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--gothic-purple);
    margin: 3px 0;
    transition: var(--nav-transition);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--gothic-purple);
}

.hamburger-menu:hover {
    box-shadow: 0 0 10px var(--gothic-purple);
}

.hamburger-menu:hover span {
    box-shadow: 0 0 8px var(--gothic-purple);
}

/* Hamburger animation when active */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--gothic-black);
    border-right: 2px solid var(--gothic-grey);
    box-shadow: 2px 0 20px rgba(108, 63, 167, 0.3);
    z-index: 999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    padding-top: 80px;
}

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

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0;
    border-bottom: 1px solid var(--gothic-grey);
}

.mobile-nav-menu a, .mobile-nav-menu .mobile-dropbtn {
    display: block;
    color: var(--gothic-purple) !important;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: var(--nav-transition);
    background: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
    background-image: none !important;
    cursor: pointer;
}

.mobile-nav-menu a:hover, .mobile-nav-menu .mobile-dropbtn:hover {
    background: var(--gothic-dark-grey) !important;
    color: #fff !important;
    text-shadow: 0 0 5px var(--gothic-purple);
    transform: none !important;
}

.mobile-dropdown-content {
    display: none;
    background: var(--gothic-dark-grey);
    padding-left: 1rem;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content a {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--gothic-grey);
}

.mobile-dropdown-content a:last-child {
    border-bottom: none;
}

/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* Base Navigation Button Styles */
nav a, .dropbtn {
    color: transparent !important;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    transition: var(--nav-transition);
    padding: 1.5rem 2rem !important;
    background: var(--gothic-dark-grey) !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 2;
    background-size: var(--nav-button-bg-size) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: var(--nav-button-width) !important;
    height: var(--nav-button-height) !important;
    display: inline-block;
    text-align: center;
    line-height: var(--nav-button-height);
}

/* Dropdown button specific height */
.dropbtn {
    height: 50px !important;
    line-height: 50px;
}

/* Span dropdown button - inherits nav a styles */
span.dropbtn {
    color: transparent !important;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    padding: 1.5rem 2rem !important;
    background: var(--gothic-dark-grey) !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 2;
    background-size: var(--nav-button-bg-size) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: var(--nav-button-width) !important;
    height: var(--nav-button-height) !important;
    display: inline-block;
    text-align: center;
    line-height: var(--nav-button-height);
    background-image: url("/static/main/details.53e1745bb220.png") !important;
    cursor: pointer;
}

/* Navigation Button Images */
nav a[href="/home/"] { 
    background-image: url("/static/main/home.4f79b2e72315.png") !important; 
    --nav-bg-image: url("/static/main/home.4f79b2e72315.png");
}
nav a[href="/details/"] { 
    background-image: url("/static/main/details.53e1745bb220.png") !important; 
    --nav-bg-image: url("/static/main/details.53e1745bb220.png");
}
nav a[href="/etiquette/"] { 
    background-image: url("/static/main/etiquette.af699a377016.png") !important; 
    --nav-bg-image: url("/static/main/etiquette.af699a377016.png");
}
nav a[href="/rsvp/"] { 
    background-image: url("/static/main/rsvp.1d08686130e8.png") !important; 
    --nav-bg-image: url("/static/main/rsvp.1d08686130e8.png");
}

/* Details Button - Same size as other navigation buttons */
nav a[href="/details/"] {
    height: var(--nav-button-height) !important;
    line-height: var(--nav-button-height);
    background-image: url("/static/main/details.53e1745bb220.png") !important; 
    --nav-bg-image: url("/static/main/details.53e1745bb220.png");
}

/* Dropdown Content Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--gothic-dark-grey);
    width: 180px;
    box-shadow: 0 8px 16px #23202a;
    z-index: 10;
    border: 2px solid var(--gothic-grey);
    border-radius: 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content a {
    color: #fff !important;
    padding: 0.05rem 0.5rem !important;
    text-decoration: none;
    display: block;
    font-family: 'Cinzel', serif;
    background: var(--gothic-dark-grey) !important;
    background-image: none !important;
    background-size: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-bottom: 1px solid var(--gothic-grey);
    border-radius: 0;
    border-left: 2px solid var(--gothic-grey);
    border-right: 2px solid var(--gothic-grey);
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
}

/* Override for dropdown items that might match navigation selectors */
.dropdown-content a[href="/details/"] {
    color: #fff !important;
    padding: 0.05rem 0.5rem !important;
    text-decoration: none;
    display: block;
    font-family: 'Cinzel', serif;
    background: var(--gothic-dark-grey) !important;
    background-image: none !important;
    background-size: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-bottom: 1px solid var(--gothic-grey);
    border-radius: 0;
    border-left: 2px solid var(--gothic-grey);
    border-right: 2px solid var(--gothic-grey);
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    text-align: left !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--gothic-hover-grey) !important;
    background-image: none !important;
    color: #fff !important;
    text-shadow: 0 0 5px var(--gothic-hover-grey);
}

/* Navigation Hover Effects */
nav a:hover, .dropbtn:hover {
    background: var(--nav-bg-image), radial-gradient(ellipse 50% 40% at center, var(--gothic-hover-grey) 0%, transparent 70%) !important;
    background-size: var(--nav-button-bg-size), 100% 100% !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center, center !important;
    transform: scale(1.05) !important;
}

/* Span dropdown button hover effect - more specific to override dropdown hover */
.dropdown:hover > span.dropbtn {
    background: url("/static/main/details.53e1745bb220.png"), radial-gradient(ellipse 50% 40% at center, var(--gothic-hover-grey) 0%, transparent 70%) !important;
    background-size: var(--nav-button-bg-size), 100% 100% !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center, center !important;
    transform: scale(1.05) !important;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover > .dropbtn:not(span) {
    background: var(--nav-bg-image), radial-gradient(ellipse 50% 40% at center, var(--gothic-hover-grey) 0%, transparent 70%) !important;
    background-size: var(--nav-button-bg-size), 100% 100% !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center, center !important;
    transform: scale(1.05) !important;
}

/* Logout Button */
nav .logout {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: transparent !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    background: var(--gothic-dark-grey) !important;
    border: none;
    border-radius: 0;
    padding: 0.5rem 1.2rem;
    box-shadow: none;
    background-image: url("/static/main/door_closed.e021457b610f.png") !important;
    background-size: 80% 80% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 50px !important;
    height: 40px !important;
    display: inline-block;
    text-align: center;
    line-height: 40px;
}

nav .logout:hover {
    background: var(--gothic-dark-grey) !important;
    background-image: url("/static/main/door_open.f1b79300fda2.png") !important;
    background-size: 80% 80% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

/* Brace Container */
.brace-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 160px;
}

.brace-left, .brace-right {
    height: 160px;
    width: auto;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 220px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: -80px;
    gap: 30px;
}

.image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.image-section img {
    width: 150%;
    max-width: 900px;
    height: auto;
    display: block;
    filter: grayscale(0.2) contrast(1.1);
}

.text-section {
    flex: 2.0;
    background: none;
    border-radius: 0;
    padding: 2.5rem 2rem;
    margin-left: 8rem;
    margin-top: 0;
    text-align: right;
    box-shadow: none;
    color: var(--gothic-purple);
    border: none;
    background-image: none;
    background-blend-mode: overlay;
}

.text-section h1 {
    font-size: 4.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--gothic-purple);
    color: var(--gothic-purple);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.1;
}

.text-section p {
    font-size: 1.2rem;
    color: var(--gothic-purple);
    font-family: 'Academy Engraved LET', 'UnifrakturCook', 'UnifrakturMaguntia', cursive;
}

/* Container for other pages */
.container {
    background: var(--gothic-gradient);
    border-radius: 0;
    box-shadow: 0 0 30px #23202a;
    padding: 2rem 3rem;
    min-width: 320px;
    text-align: center;
    margin: 1rem auto 0 auto;
    max-width: 500px;
    color: var(--gothic-purple);
    border: none;
    background-image: var(--gothic-gradient);
    background-blend-mode: overlay;
}

.container h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--gothic-purple);
    color: var(--gothic-purple);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.1;
}

.container p {
    font-size: 1.1rem;
    color: var(--gothic-purple);
    font-family: 'Academy Engraved LET', 'UnifrakturCook', 'UnifrakturMaguntia', cursive;
}

/* Etiquette page specific styling - REMOVED - now handled in template */

/* Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .text-section {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        height: auto;
        padding: 2rem 0.5rem;
    }
    
    .image-section, .text-section {
        margin: 0;
        width: 100%;
        max-width: none;
    }
    
    .text-section {
        margin-right: 15px;
    }
    
    .image-section {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .text-section {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
    
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
    
    nav .logout {
        position: static;
        display: block;
        margin: 1rem auto 0 auto;
        text-align: center;
        transform: none;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex;
    }
    
    /* Show mobile overlay and menu elements */
    .mobile-nav-menu,
    .mobile-nav-overlay {
        display: block;
    }
    
    /* Hide desktop navigation */
    nav ul {
        display: none;
    }
    
    /* Adjust logout button for mobile */
    nav .logout {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 50px !important;
        height: 40px !important;
    }
    
    /* Main content adjustments */
    .main-content {
        padding: 1rem 0.5rem;
        min-height: calc(100vh - 120px);
        margin-top: -40px;
    }
    
    .text-section {
        padding: 1rem 0.5rem;
        font-size: 0.95rem;
        line-height: 1.4;
        text-align: center;
        margin-left: 0;
    }
    
    .text-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .text-section h3 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .text-section p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Image adjustments */
    .image-section img {
        max-width: 100%;
        height: auto;
    }
    
    /* Brace container adjustments */
    .brace-container {
        display: none; /* Hide decorative braces on mobile */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hamburger-menu {
        left: 0.5rem;
        padding: 0.75rem;
    }
    
    .hamburger-menu span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-nav-menu {
        width: 100%;
        padding-top: 70px;
    }
    
    .main-content {
        padding: 0.5rem 0.25rem;
        margin-top: -20px;
    }
    
    .text-section {
        padding: 0.75rem 0.25rem;
        font-size: 0.9rem;
    }
    
    .text-section h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .text-section h3 {
        font-size: 1.2rem;
    }
    
    .text-section p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    nav .logout {
        right: 0.5rem;
        width: 40px !important;
        height: 35px !important;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .text-section h1 {
        font-size: 1.8rem;
    }
    
    .text-section h3 {
        font-size: 1.1rem;
    }
    
    .text-section p {
        font-size: 0.85rem;
    }
    
    .mobile-nav-menu a, .mobile-nav-menu .mobile-dropbtn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }
    
    .mobile-dropdown-content a {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Hover states for non-touch devices */
@media (hover: hover) {
    .hamburger-menu:hover {
        background: var(--gothic-grey);
    }
    
    .mobile-nav-menu a:hover,
    .mobile-nav-menu .mobile-dropbtn:hover {
        background: var(--gothic-dark-grey) !important;
        color: #fff !important;
    }
}

/* Focus states for accessibility */
.hamburger-menu:focus {
    outline: 2px solid var(--gothic-purple);
    outline-offset: 2px;
}

.mobile-nav-menu a:focus,
.mobile-nav-menu .mobile-dropbtn:focus {
    outline: 2px solid var(--gothic-purple);
    outline-offset: -2px;
} 