/* --- General Body & Font Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #111; /* Dark base color */
    /* REMOVED: Old background-image texture */
    color: #f5e6c8;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* NEW: Styles for the animated background container */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* This is crucial - it places the animation behind everything */
}

.site-container {
    max-width: 1100px;
    margin: 0 auto;
    /* UPDATED: Made the background slightly transparent */
    background-color: rgba(26, 26, 26, 0.85);
    /* REMOVED: Old background-image texture */
    border-left: 2px solid #5a3d2b;
    border-right: 2px solid #5a3d2b;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    backdrop-filter: blur(5px); /* Optional: Adds a nice glass-like blur effect */
    -webkit-backdrop-filter: blur(5px);
}

h1, h2, h3, h4 {
    font-family: 'MedievalSharp', cursive;
    color: #e57373;
    font-weight: normal;
    text-shadow: 1px 1px 2px #000;
}

h1 { font-size: 3.5rem; margin: 0; }
h2 { font-size: 2.5rem; border-bottom: 2px solid #5a3d2b; padding-bottom: 10px; margin-top: 0;}
h3 { font-size: 1.8rem; color: #ffb74d; }

a {
    color: #e57373;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ef9a9a;
}

ul, ol {
    list-style-position: inside;
    padding-left: 0;
}

/* --- Enter Overlay --- */
#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#enter-image {
    max-width: 90%;
    max-height: 80vh;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(0,0,0,0.4);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #8c1c1c;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.guild-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #5a3d2b;
}

.server-name {
    font-size: 1.2rem;
    color: #ccc;
    margin: 0;
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    background-color: #4a3426;
    color: #f5e6c8;
    border: 1px solid #5a3d2b;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.main-nav a:hover {
    background-color: #8c1c1c;
    color: #fff;
    border-color: #e57373;
}


/* --- Main Content & Sections --- */
.main-content {
    padding: 10px 40px 30px 40px;
}

section {
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px dashed #5a3d2b;
}
section:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 20px;
}
section h2 {
    margin-bottom: 20px;
}

.feature-image {
    width: 100%;
    height: auto;
    border: 3px solid #5a3d2b;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #8c1c1c;
    color: #fff;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.5rem;
    border: 2px solid #e57373;
    border-radius: 5px;
    text-shadow: 1px 1px 2px #000;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e57373;
    border-color: #fff;
    transform: translateY(-2px);
}

.discord-button {
    background-color: #5865F2;
    border-color: #7289da;
}
.discord-button:hover {
    background-color: #7289da;
}


/* --- Recruitment Section --- */
.recruitment-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.class-need {
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #5a3d2b;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}
.class-need h4 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}
.class-need span {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    color: #fff;
}
.class-need.high span { background-color: #4CAF50; }
.class-need.medium span { background-color: #FFC107; }
.class-need.low span { background-color: #f44336; }


/* --- Audio Controls --- */
#audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

#mute-button {
    width: 50px;
    height: 50px;
    background-color: #4a3426;
    color: #f5e6c8;
    border: 2px solid #8c1c1c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0; /* Prevents the button from shrinking */
}

#mute-button:hover {
    background-color: #8c1c1c;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 8px;
    background: #4a3426;
    border: 1px solid #8c1c1c;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

#volume-slider:hover {
    opacity: 1;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #e57373;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #f5e6c8;
}

#volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #e57373;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #f5e6c8;
}


/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0,0,0,0.4);
    border-top: 3px solid #8c1c1c;
    color: #aaa;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 5px 0;
}


/* =====================================================
--- FINAL & POLISHED MOBILE RESPONSIVENESS --- 
=====================================================
*/
@media (max-width: 768px) {
    /* Set a larger base font size for the whole page on mobile */
    html {
        font-size: 18px;
    }
    
    /* Ensure body text inherits this new, larger size and has more line spacing */
    body {
        font-size: 1rem; /* This will now be 18px */
        line-height: 1.7;
    }
    
    .site-container {
        border-left: none;
        border-right: none;
    }

    .main-content {
        padding: 10px 15px 20px 15px;
    }

    /* Adjust heading sizes to be proportional to the new base size */
    h1 {
        font-size: 2.0rem;
    }

    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }

    /* Make header stack cleanly */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .guild-logo {
        width: 80px;
        height: 80px;
    }

    /* Make navigation links larger and easier to tap */
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: 12px;
    }

    /* Scale down audio controls to take up less space */
    #audio-controls {
        bottom: 10px;
        right: 10px;
    }

    #mute-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    #volume-slider {
        width: 90px;
    }
}
