/* Variables */
:root {
    --primary-bg: #272B30;
    --secondary-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color: #fff;
    --highlight-green: #006400;
    --highlight-red: #ff4444;
    --cyan: #00ffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.3);
    --transition-base: 0.3s ease;
}

/* Base styles */
body {
    background-color: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: Verdana, sans-serif;
    color: var(--text-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, sans-serif;
}

.stregkoden {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: Verdana, Arial, sans-serif; /* BankGothic font ikke tilgængelig */
    color: var(--text-color);
    text-align: center;
    margin: 2rem 0 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

/* Forside logo: StregKoden + tagline "Streamer" til højre under Koden */
.home-logo {
    display: inline-block;
    text-align: right;
    margin: 2rem 0 1rem;
}

.home-logo-name {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: Verdana, Arial, sans-serif;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.1;
}

.home-logo-tagline {
    display: block;
    font-size: clamp(0.5rem, 2vw, 0.85rem);
    font-family: Verdana, Arial, sans-serif;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.15em;
    font-weight: 600;
}

.responsive-heading {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-align: center;
    margin-bottom: 0.25rem;
}

.responsive-text {
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.5;
}

/* Home / Frontpage */
.home-hero-lines {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    letter-spacing: 0.2px;
    opacity: 0.95;
}

.home-hero-line {
    line-height: 1.4;
    color: #FF4488;
    font-family: Verdana, Arial, sans-serif;
    font-weight: bold;
}

.home-frontline {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
}

.home-frontline p {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.home-welcome {
    font-weight: 700;
    text-align: center;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    margin-bottom: 1.25rem;
}

.home-cta {
    font-weight: 600;
    text-align: center;
    margin-top: 1.25rem;
}

/* Layout */
.container {
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
    width: 100%;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: background-color var(--transition-base);
}

.navbar-scrolled {
    background-color: rgba(39, 43, 48, 0.95);
}

.navbar-brand {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

/* Footer */
footer {
    margin-top: auto;
    font-size: 0.9rem;
    border-top-color: var(--border-color) !important;
    width: 100%;
    position: relative;
    bottom: 0;
    flex-shrink: 0;
}

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

/* Donation i footer skal se ud som de andre links (ikke grøn knap-stil) */
footer .social-links a.donate-open-btn {
    color: var(--text-color);
    font-weight: normal;
    font-size: inherit;
    padding: 0;
}
footer .social-links a.donate-open-btn:hover {
    color: var(--text-color);
}

/* Common Components */
.content-box {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 1.125rem;
    margin-bottom: 1.125rem;
}

/* Leaderboard styling */
.donate-box {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    padding: 1.125rem;
    margin-bottom: 1.125rem;
    box-shadow: var(--shadow-md);
    max-width: 525px;
    margin-left: auto;
    margin-right: auto;
}

.donate-box h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.donate-open-btn {
    background: none;
    border: none;
    color: #198754;
    font-weight: bold;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.donate-open-btn:hover {
    color: #20c997;
}

/* Donation tak-boks (centreret overlay) */
.donate-thankyou-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--primary-bg, #272b30);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.donate-thankyou-box {
    background: var(--secondary-bg, #272b30);
    border: 1px solid #198754;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    max-width: 360px;
}

.donate-thankyou-msg {
    color: var(--text-color);
}

.donate-thankyou-box .donate-thankyou-close {
    margin-top: 0.25rem;
}

.donate-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.donate-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: #959595;
    text-align: center;
}

.donate-list li:last-child {
    border-bottom: none;
}

/* Top 3: fælles regel er link til Twitch (i de kasser hvor data har Twitch). Styling kun på navnet (linket). */
.donate-list li a {
    color: inherit;
    text-decoration: none;
}

.donate-list li a:hover {
    color: inherit;
    text-decoration: underline;
}

/* Nr. 1: lyserblå, fed, 1–2px større skrift, streg under */
.donate-list li.first-place a {
    color: #7ec8e3;
    font-weight: bold;
    font-size: calc(0.95rem + 2px);
    text-decoration: underline;
}

/* Nr. 2: hvid, fed, streg under */
.donate-list li.second-place a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* Nr. 3: hvid (uden streg under) */
.donate-list li.third-place a {
    color: #fff;
}

.donate-list li.third-place a:hover {
    color: #fff;
}

/* Top 3 uden link (fx Top Donators): samme farver på hele li */
.donate-list li.first-place {
    color: #7ec8e3;
    font-weight: bold;
    font-size: calc(0.95rem + 2px);
    text-decoration: underline;
}

.donate-list li.second-place {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.donate-list li.third-place {
    color: #fff;
}

/* Gallery */
.gallery-item {
    display: block;
    margin-bottom: 1rem;
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.shadow-hover {
    transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Operators */
.operator-icon {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.highlighted-operator {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border: 2px solid var(--highlight-green);
    border-radius: 10px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.highlighted-operator:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 100, 0, 0.5);
}

.disliked-operator {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border: 2px solid var(--highlight-red);
    border-radius: 10px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.disliked-operator:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

/* PC Setup */
#pc-setup-container {
    padding: 1rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pc-setup-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 2rem;
    display: block;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background-color: var(--secondary-bg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pc-setup-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pc-setup-image:last-child {
    margin-bottom: 0;
}

/* Lists */
.list-styled {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.list-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
}

.list-item:last-child {
    border-bottom: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .content-section {
        text-align: center;
    }

    footer .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }
}

/* Responsive billede justering */
.img-fluid {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Patch Notes side */
.patch-box {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.patch-notes-content {
    color: var(--text-color);
}

.patch-notes-content p {
    margin-bottom: 1rem;
}

.patch-notes-content ul,
.patch-notes-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.patch-post:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

/* Rules side styling */
.rules-box {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    max-width: 1300px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.rules-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.rules-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list strong {
    color: var(--text-color);
    font-weight: bold;
}

/* PC side styling */
.pc-specs-box {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 1050px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    padding: 1.125rem;
}

.pc-specs-box h2 {
    font-size: 1.125rem;
    margin-bottom: 1.125rem;
}

.pc-specs-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
}

.pc-specs-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
}

.pc-specs-list li:last-child {
    border-bottom: none;
}

.pc-specs-list strong {
    color: var(--text-color);
    font-weight: bold;
}

/* About side styling */
.about-box {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: left;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

.about-box p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-box .intro-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-align: center;
}

.about-box .intro-text p {
    text-align: center;
}

.about-box .gaming-journey {
    margin-bottom: 2.5rem;
}

.about-box .gaming-journey p {
    margin-bottom: 1.25rem;
}

.about-box .games-list {
    margin: 1.5rem 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 6px;
}

.about-box .games-list p {
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Kun første spil (Rainbow) får fremhævet udtryk; anden er kun fed via <strong>, resten almindelig */
.about-box .games-list li:first-child .game-title {
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: bold;
}

.about-box .games-list strong {
    color: var(--text-color);
    font-weight: bold;
}

.about-box .games-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.about-box .games-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    text-align: center;
}

.about-box .games-list li:last-child {
    border-bottom: none;
    color: var(--cyan);
    font-style: italic;
}

.about-box .games-list li:last-child a {
    color: inherit;
    font-style: inherit;
}

.about-box .games-list li strong {
    color: var(--text-color);
    font-weight: bold;
}

.about-box .steam-link {
    display: inline-block;
    margin-top: 0;
    font-style: italic;
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--transition-base);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
}

.about-box .steam-link:hover {
    color: var(--text-color);
    text-decoration: underline;
    background-color: transparent;
}

/* Map ranking overlay styling */
.map-container {
    position: relative;
    display: inline-block;
}

.rank-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 36px;
    font-weight: bold;
    z-index: 2;
    transition: transform var(--transition-base);
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    bottom: 20px;
    top: auto;
}

/* Farve for numre i "Maps I Don't Like" sektionen */
.rules-box:last-child .rank-number {
    color: #ff0000;
}

/* Hover effekt for numre i "My Favorite Maps" sektionen */
.rules-box:first-child .map-container:hover .rank-number {
    transform: translateX(-50%) scale(1.1);
}

/* Hover effekt for numre i "Maps I Don't Like" sektionen */
.rules-box:last-child .map-container:hover .rank-number {
    transform: translateX(-50%) scale(1.1);
}

/* Twitch status link (forside / generelt) */
.twitch-status-link,
.twitch-status-navbar {
    text-decoration: none;
    font-weight: bold;
    transition: color var(--transition-base), opacity var(--transition-base);
    display: inline-block;
}

.twitch-status-navbar {
    font-size: 0.85rem;
    opacity: 0.95;
}

.twitch-status-link:hover,
.twitch-status-navbar:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.twitch-online {
    color: #28a745 !important; /* Grøn */
}

.twitch-online:hover {
    color: #218838 !important;
}

.twitch-offline {
    color: #dc3545 !important; /* Rød */
}

.twitch-offline:hover {
    color: #c82333 !important;
}