/**
 * Death's Omen MUD - Main Stylesheet
 * Clean, custom CSS without web builder dependencies
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Palatino Linotype';
    src: url('../fonts/palatinolinotype_roman.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Capture it';
    src: url('../fonts/Capture it.ttf') format('truetype');
    font-display: swap;
}

html, body {
    height: 100%;
    font-family: 'Roboto', 'Source Sans Pro', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* ===== COLOR VARIABLES ===== */
:root {
    --primary-blue: #0099e0;
    --primary-blue-hover: #00bfff;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #F4C430;
    --text-grey: #aaa;
    --text-light: #fff;
    --bg-dark: #000;
    --border-grey: #444;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: #0099e0;
    margin-bottom: 1rem;
    font-weight: 600;
    margin-top: 0;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0099e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00bfff;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
    padding-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
    min-height: 46px;
    line-height: 46px;
    margin-bottom: 1rem;
    gap: 20px; /* Add gap between skull and nav */
}

.nav-wrapper {
    position: absolute;
    right: 0;
    display: flex;
    align-items: flex-start;
    overflow: visible;
    z-index: 1;
}

.site-logo {
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    box-sizing: border-box;
    margin: 0;
    align-self: flex-start;
    position: relative;
    z-index: 1; /* Ensure skull is above nav if needed */
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 2px solid #0099e0;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    box-sizing: border-box;
    z-index: 1001;
    position: relative;
    align-self: flex-start;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.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(8px, -8px);
}

/* Banner Section */
.site-banner {
    background: url('../images/banner-background.png') center center / cover no-repeat;
    padding: 0;
    text-align: center;
    margin: 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 0;
}


.banner-title {
    font-family: 'Capture it', 'Roboto Slab', serif;
    font-size: 120px;
    font-weight: normal;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: flex-start;
    overflow: visible;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    border: 2px solid #0099e0;
    padding: 0;
    background: #000;
    margin: 0;
    height: 46px;
    box-sizing: border-box;
    line-height: 46px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.main-nav > ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.main-nav > ul > li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: #0099e0;
    opacity: 0.5;
}


/* Cover nav bar's bottom border ONLY where dropdown connects - eliminates thick line */
.main-nav > ul > li:hover > ul::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #000;
    z-index: 1005;
    pointer-events: none;
}

.main-nav a {
    padding: 0.75rem 1.75rem;
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

/* Hover effect for all top-level menu anchors */
.main-nav > ul > li > a:hover {
    color: #0099e0;
}

/* Underline only on top-level menu anchors that have dropdowns, not simple links like Search/Login */
.main-nav > ul > li:has(> ul) > a:hover {
    border-bottom: 1px solid #0099e0;
}

/* Dropdown menus (second-level) - positioned below parent tab, appears fully below nav bar */
/* Parent li is position: relative, dropdown uses top: 100% to sit below nav bar */
/* Single clean border - no double borders on sides */
/* Cover nav bar's left/right borders where dropdown extends to prevent double line */
/* Dropdown menu - thin blue separator line at top, matching nav's bottom border */
/* Positioned below nav bar's bottom border, not overlapping */
.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000 !important;
    background-color: #000 !important;
    border-top: 2px solid #0099e0 !important;
    border-bottom: 2px solid #0099e0 !important;
    border-left: none;
    border-right: none;
    padding: 0;
    margin: 0;
    margin-top: 2px;
    width: max-content;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 1001;
    opacity: 1;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: none !important;
}


/* Hide separator line between menu items on hover - restore this functionality */
.main-nav > ul > li:hover::after {
    display: none;
}

.main-nav ul ul li {
    position: relative;
    border: none;
    border-bottom: 1px solid #0099e0;
    border-top: none !important;
    background: #000 !important;
    background-color: #000 !important;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure first dropdown item has NO top border */
.main-nav ul ul li:first-child {
    border-top: none !important;
    margin-top: 0;
    padding-top: 0;
}

.main-nav ul ul li::after {
    display: none;
}

.main-nav ul ul li:last-child {
    border-bottom: none;
    background: #000 !important;
    background-color: #000 !important;
}

.main-nav > ul > li:hover > ul {
    display: flex;
}

.main-nav ul ul a {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 20px;
    background: #000 !important;
    background-color: #000 !important;
    width: 100%;
    display: block;
    white-space: nowrap;
    box-sizing: border-box;
    border: none;
    margin: 0;
}

.main-nav ul ul a:hover {
    background-color: rgba(0, 153, 224, 0.3) !important;
}

/* Third-level nested menus (sub-submenus) - no top, left, right borders */
.main-nav ul ul ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0;
    background: #000 !important;
    background-color: #000 !important;
    border: none;
    border-top: none !important;
    border-bottom: 2px solid #0099e0 !important;
    padding: 0;
    width: max-content;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 1004;
    box-shadow: none !important;
    outline: none !important;
}


.main-nav ul ul li:hover > ul {
    display: flex;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 20px 20px;
    box-sizing: border-box;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .main-nav {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav ul {
    flex-direction: column;
    border: 2px solid #0099e0;
    border-radius: 4px;
    background: #000;
    padding: 0;
    margin: 0;
    height: auto;
    width: 100%;
}

.mobile-nav > .main-nav > ul > li {
    border-bottom: 1px solid #0099e0;
    height: auto;
    display: block;
}

.mobile-nav > .main-nav > ul > li:last-child {
    border-bottom: none;
}

.mobile-nav > .main-nav > ul > li:not(:last-child)::after {
    display: none;
}

.mobile-nav a {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 18px;
    width: 100%;
    display: block;
    white-space: normal;
    border: none;
}

.mobile-nav ul ul {
    position: static;
    display: none;
    border: none;
    border-top: 1px solid #0099e0;
    margin-top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

.mobile-nav ul ul.active {
    display: block;
}

.mobile-nav ul ul li {
    border-bottom: 1px solid rgba(0, 153, 224, 0.3);
}

.mobile-nav ul ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul ul a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 16px;
}

.mobile-nav ul ul ul {
    position: static;
    border-top: 1px solid rgba(0, 153, 224, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.mobile-nav ul ul ul a {
    padding: 0.75rem 1.5rem 0.75rem 4.5rem;
}

/* Toggle submenu on mobile */
.mobile-nav > .main-nav > ul > li > a {
    position: relative;
}

.mobile-nav > .main-nav > ul > li.has-submenu > a {
    padding-right: 3rem;
}

.mobile-nav > .main-nav > ul > li.has-submenu > a::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #0099e0;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.mobile-nav > .main-nav > ul > li.has-open > a::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

/* ===== MAIN CONTENT ===== */
.site-main {
    flex: 1;
    padding: 0;
    margin-top: 0;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

.site-main > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0;
}

.content-box {
    background-image: url('/background-grey.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #000;
    border: 1px solid #444;
    padding: 2rem;
    margin: 0 auto;
    border-radius: 4px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    min-height: 100%;
}

/* Content layout classes */
.section-title {
    color: #0099e0;
    font-size: 1.5em;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Gold/Yellow accent color utilities */
.text-gold {
    color: #D4AF37;
}

.text-gold-hover:hover {
    color: #F4C430;
}

.border-gold {
    border-color: #D4AF37;
}

.bg-gold {
    background-color: rgba(212, 175, 55, 0.1);
}

.bg-gold-accent {
    background: rgba(212, 175, 55, 0.15);
    border-left: 4px solid #D4AF37;
}

/* First section title in a container should have no top margin */
.content-text > .section-title:first-child,
.content-text-full > .section-title:first-child,
.content-box > .section-title:first-child {
    margin-top: 0;
}

/* Section titles that come after other content should have consistent spacing */
.content-text .section-title + *,
.content-text-full .section-title + * {
    margin-top: 0;
}

/* Main page title - only affects h2 with text-center and section-title */
h2.text-center.section-title,
h2.section-title.text-center {
    font-size: 2.5em; /* Change this value to adjust only main page titles */
}

.section-title-spaced {
    margin-top: 2rem;
}

.content-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.content-text {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.content-image {
    flex-shrink: 0;
    width: 322px;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text-full {
    width: 100%;
}

/* New Players & Testimonials Side by Side */
.new-players-testimonials-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

.new-players-section {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.testimonial-section {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 100%;
}

.announcement-body {
    color: #0099e0;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
}

/* Action Buttons Row */
.action-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.action-icon,
.server-status-icon {
    display: inline-block;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.action-icon:hover,
.server-status-icon:hover {
    opacity: 0.8;
}

.action-icon img,
.server-status-icon img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-control {
    display: flex;
    align-items: center;
}

#volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #0099e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: #00bfff;
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #0099e0;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

#volume-slider::-moz-range-thumb:hover {
    background: #00bfff;
}

#mute-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.play-pause-btn:hover {
    color: #0099e0;
    opacity: 0.8;
}

.play-icon,
.pause-icon {
    display: inline-block;
    line-height: 1;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0099e0;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #0099e0;
    box-shadow: 0 0 0 2px rgba(0, 153, 224, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0099e0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #00bfff;
}

.btn-secondary {
    background: #444;
}

.btn-secondary:hover {
    background: #555;
}

.btn-danger {
    background: #cc0000;
}

.btn-danger:hover {
    background: #ff0000;
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.table th {
    background: rgba(0, 153, 224, 0.2);
    color: #0099e0;
    font-weight: 600;
}

.table tr:hover {
    background: rgba(0, 153, 224, 0.1);
}

/* ===== MESSAGES ===== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 3px solid;
}

.alert-success {
    background: rgba(0, 128, 0, 0.2);
    border-color: #00ff00;
    color: #90ee90;
}

.alert-error {
    background: rgba(128, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ffaaaa;
}

.alert-info {
    background: rgba(0, 153, 224, 0.2);
    border-color: #0099e0;
    color: #90caf9;
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    margin-top: 0;
    text-align: center;
    color: #aaa;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ====== RESPONSIVE ====== */

/* Tablet and below (1024px and smaller) */
@media (max-width: 1024px) {
    .content-row {
        flex-direction: column;
    }
    
    .content-image {
        width: 100%;
        max-width: 322px;
        margin: 0 auto;
    }
    
    .content-text {
        width: 100%;
    }
    
    .new-players-testimonials-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile and small tablets (768px and smaller) */
@media (max-width: 1180px) {
    /* Keep padding for header container */
    .site-header .container {
        padding: 0 1rem;
    }
    
    /* Remove padding for main content container to allow full-width */
    .site-main > .container {
        padding: 0;
    }
    
    .content-box {
        padding: 1.5rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;
    }
    
    /* Hide desktop navigation */
    .nav-wrapper {
        display: none;
    }
    
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ensure skull stays visible */
    .site-logo {
        flex-shrink: 0;
    }
    
    .banner-title {
        font-size: 60px;
    }
    
    .content-row {
        margin: 1.5rem 0;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25em;
    }
    
    /* Main page title on mobile */
    h2.text-center.section-title,
    h2.section-title.text-center {
        font-size: 1.25em; /* Change this value for mobile page titles */
    }
    
    .action-buttons-row {
        gap: 1rem;
    }
    
    .action-icon,
    .server-status-icon {
        height: 40px;
    }
    
    .action-icon img,
    .server-status-icon img {
        height: 40px;
    }
    
    #volume-slider {
        width: 80px;
    }
    
    .play-pause-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Small mobile (480px and smaller) */
@media (max-width: 480px) {
    /* Keep padding for header container */
    .site-header .container {
        padding: 0 0.75rem;
    }
    
    /* Remove padding for main content container to allow full-width */
    .site-main > .container {
        padding: 0;
    }
    
    .content-box {
        padding: 1rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .banner-title {
        font-size: 40px;
        letter-spacing: 1px;
    }
    
    .content-row {
        margin: 1rem 0;
        gap: 1rem;
    }
    
    h1 { font-size: 2em; }
    h2 { font-size: 1.75em; }
    h3 { font-size: 1.25em; }
    h4 { font-size: 1.1em; }
}

