/* ============================================
   Net Worth Higher or Lower - Main Stylesheet
   Author: [Your Name]
   Date: June 2026
   Description: Styles for all pages of the
   Net Worth Higher or Lower game website.
============================================ */

/* ---- CSS Reset & Base Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0d0d0d;
    color: #f0ede8;
    line-height: 1.6;
    font-size: 16px;
}

/* ---- Links ---- */
a {
    color: #c9a84c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #f0d98a;
}

/* ---- Pseudo-classes for buttons and links ---- */
a:visited {
    color: #a8883c;
}

a:active {
    color: #ffffff;
}

/* ============================================
   HEADER - appears on every page
============================================ */
header {
    background-color: #141414;
    border-bottom: 2px solid #c9a84c;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Site logo / title in header */
header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #f0ede8;
    text-decoration: none;
}

header .logo span {
    color: #c9a84c;
}

/* ============================================
   NAVIGATION - top nav bar
============================================ */
nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav ul li a {
    color: #999;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Hover effect on nav links */
nav ul li a:hover {
    background-color: #272727;
    color: #f0ede8;
    text-decoration: none;
}

/* Active page highlight */
nav ul li a.active {
    color: #c9a84c;
}

/* ============================================
   FOOTER - appears on every page
============================================ */
footer {
    background-color: #141414;
    border-top: 1px solid #272727;
    padding: 20px 30px;
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 60px;
}

footer a {
    color: #777;
}

footer a:hover {
    color: #c9a84c;
}

/* ============================================
   MAIN CONTENT WRAPPER
============================================ */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   HERO SECTION - homepage banner
============================================ */
.hero {
    text-align: center;
    padding: 60px 20px 50px;
}

.hero h1 {
    font-size: 52px;
    font-weight: bold;
    color: #f0ede8;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

/* Gold highlight on the word "Lower" */
.hero h1 em {
    font-style: normal;
    color: #c9a84c;
}

.hero p {
    font-size: 17px;
    color: #999;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    background-color: #c9a84c;
    color: #0d0d0d;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #f0d98a;
    text-decoration: none;
    color: #0d0d0d;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #555;
    color: #999;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: #999;
    color: #f0ede8;
    text-decoration: none;
}

/* ============================================
   GAME MODE CARDS - homepage grid
============================================ */
.modes-section {
    text-align: center;
    padding: 20px 0 40px;
}

.modes-section h2 {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 18px;
}

/* Grid for the 6 category cards */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.mode-card {
    background-color: #1e1e1e;
    border: 1.5px solid #272727;
    border-radius: 14px;
    padding: 20px 14px;
    text-decoration: none;
    color: #f0ede8;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Hover effect on mode cards */
.mode-card:hover {
    border-color: #555;
    background-color: #272727;
    text-decoration: none;
    color: #f0ede8;
}

.mode-card .card-icon {
    font-size: 26px;
    line-height: 1;
}

.mode-card .card-title {
    font-size: 15px;
    font-weight: bold;
    color: #f0ede8;
}

.mode-card .card-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* ============================================
   GAME PAGE - the VS card layout
============================================ */
.game-wrapper {
    max-width: 100%;
    padding: 0;
}

/* Score bar above the game */
.score-bar {
    background-color: #1e1e1e;
    border-bottom: 1px solid #272727;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.score-bar .score-item {
    text-align: center;
}

.score-bar .score-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.score-bar .score-number {
    font-size: 22px;
    font-weight: bold;
    color: #c9a84c;
}

/* Mode badge pill */
.mode-pill {
    background-color: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: #c9a84c;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: bold;
}

/* Two-column card area */
.cards-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    position: relative;
}

/* Divider line between the two cards */
.cards-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #272727;
    transform: translateX(-50%);
}

/* The animated VS circle in the middle */
#vs-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #272727;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #999;
    letter-spacing: 0.1em;
    z-index: 4;
    transition: background-color 0.3s, border-color 0.3s;
}

/* VS circle turns green on correct guess */
#vs-circle.correct {
    background-color: #3daa6c;
    border-color: #3daa6c;
    color: white;
    font-size: 20px;
}

/* VS circle turns red on wrong guess */
#vs-circle.wrong {
    background-color: #d85a30;
    border-color: #d85a30;
    color: white;
    font-size: 20px;
}

/* Individual person card */
.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 1rem 1.25rem;
    gap: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

/* Background photo layer */
.person-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Dark gradient overlay so text is readable */
.person-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* Card goes green when correct */
.person-card.correct .card-overlay {
    background: linear-gradient(
        to top,
        rgba(20, 80, 40, 0.92) 0%,
        rgba(20, 80, 40, 0.5) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* Card goes red when wrong */
.person-card.wrong .card-overlay {
    background: linear-gradient(
        to top,
        rgba(100, 25, 10, 0.92) 0%,
        rgba(100, 25, 10, 0.5) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* Content sits above the overlay */
.person-card .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Avatar circle (initials fallback) */
.avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Person name */
.card-name {
    font-size: 17px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
    max-width: 180px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Category badge */
.card-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px 10px;
}

/* "Net Worth" label above the dollar amount */
.worth-label {
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* The big dollar amount */
.worth-value {
    font-size: 28px;
    font-weight: bold;
    color: #c9a84c;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Hidden worth before guess */
.worth-hidden {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ============================================
   BOTTOM ACTION BAR
============================================ */
.action-bar {
    border-top: 1px solid #272727;
    padding: 14px 18px;
    background-color: #141414;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Result message banner */
.result-banner {
    font-size: 13px;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 10px;
    text-align: center;
    display: none;
    width: 100%;
    max-width: 480px;
}

.result-banner.correct {
    background-color: rgba(61, 170, 108, 0.13);
    color: #5dd99a;
    border: 1px solid rgba(61, 170, 108, 0.3);
}

.result-banner.wrong {
    background-color: rgba(216, 90, 48, 0.13);
    color: #f0886a;
    border: 1px solid rgba(216, 90, 48, 0.3);
}

/* Higher / Lower button row */
.guess-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 480px;
}

.btn-higher {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: 1.5px solid rgba(61, 170, 108, 0.4);
    background-color: #1e1e1e;
    color: #5dd99a;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-higher:hover {
    background-color: rgba(61, 170, 108, 0.13);
}

.btn-lower {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: 1.5px solid rgba(216, 90, 48, 0.35);
    background-color: #1e1e1e;
    color: #f0886a;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-lower:hover {
    background-color: rgba(216, 90, 48, 0.13);
}

/* Next button shown after a correct guess */
.btn-next {
    width: 100%;
    max-width: 480px;
    padding: 13px;
    background-color: #c9a84c;
    color: #0d0d0d;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: none;
}

.btn-next:hover {
    background-color: #f0d98a;
}

/* ============================================
   ABOUT PAGE
============================================ */
.about-section {
    padding: 20px 0;
}

.about-section h1 {
    font-size: 36px;
    font-weight: bold;
    color: #f0ede8;
    margin-bottom: 10px;
}

.about-section h1 span {
    color: #c9a84c;
}

.about-section h2 {
    font-size: 20px;
    font-weight: bold;
    color: #c9a84c;
    margin: 30px 0 10px;
}

.about-section p {
    color: #999;
    margin-bottom: 14px;
    max-width: 680px;
}

/* Styled unordered list for categories */
.about-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.about-section ul li {
    color: #999;
    padding: 6px 0;
    border-bottom: 1px solid #1e1e1e;
    padding-left: 20px;
    position: relative;
}

.about-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c9a84c;
}

/* Info table on about page */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.info-table th {
    background-color: #1e1e1e;
    color: #c9a84c;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #272727;
}

.info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #1e1e1e;
    color: #999;
    vertical-align: top;
}

.info-table tr:hover td {
    background-color: #1a1a1a;
}

/* ============================================
   LEADERBOARD / HOW TO PLAY PAGE
============================================ */
.how-section h1 {
    font-size: 36px;
    color: #f0ede8;
    margin-bottom: 8px;
}

.how-section h1 em {
    font-style: normal;
    color: #c9a84c;
}

/* Numbered steps */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1e1e1e;
}

.steps-list li::before {
    content: counter(steps);
    background-color: #c9a84c;
    color: #0d0d0d;
    font-weight: bold;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.steps-list li div {
    color: #999;
}

.steps-list li div strong {
    color: #f0ede8;
    display: block;
    margin-bottom: 4px;
}

/* ============================================
   CONTACT PAGE
============================================ */
.contact-section h1 {
    font-size: 36px;
    color: #f0ede8;
    margin-bottom: 10px;
}

.contact-section p {
    color: #999;
    margin-bottom: 20px;
}

/* Contact form styling */
.contact-form {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-size: 13px;
    font-weight: bold;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    color: #f0ede8;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c9a84c;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   UTILITY CLASSES
============================================ */

/* Gold colored text */
.text-gold {
    color: #c9a84c;
}

/* Subtle secondary text */
.text-muted {
    color: #777;
    font-size: 13px;
}

/* Centered content block */
.text-center {
    text-align: center;
}

/* Section spacer */
.spacer {
    height: 40px;
}

/* Disclaimer box */
.disclaimer {
    background-color: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}

.disclaimer strong {
    color: #c9a84c;
}

/* Back to top link */
.back-to-top {
    display: block;
    text-align: center;
    padding: 10px;
    color: #555;
    font-size: 13px;
    margin-top: 30px;
}

.back-to-top:hover {
    color: #c9a84c;
}
