/* GLOBAL */
body {
    margin: 0;
    background: transparent; /* allow background.png to show */
    color: #FFB347;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4 {
    margin: 0;
    color: #FFB347;
}

/* BACKGROUND IMAGE */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png'); /* MUST match exact filename */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.85);
    z-index: -1;
}

/* Force all content above background */
header, .hero, .discord-widget, .content-block, .features-grid, footer, .section {
    position: relative;
    z-index: 2;
}

/* HEADER */
header {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #FF7A00;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    margin-right: 15px;
}

nav a {
    color: #FFB347;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #FF7A00;
}

/* HERO */
.hero {
    background: linear-gradient(180deg, rgba(26,26,26,0.85), rgba(0,0,0,0.85));
    padding: 120px 40px;
    text-align: center;
    border-bottom: 2px solid #FF4F00;
}

.hero h2 {
    font-size: 48px;
    color: #FF7A00;
}

.hero p {
    font-size: 20px;
    margin-top: 10px;
    color: #FFB347;
}

.buttons {
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    margin: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.btn.primary {
    background: #FF7A00;
    color: #000000;
}

.btn.primary:hover {
    background: #FF4F00;
}

.btn.secondary {
    border: 2px solid #FFB347;
    color: #FFB347;
}

.btn.secondary:hover {
    background: #1A1A1A;
}

/* DISCORD WIDGET */
.discord-widget {
    margin: 40px auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid #FF7A00;
    border-radius: 8px;
    text-align: center;
}

.discord-widget h3 {
    color: #FF7A00;
    font-size: 28px;
    margin-bottom: 15px;
}

/* Hide the Discord widget join button */
.discord-frame-wrapper iframe {
    height: 350px;
}

/* Remove the join button inside the iframe */
.discord-frame-wrapper iframe::-webkit-scrollbar {
    display: none;
}

.discord-frame-wrapper iframe {
    overflow: hidden;
}

/* This CSS hides the join button container */
.discord-frame-wrapper iframe + div,
.discord-frame-wrapper iframe ~ div {
    display: none !important;
}

/* CONTENT BLOCK */
.content-block {
    padding: 40px;
    text-align: center;
    background: rgba(26, 26, 26, 0.85);
    border-bottom: 2px solid #FF7A00;
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px;
}

.feature-card {
    background: rgba(26, 26, 26, 0.85);
    border: 2px solid #FF7A00;
    padding: 20px;
    border-radius: 8px;
}

.feature-card ul {
    padding-left: 20px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    border-top: 2px solid #FF4F00;
    color: #FFB347;
}

/* ============================================================
   RULES PAGE ENHANCEMENTS — MATCH HOMEPAGE STYLE
   ============================================================ */

.section {
    padding: 40px 40px;
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 2px solid #FF4F00;
}

.section.dark {
    background: rgba(17, 17, 17, 0.85);
    border-top: 2px solid #FF4F00;
    border-bottom: 2px solid #FF4F00;
}

.section h2 {
    font-size: 32px;
    color: #FF7A00;
    margin-bottom: 20px;
}

.section h3 {
    color: #FF7A00;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #FFB347;
}

.section ul {
    margin: 10px 0 20px 20px;
    padding-left: 20px;
    color: #FFB347;
}

.section ul li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.section pre {
    background: rgba(13, 13, 13, 0.85);
    border: 2px solid #FF7A00;
    padding: 15px;
    border-radius: 6px;
    color: #FFB347;
    font-size: 16px;
    overflow-x: auto;
    margin-top: 15px;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

/* Horizontal separators */
.rules-separator {
    width: 100%;
    height: 2px;
    background: #FF4F00;
    margin: 40px 0;
}

/* ============================================================
   SUPPORT PAGE ENHANCEMENTS — MATCH HOMEPAGE STYLE
   ============================================================ */

.donation-box {
    background: rgba(13, 13, 13, 0.85);
    border: 2px solid #FF7A00;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    color: #FFB347;
}

.support-btn {
    display: inline-block;
    background: #FF7A00;
    color: #000;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    margin-top: 10px;
}

.support-btn:hover {
    background: #FFB347;
    color: #000;
}
