/*
Theme Name: Guardians of Destiny
Author: GoD Web Team
Description: Custom single-page component theme for Guardians of Destiny.
Version: 3.0
Text Domain: guardians-of-destiny
*/

:root {
    --bg-navy: #0b0f19;
    --bg-card: #161e2e;
    --bg-card-hover: #1c263b;
    --border-navy: #243049;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --gold-primary: #eab308;
    --gold-light: #facc15;
    --gold-badge-bg: rgba(234, 179, 8, 0.12);
    --discord-blurple: #5865F2;
    --discord-hover: #4752C4;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse 80% 45% at 50% 0%, #1c294a 0%, #111829 45%, #0b0f19 100%) no-repeat, var(--bg-navy);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--gold-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Main 960px Container */
.container,
.community-banner-wrap,
.god-main-canvas > .wp-block-group,
.god-main-canvas > .wp-block-columns,
.god-main-canvas > .wp-block-heading,
.god-main-canvas > p,
.god-main-canvas > .card {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Rounded Inset Community Banner */
.community-banner-wrap {
    margin-top: 24px;
    margin-bottom: 10px;
}

.community-banner {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.14), rgba(234, 179, 8, 0.08));
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 10px;
    color: #fef08a;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.92rem;
}

.community-banner strong {
    color: var(--gold-light);
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    text-align: center;
}

.hero-logo,
.custom-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 18px;
}

.hero-logo img,
.custom-logo-link img,
.custom-logo {
    display: block;
    width: 240px;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}

.hero-badge {
    display: inline-block;
    background: var(--gold-badge-bg);
    color: var(--gold-light);
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin: 0 0 20px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-intro {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.75;
}

.hero-intro strong {
    color: #ffffff;
}

/* Section Headings with Left Gold Accent Bar */
.god-main-canvas h2.wp-block-heading {
    font-size: 1.55rem;
    color: #ffffff;
    margin-top: 48px;
    margin-bottom: 6px;
    padding-left: 34px;
    position: relative;
}

.god-main-canvas h2.wp-block-heading::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background-color: var(--gold-primary);
    border-radius: 2px;
}

.god-main-canvas > p {
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-navy);
    border-radius: 12px;
    padding: 26px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #36476b;
    background: var(--bg-card-hover);
}

/* Standalone Full-Width Game Cards */
.god-main-canvas > .card.info-card {
    max-width: 920px;
    margin-bottom: 18px;
    height: auto;
}

.god-main-canvas .card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--gold-light);
    font-weight: 700;
}

.card p,
.card .card-body {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 22px;
    flex-grow: 1;
}

.card .card-body:last-child,
.card p:last-child {
    margin-bottom: 0;
}

.card strong {
    color: #ffffff;
}

/* Full-Width Discord Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: var(--discord-blurple);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--discord-hover);
    text-decoration: none;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Gutenberg Columns */
.wp-block-columns {
    gap: 20px;
    margin-bottom: 20px;
}

.wp-block-column {
    display: flex;
    flex-direction: column;
}

.wp-block-column > div,
.wp-block-column .card {
    flex-grow: 1;
}

/* Footer */
.site-footer {
    margin-top: 70px;
    padding: 28px 0;
    border-top: 1px solid var(--border-navy);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}
