/* Doscore Shared Styles */
:root {
    --primary-dark: #00224D;
    --primary-accent: #FF204E;
    --accent-hover: #A0153E;
    --accent-orange: #FFA500;
    --text-dark: #5D0E41;
    --patreon-color: #FF424D;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-accent);
    background-color: var(--primary-dark);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background_doscore.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 2em;
    font-weight: bold;
}

.logo-text span {
    color: var(--accent-orange);
}

/* Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-orange);
}

/* Patreon Button */
.patreon-btn {
    background-color: var(--patreon-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.patreon-btn:hover {
    background-color: #e03a44;
    transform: scale(1.05);
}

.patreon-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Hero Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
    text-align: center;
    color: white;
    padding-top: 1%;
}

.center-text {
    max-width: 600px;
}

.center-text h1 {
    font-size: 3em;
    margin: 0;
}

.center-text h2 {
    font-size: 1.5em;
    color: darkgrey;
}

/* Content Container */
.content-container {
    width: 80%;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 80px;
}

/* News Section */
.news-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-dark);
}

.news-section h2 {
    color: var(--primary-dark);
    font-size: 2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-section h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 100%;
    min-height: 30px;
    background-color: var(--primary-accent);
    border-radius: 4px;
}

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

.news-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #003366 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-card .news-date {
    font-size: 0.85em;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.news-card h3 {
    margin: 0 0 10px 0;
    color: white;
}

.news-card p {
    color: #ccc;
    line-height: 1.6;
}

.news-card .news-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
}

.news-card .news-link:hover {
    text-decoration: underline;
}

/* Feature Section */
.feature {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature img {
    width: 50%;
    border-radius: 10px;
}

.feature-text {
    width: 50%;
    padding: 0 20px;
}

.feature-text h3 {
    margin: 0;
    color: var(--primary-dark);
}

.feature-text p {
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Forms */
.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    margin-bottom: 10px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.login-form button {
    background-color: var(--primary-accent);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: var(--accent-hover);
}

/* Download Container */
.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.download-container img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.download-container h3 {
    color: var(--primary-dark);
    margin: 10px 0;
}

.download-container p {
    color: var(--text-dark);
    text-align: center;
}

.download-container a {
    text-decoration: none;
    color: white;
    background-color: var(--primary-accent);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-container a:hover {
    background-color: var(--accent-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

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

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: white;
}

/* FlameD highlight in nav */
.nav-highlight {
    background: linear-gradient(90deg, #ff6b35, #f7931a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .feature {
        flex-direction: column !important;
    }

    .feature img,
    .feature-text {
        width: 100%;
    }

    .feature-text {
        padding: 20px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .container h1 {
        font-size: 2em;
    }
}
