/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: rgb(201, 22, 22);
    --youtube-red: rgb(230, 33, 23);
    --text: rgb(246, 246, 246);
    --text-hover: rgba(150, 145, 145, 1);
    --fv: rgb(239 181 101);
    --blue: rgb(50, 50, 90);
    --discord-blue: rgb(88, 101, 242);
    --background-input-gray: rgb(14, 14, 14);
    --background-darker-gray: rgb(19, 19, 19);
    --background-gray: rgb(37, 36, 36);
    --background-dgray: rgb(30, 30, 30);
    --instagram: rgb(221, 42, 123);
    --tiktok: #ee1d52;
    --header-margin-percent: 15%;
    --default-header-height: 7%;
    --page-padding: 1vw;
    --page-width: calc(100% - var(--header-margin-percent)*2);
}

html,
body {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: sans-serif;
}

body {
    background-color: var(--background-gray);
    color: var(--text);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: .5vw;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #000;
}

::-webkit-scrollbar-thumb {
    background: var(--fv);
}

/* Header Styles */
.defaultHeaderContainer {
    display: flex;
    flex-direction: row;
    font-family: sans-serif;
    position: sticky;
    top: 0;
    z-index: 1001;
    align-items: center;
    align-content: stretch;
    justify-content: center;
    text-align: center;
    padding: 5px;
    background-color: var(--fv);
    width: 100%;
    height: var(--default-header-height);
}

.defaultHeaderContainer img {
    margin-left: var(--header-margin-percent);
    height: 4vh;
    cursor: pointer;
}

.defaultHeaderButtons {
    display: flex;
    flex-direction: row;
    margin-right: var(--header-margin-percent);
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    text-align: center;
    width: 100%;
}

.textButton {
    color: var(--text);
    cursor: pointer;
    user-select: none;
    font-size: 125%;
    height: 100%;
    text-decoration: none;
}

.textButton:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Page Container */
.page {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    left: var(--header-margin-percent);
    width: var(--page-width);
    min-height: calc(100% - var(--default-header-height) - var(--page-padding)/2);
    height: fit-content;
    padding: var(--page-padding);
    background-color: var(--background-darker-gray);
    -webkit-box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, .75);
    -moz-box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, .75);
    box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, .75);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
}

/* Home Page Styles */
.homePageContainer {
    font-family: serif;
    align-items: center;
    align-content: center;
}

.homePageLogo {
    top: 0;
    width: 20%;
}

.homePageSocialContainer {
    margin-top: -1vh;
    margin-bottom: 1vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1vw;
}

.homePageContainer h1 {
    font-size: 3rem;
    margin-bottom: 5vh;
    text-align: center;
}

/* Double Card Styles */
.doubleCard {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 40vh;
    padding: .5vw;
    margin-bottom: .1vh;
}

.doubleCardImage {
    display: flex;
    width: 50%;
    height: 100%;
}

.doubleCardImage img {
    width: 100%;
    object-fit: contain;
}

.doubleCardText {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.doubleCardText div {
    padding: 2vw;
}

.doubleCardText div h1 {
    font-family: sans-serif;
    margin-bottom: 0;
    font-size: 250%;
}

.doubleCardText div h1:hover {
    color: var(--fv);
}

.doubleCardText div p {
    font-family: sans-serif;
    line-height: 1.6;
}

/* Unified Filter Button Styles */
.filter-btn {
    background: rgba(0, 175, 244, 0.1);
    border: 1px solid #00aff4;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-family: sans-serif;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00aff4;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 175, 244, 0.5);
    color: #fff;
}

/* League Specific Modifiers */
/* F1: Red */
.filter-btn-f1 {
    border-color: #E83223;
    background: rgba(232, 50, 35, 0.1);
}

.filter-btn-f1:hover,
.filter-btn-f1.active {
    background: #E83223;
    box-shadow: 0 0 10px rgba(232, 50, 35, 0.5);
}

/* F2: Blue */
.filter-btn-f2 {
    border-color: #3B81EA;
    background: rgba(59, 129, 234, 0.1);
}

.filter-btn-f2:hover,
.filter-btn-f2.active {
    background: #3B81EA;
    box-shadow: 0 0 10px rgba(59, 129, 234, 0.5);
}

/* F3: Orange/Yellow */
.filter-btn-f3 {
    border-color: #F3AE44;
    background: rgba(243, 174, 68, 0.1);
}

.filter-btn-f3:hover,
.filter-btn-f3.active {
    background: #F3AE44;
    box-shadow: 0 0 10px rgba(243, 174, 68, 0.5);
}

/* FVEC: Dark Blue */
.filter-btn-fvec {
    border-color: #3662A0;
    background: rgba(54, 98, 160, 0.1);
}

.filter-btn-fvec:hover,
.filter-btn-fvec.active {
    background: #3662A0;
    box-shadow: 0 0 10px rgba(54, 98, 160, 0.5);
}

/* GT3: Orange */
.filter-btn-gt3 {
    border-color: #F09347;
    background: rgba(240, 147, 71, 0.1);
}

.filter-btn-gt3:hover,
.filter-btn-gt3.active {
    background: #F09347;
    box-shadow: 0 0 10px rgba(240, 147, 71, 0.5);
}

/* Dune: Gold */
.filter-btn-dune {
    border-color: #E2BC5E;
    background: rgba(226, 188, 94, 0.1);
}

.filter-btn-dune:hover,
.filter-btn-dune.active {
    background: #E2BC5E;
    box-shadow: 0 0 10px rgba(226, 188, 94, 0.5);
}

/* S80RR: Purple */
.filter-btn-s80rr {
    border-color: #7B2EED;
    background: rgba(123, 46, 237, 0.1);
}

.filter-btn-s80rr:hover,
.filter-btn-s80rr.active {
    background: #7B2EED;
    box-shadow: 0 0 10px rgba(123, 46, 237, 0.5);
}

/* FR: Cyan */
.filter-btn-fr {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.filter-btn-fr:hover,
.filter-btn-fr.active {
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Other: Grey */
.filter-btn-other {
    border-color: #888888;
    background: rgba(136, 136, 136, 0.1);
}

.filter-btn-other:hover,
.filter-btn-other.active {
    background: #888888;
    box-shadow: 0 0 10px rgba(136, 136, 136, 0.5);
}

/* Social Buttons (keeping neon style but adapting to new class structure if needed, 
   or just keeping them as is but ensuring they don't conflict. 
   The user asked for schedule/results button unification. 
   I will keep the social buttons as is for now but maybe rename them to avoid confusion if I removed neonButton class.
   Actually, I replaced neonButton block. I should probably keep specific social button styles if they are used elsewhere.
   Checking usage... they seem to be used in layout/home. 
   I will restore the social button specific styles but rename/refactor them to be independent or just keep them.
   Wait, the replacement target was the neonButton block. 
   I will re-add the social button styles to be safe, but maybe with a different base class or just standalone.
*/

/* Social Media Buttons (Home Page) - Original Styling */
.neonButton {
    user-select: none;
    cursor: pointer;
    border: 3px solid;
    border-radius: 10px;
    padding: 1vh 2vw;
    box-sizing: border-box;
    height: 5vh;
    width: fit-content;
    transition: .5s;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.neonButtonYouTube {
    border-color: var(--youtube-red);
}

.neonButtonYouTube:hover {
    background-color: var(--youtube-red);
}

.neonButtonDiscord {
    border-color: var(--discord-blue);
}

.neonButtonDiscord:hover {
    background-color: var(--discord-blue);
}

/* Calendar Button - Smaller, Subdued Styling */
.calendar-btn {
    user-select: none;
    cursor: pointer;
    border: 1px solid #666;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    box-sizing: border-box;
    height: auto;
    width: fit-content;
    transition: .3s;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    background: rgba(100, 100, 100, 0.1);
}

.calendar-btn:hover {
    background-color: rgba(100, 100, 100, 0.3);
    border-color: #888;
}

.neonButtonInstagram {
    border-color: var(--instagram);
}

.neonButtonInstagram:hover {
    background-color: var(--instagram);
}

.neonButtonTikTok {
    border-color: var(--tiktok);
}

.neonButtonTikTok:hover {
    background: var(--tiktok);
}

/* Dropdown Options Styling */
select option {
    background-color: black;
    color: white;
}

/* Utility Classes */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {

    /* Full-width mobile layout - remove side margins */
    .page {
        left: 0;
        width: 100%;
        padding: 0.5rem;
        box-shadow: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
    }

    .doubleCard {
        flex-direction: column;
        height: auto;
    }

    .doubleCardImage,
    .doubleCardText {
        width: 100%;
    }

    .homePageSocialContainer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .defaultHeaderButtons {
        flex-wrap: wrap;
    }
}

/* Schedule Page Styles */
.schedulePageContainer {
    font-family: sans-serif;
}

.page-description {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-hover);
}

.refresh-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

#lastUpdated {
    color: var(--text-hover);
    font-size: 0.9rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.event-card {
    background: var(--background-gray);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--fv);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    color: var(--fv);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-meta {
    margin-bottom: 1rem;
}

.event-time,
.event-status {
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--text-hover);
}

.status-scheduled {
    color: #4CAF50;
}

.status-active {
    color: #FF9800;
}

.status-completed {
    color: #9E9E9E;
}

.status-cancelled {
    color: #F44336;
}

.event-description {
    margin-bottom: 1.5rem;
    color: var(--text-hover);
}

.event-actions {
    display: flex;
    gap: 1rem;
}

/* No Events State */
.no-events {
    text-align: center;
    padding: 3rem;
    color: var(--text-hover);
}

.no-events h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

/* Manual Events Section */
.manual-events-section {
    background: var(--background-gray);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--fv);
    margin-top: 2rem;
}

.manual-events-section h2 {
    color: var(--fv);
    margin-bottom: 1rem;
}

.event-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background: var(--background-input-gray);
    border: 1px solid var(--background-dgray);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .refresh-section {
        flex-direction: column;
    }

    .event-actions {
        flex-direction: column;
    }
}

.announcements-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.announcement-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.announcement-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5865F2;
}

.default-avatar {
    background: linear-gradient(45deg, #5865F2, #EB459E);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.announcement-date {
    color: #888;
    font-size: 12px;
}

.announcement-content {
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 15px;
    word-wrap: break-word;
}

/* Discord Formatting Styles */
.discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #00aff4;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.discord-role {
    background: rgba(88, 101, 242, 0.3);
    color: #00aff4;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.discord-channel {
    color: #00aff4;
    font-weight: 500;
}

.discord-emoji {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-style: italic;
}

/* Markdown Styles */
.announcement-content strong {
    color: #fff;
    font-weight: 700;
}

.announcement-content em {
    color: #ddd;
    font-style: italic;
}

.announcement-content del {
    color: #888;
    text-decoration: line-through;
}

.announcement-content code {
    background: rgba(0, 0, 0, 0.5);
    color: #ff6b6b;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.announcement-content pre {
    background: rgba(0, 0, 0, 0.5);
    color: #ff6b6b;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #5865F2;
    margin: 10px 0;
    overflow-x: auto;
}

.announcement-content pre code {
    background: none;
    padding: 0;
}

.announcement-content h1,
.announcement-content h2,
.announcement-content h3 {
    color: #fff;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.announcement-content h1 {
    font-size: 1.5em;
}

.announcement-content h2 {
    font-size: 1.3em;
}

.announcement-content h3 {
    font-size: 1.1em;
}

.announcement-content a {
    color: #00aff4;
    text-decoration: none;
}

.announcement-content a:hover {
    text-decoration: underline;
}

/* Discord Embed Styling */
.discord-embed {
    border-left: 4px solid #5865F2;
    background: rgba(88, 101, 242, 0.1);
    padding: 12px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.embed-title {
    font-weight: bold;
    color: #00aff4;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.embed-title a {
    color: inherit;
    text-decoration: none;
}

.embed-title a:hover {
    text-decoration: underline;
}

.embed-description {
    color: #ddd;
    line-height: 1.4;
    margin-bottom: 10px;
}

.embed-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.embed-field {
    margin-bottom: 5px;
}

.embed-field-inline {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.embed-field-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.embed-field-value {
    color: #ddd;
    line-height: 1.4;
}

.embed-thumbnail img,
.embed-image img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

/* Attachments */
.announcement-attachments {
    margin-top: 15px;
}

.attachment-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.attachment-image img:hover {
    transform: scale(1.02);
}

.attachment-link {
    color: #00aff4;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0, 175, 244, 0.1);
    border-radius: 4px;
    margin: 5px 0;
}

.attachment-link:hover {
    background: rgba(0, 175, 244, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.98);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.refresh-section {
    text-align: center;
    margin-bottom: 30px;
}

.no-announcements {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* Make sure long words break properly */
.announcement-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Discord Formatting Styles */
.discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #00aff4;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.9em;
}

.discord-role {
    background: rgba(88, 101, 242, 0.3);
    color: #00aff4;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.9em;
}

.discord-channel {
    color: #00aff4;
    font-weight: 500;
    background: rgba(0, 175, 244, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.discord-emoji {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-style: italic;
    font-size: 0.9em;
}

.league-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-button.active {
    transform: scale(1.05);
    box-shadow: 0 0 15px currentColor;
}

/* League-specific button colors - similar to schedule page */
.filter-button[data-league="F1"] {
    background: linear-gradient(45deg, #E83223, #e26b60);
}

.filter-button[data-league="F2"] {
    background: linear-gradient(45deg, #3B81EA, #7fa5de);
}

.filter-button[data-league="F3"] {
    background: linear-gradient(45deg, #F3AE44, #ebc58c);
}

.filter-button[data-league="FR"] {
    background: linear-gradient(45deg, #00ffff, #00cccc);
}

.filter-button[data-league="AC"] {
    background: linear-gradient(45deg, #3662A0, #6a83a7);
}

/* Add more league colors as needed */

/* Hamburger Menu Styles */
.hamburger-menu {
    display: block;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    margin-left: auto;
    padding: 8px;
    /* Add padding for easier tapping */
}

#menu-toggle {
    display: block;
    width: 48px;
    /* Increased from 40px for better touch target */
    height: 48px;
    /* Increased from 32px for better touch target */
    position: absolute;
    top: -12px;
    right: -8px;
    cursor: pointer;
    opacity: 0;
    /* hide this */
    z-index: 2;
    /* and place it over the hamburger */
    -webkit-touch-callout: none;
}

.hamburger {
    position: relative;
    padding: 8px;
    /* Add padding around the icon for easier tapping */
}

.hamburger span {
    display: block;
    width: 28px;
    /* Slightly reduced to fit better with padding */
    height: 3px;
    /* Slightly thinner for better aesthetics */
    margin-bottom: 6px;
    /* Increased spacing between bars */
    position: relative;
    background: #ffffff;
    /* White color */
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}

.hamburger span:first-child {
    transform-origin: 0% 0%;
}

.hamburger span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

/* Transform all the slices of hamburger into a crossmark */
#menu-toggle:checked~.hamburger span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #ffffff;
    /* Keep white when crossed */
}

/* Hide the middle one */
#menu-toggle:checked~.hamburger span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/* Last one goes the other direction */
#menu-toggle:checked~.hamburger span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

/* Menu content styling */
.menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    max-width: 300px;
    width: 100vw;
    max-height: calc(100vh - 120px);
    /* Limit height to viewport minus header and spacing */
    margin: 20px 0 0 0;
    padding: 20px;
    padding-top: 40px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    border-radius: 5px;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 100% 0%;
    transform: translate(100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    opacity: 1;
    visibility: visible;
    z-index: 999999;
    overflow-y: auto;
    /* Enable vertical scrolling */
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* Slide it in from the right */
#menu-toggle:checked~.menu-content {
    transform: none;
}

.menu-item {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #333;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: rgba(0, 175, 244, 0.2);
    color: #00aff4;
}

/* Mobile Only Visibility */
.mobile-only {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .defaultHeaderButtons {
        display: none;
    }

    .hamburger-menu {
        display: block;
        padding: 12px;
        /* Extra padding on mobile for easier tapping */
    }

    .mobile-only {
        display: block;
    }

    /* Larger hamburger button on mobile */
    #menu-toggle {
        width: 56px;
        /* Even larger on mobile */
        height: 56px;
        top: -16px;
        right: -12px;
    }

    .hamburger {
        padding: 12px;
        /* More padding on mobile */
        background: rgba(0, 0, 0, 0.2);
        /* Subtle background for better visibility */
        border-radius: 8px;
    }

    .hamburger span {
        width: 32px;
        /* Larger bars on mobile */
        height: 4px;
        margin-bottom: 7px;
    }

    /* Larger menu items on mobile for easier tapping */
    .menu-item {
        padding: 16px 20px;
        /* Increased from 12px 15px */
        font-size: 18px;
        /* Increased from 16px */
    }

    /* Adjust menu content positioning on mobile */
    .menu-content {
        max-width: 320px;
        max-height: calc(100vh - 100px);
        /* More conservative height on mobile */
        padding: 25px;
        padding-top: 45px;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        margin-left: auto;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #00aff4;
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    color: #fff;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Privacy Policy Modal Styles */
.privacy-content {
    color: #ddd;
    line-height: 1.6;
}

.privacy-content p {
    margin-bottom: 15px;
}

.privacy-content a {
    color: #00aff4;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Ad Container Styles */
.ad-placeholder {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    color: #888;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Instagram Hover Effect */
.instagram-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    /* Ensure it doesn't take full height if not needed */
}

.instagram-dropdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    z-index: 100;
    align-items: center;
    /* Center items inside the dropdown */
    /* Fade out effect: 1s duration, starts immediately when hover ends */
    transition: visibility 0s linear 1s, opacity 1s linear;
}

.instagram-dropdown a {
    background-color: var(--background-gray);
    white-space: nowrap;
    text-align: center;
}

.instagram-container:hover .instagram-dropdown {
    visibility: visible;
    opacity: 1;
    /* Appear effect: fast fade in, no delay */
    transition: opacity 0.2s ease-in, visibility 0s;
    transition-delay: 0s;
}