/* Milly Theme Styles */

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

body, html {
    height: 100%;
    font-family: 'Arial Black', Arial, sans-serif;
}

/* EventPrime delete button */
.ep-delete-event {
    position: absolute !important;
    bottom: 2px !important;
    right: 4px !important;
    color: #c00 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 100 !important;
    background: rgba(255,255,255,0.9) !important;
    padding: 0 4px !important;
    border-radius: 3px !important;
}

.ep-delete-event:hover {
    color: #f00 !important;
    background: #fff !important;
}

/* Global heading hierarchy */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.site-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    margin-bottom: 30px;
    text-align: center;
}

.lang-flag {
    width: 30px;
    height: 20px;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lang-flag.active,
.lang-flag:hover {
    opacity: 1;
}

/* Sidebar Menu */
.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 0;
}

.sidebar-menu a:hover {
    font-weight: 600;
    opacity: 1.0;
}

.sidebar-menu a.current-page {
    font-weight: 700;
}

/* Book Hall Animation */
@keyframes book-hall-glow {
    0%, 100% { color: #ffffff; }
    50% { color: #f0f0f0; }
}

.menu-item-book-hall {
    animation: book-hall-glow 3s ease-in-out infinite;
}

.menu-item-book-hall:hover {
    animation-play-state: paused;
}

/* Member Login */
.member-login {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
}

.member-login a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.member-login a:hover {
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Main Content Area */
.main-content-area {
    margin-left: 200px;
    width: calc(100% - 200px);
    min-height: 100vh;
}

/* Homepage Styles */
.homepage-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fallback-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.use-fallback .video-background {
    display: none;
}

.main-text {
    position: absolute;
    top: 10%;
    left: 250px;
    color: white;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 12rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-shadow: 
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black,
        -2px 0px 0 black,
        2px 0px 0 black,
        0px -2px 0 black,
        0px 2px 0 black,
        4px 4px 8px rgba(0,0,0,0.8);
    z-index: 1;
}

.sub-text {
    position: absolute;
    top: calc(10% + 8vw);
    left: 250px;
    color: white;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: clamp(0.75rem, 2vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-shadow: 
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black,
        -2px 0px 0 black,
        2px 0px 0 black,
        0px -2px 0 black,
        0px 2px 0 black,
        4px 4px 8px rgba(0,0,0,0.8);
    z-index: 1;
}

/* Announcements */
.announcements-overlay {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    color: white;
    max-width: 400px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.announcements-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.announcements-overlay h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.announcements-overlay p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.announcements-overlay a {
    color: #ccc;
    text-decoration: underline;
    font-size: 12px;
}

/* Page Styles */
.page-container {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 60px 40px;
    position: relative;
}

h1.page-title {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 12rem);
    font-weight: 900;
}

/* Hide page title on specific pages - add body class via WP */
.page-id-2 h1.page-title {
    display: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: white;
    text-shadow: 
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black,
        -2px 0px 0 black,
        2px 0px 0 black,
        0px -2px 0 black,
        0px 2px 0 black,
        4px 4px 8px rgba(0,0,0,0.8);
    margin-bottom: 40px;
}

.page-text {
    background: #bababa;
    padding: 30px;
    border-radius: 10px;
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.page-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-text h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.page-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-text h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.page-text h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-text h6 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-text p {
    margin-bottom: 15px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-200px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content-area {
        margin-left: 0;
        width: 100%;
    }
    
    .main-text {
        left: 20px;
        font-size: clamp(2rem, 12vw, 6rem);
        text-shadow: 
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px 1px 0 black,
            1px 1px 0 black,
            -1px 0px 0 black,
            1px 0px 0 black,
            0px -1px 0 black,
            0px 1px 0 black,
            2px 2px 5px rgba(0,0,0,0.8);
    }
    
    .sub-text {
        left: 20px;
        top: calc(10% + 12vw);
        font-size: clamp(0.5rem, 3vw, 1.5rem);
        text-shadow: 
            -1px -1px 0 black,
            1px -1px 0 black,
            -1px 1px 0 black,
            1px 1px 0 black,
            -1px 0px 0 black,
            1px 0px 0 black,
            0px -1px 0 black,
            0px 1px 0 black,
            2px 2px 5px rgba(0,0,0,0.8);
    }
    
    .announcements-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px;
        max-width: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .page-container {
        padding: 40px 20px;
    }
    
    h1.page-title {
        font-size: clamp(2rem, 10vw, 6rem);
    }
    
    .page-text {
        padding: 20px;
        font-size: 16px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-text {
        left: 220px;
        font-size: clamp(3rem, 6vw, 8rem);
    }
    
    .sub-text {
        left: 220px;
        font-size: clamp(0.75rem, 1.5vw, 2rem);
    }
    
    .announcements-overlay {
        right: 5%;
        max-width: 350px;
    }
}

/* Additional utility classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
