/*
 * Project D - Modernized Style Sheet
 * Based on original theme, but with improved structure, responsiveness, and modern CSS techniques.
 */

/* --- 1. Variables and Base Reset --- */
:root {
    --primary-color: #A00000; /* Deeper, richer red */
    --secondary-color: #0F0F0F; /* Near black for deep contrast */
    --accent-color: #FFC300; /* Brighter gold for better contrast */
    --text-color: #F0F0F0; /* Lighter text for readability */
    --card-bg: rgba(15, 15, 15, 0.9); /* Darker, more opaque card background with blur */
    --header-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: rgba(0, 0, 0, 0.95);
    --border-color: rgba(255, 195, 0, 0.3);
    --hover-color: #CC0000; /* Brighter hover state */
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: #000;
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../images/backgrounds/interlude_character_art.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

/* Background Overlay for Readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay for better text contrast */
    z-index: -1;
}

.wrapper {
    max-width: 1400px; /* Wider content area */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* --- 2. Header and Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.logo {
    line-height: 1;
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 2.2em;
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--primary-color);
    margin: 0;
}

.logo h1 .accent-d {
    color: var(--primary-color) !important; /* Force red color for the D */
    text-shadow: 0 0 10px var(--primary-color) !important; /* Stronger red glow */
}

.logo p {
    font-size: 0.8em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- 3. Hero Section --- */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 900px;
    padding: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px); /* Modern glass effect */
    box-shadow: 0 0 30px rgba(255, 195, 0, 0.1);
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 4.5em;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero h1 .accent-d {
    color: var(--primary-color) !important;
    text-shadow: 0 0 20px var(--primary-color) !important;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-family: var(--font-secondary);
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- 4. Buttons --- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-family: var(--font-secondary);
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(160, 0, 0, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 195, 0, 0.1);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 195, 0, 0.3);
}

/* --- 5. Content Sections and Cards --- */
.content-section {
    padding: 80px 0;
    min-height: 50vh;
}

.section-title {
    font-family: var(--font-primary);
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
    backdrop-filter: blur(5px); /* Key modern effect */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.card h2 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* --- 6. Forms --- */
form {
    display: grid;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 195, 0, 0.5);
    outline: none;
    background-color: rgba(15, 15, 15, 1);
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

/* --- 7. Footer --- */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--footer-bg);
    border-top: 2px solid var(--border-color);
    margin-top: 40px;
    font-family: var(--font-secondary);
    font-size: 0.9em;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.7);
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* --- 8. Utility Classes --- */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- 9. Responsive Design --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5em;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .hero {
        height: auto;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .wrapper {
        padding: 0 10px;
    }

    .content-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- 10. Specific Page Styles (Keeping original structure for compatibility) --- */

/* Server Status Section (from original CSS) */
.server-status-section {
    padding: 40px 0;
}

.status-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.status-box h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.online .status-dot {
    background-color: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}

.offline .status-dot {
    background-color: #f44336;
    box-shadow: 0 0 5px #f44336;
}

.status-details {
    margin-top: 15px;
}

.status-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

/* Vote Section (from original CSS) */
.vote-section {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.vote-container {
    max-width: 800px;
    margin: 0 auto;
}

.vote-text {
    text-align: center;
    margin-bottom: 30px;
}

.vote-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.vote-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    width: 150px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.vote-icon:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(255, 195, 0, 0.2);
}

.vote-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.vote-icon span {
    font-weight: bold;
}

/* Features Section (from original CSS) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* News Section (from original CSS) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-article {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s;
    backdrop-filter: blur(5px);
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.news-article h3 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    margin-bottom: 10px;
}

.news-article .date {
    display: block;
    font-size: 0.8em;
    color: #999;
    margin-bottom: 15px;
}

.news-article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.news-article a:hover {
    text-decoration: underline;
}

/* Account and Donation CSS (Keeping original structure for compatibility) */

/* --- 11. Server Info Page Specific Styles --- */

/* Increase font size for list items in the info cards */
.info-list li {
    font-size: 1.1em; /* Slightly larger than default body text */
}

/* Increase font size for the detailed notes headings */
.card details h3 {
    font-size: 1.5rem; /* Consistent with feature card headings */
    color: var(--accent-color);
    font-family: var(--font-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Increase font size for the detailed notes list items */
.card details ul li {
    font-size: 1em; /* Keep list items readable */
    margin-bottom: 5px;
}

/* Style for the summary text */
.card details summary {
    font-size: 1.2em !important; /* Make the summary text stand out more */
    color: var(--accent-color);
}
/* The original files account.css and donation.css will be reviewed and updated if necessary in the next steps */
