/*
Theme Name: Successful Degenerates
Description: Custom theme for the Successful Degenerates brand.
Version: 1.0
Author: jstarnes
*/

/* === RESET & BASE === */
/* This removes default browser styling so everything looks consistent */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* These are our brand colors — change these to change the whole site */
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-accent: #ff4d00;
    --color-accent-hover: #ff6a2a;
    --color-text: #f0f0f0;
    --color-text-muted: #888888;
    --color-border: #2a2a2a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER / NAV === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.site-nav a {
    color: var(--color-text-muted);
    margin-left: 32px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: var(--color-accent);
}

/* === NAV DROPDOWN === */
/* The "Join" link expands into a dropdown with "Join the Club" / "Join the Team" */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 101;
    margin-top: 16px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    margin-left: 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

/* Application status box (for pending applications) */
.app-status-box {
    text-align: center;
    padding: 40px 20px;
}

.app-status-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.app-status-box h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.app-status-box p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, #1a0a00 100%);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* === SECTIONS (shared) === */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title span {
    color: var(--color-accent);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
}

/* === ABOUT === */
.about {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px 30px;
    transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* === TEAM === */
.team {
    background-color: var(--color-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    margin-bottom: 20px;
    transition: border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-initials {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: 2px;
    transition: color 0.3s;
}

.team-card:hover .team-photo {
    border-color: var(--color-accent);
}

.team-card:hover .team-initials {
    color: var(--color-text);
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-bio {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* === CTA BANNER === */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #cc3d00 100%);
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
}

.cta-banner h2 span {
    color: var(--color-bg);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta-banner .btn {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.cta-banner .btn:hover {
    background-color: var(--color-surface);
}

/* === GALLERY === */
.gallery {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: border-color 0.3s, color 0.3s;
}

.gallery-item:hover .gallery-placeholder {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Real gallery photos */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
}

/* === SHOP === */
.shop {
    background-color: var(--color-bg);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.2s;
}

.product-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-bg);
    border-radius: 6px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-price {
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

/* === FAQ === */
.faq {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.faq-list {
    max-width: 700px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === CONTACT === */
.contact {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* === AUTH PAGES (Login / Register) === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--color-bg) 0%, #1a0a00 100%);
}

.auth-box {
    max-width: 480px;
}

.auth-box .section-subtitle {
    margin-bottom: 40px;
}

.auth-message {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.auth-error {
    background-color: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
}

.auth-success {
    background-color: rgba(50, 205, 50, 0.15);
    border: 1px solid rgba(50, 205, 50, 0.3);
    color: #5ced5c;
}

.auth-links {
    margin-top: 24px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.resend-form {
    margin-top: 0;
}

.resend-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.resend-link:hover {
    color: var(--color-accent-hover);
}

.dismiss-form {
    margin-top: 16px;
}

.dismiss-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.dismiss-link:hover {
    color: var(--color-text);
}

/* Style the verification / reset code inputs to be larger and centered */
#verify_code,
#reset_code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 12px;
    text-align: center;
    max-width: 280px;
}

/* === MEMBERS AREA === */
.members-welcome {
    padding-top: 140px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--color-bg) 0%, #1a0a00 100%);
}

.members-section {
    padding: 80px 0;
}

.members-events {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Team-only section highlight */
.team-only-section {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Upsell box for club members */
.upsell-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.upsell-box .section-subtitle {
    margin-bottom: 30px;
}

/* Events list */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.event-card:hover {
    border-color: var(--color-accent);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 12px;
    background-color: var(--color-surface);
    border-radius: 6px;
}

.event-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
}

.event-day {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-text);
}

.event-details h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.event-details p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Members-only shop accent */
.members-shop {
    border-top: 1px solid var(--color-border);
}

.product-image--exclusive {
    border: 2px solid var(--color-accent);
}

/* Shop members note on public shop */
.shop-members-note {
    text-align: center;
    margin-top: 40px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Outline button variant */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* === FOOTER === */
.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.site-footer p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* === SCROLL ANIMATIONS === */
/* Elements start invisible and shifted down */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When they scroll into view, they fade in and slide up */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HAMBURGER MENU BUTTON === */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Animate the hamburger into an X when open */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === RESPONSIVE (mobile-friendly) === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

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

    .gallery-item--wide {
        grid-column: span 2;
    }

    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .auth-page {
        padding-top: 100px;
    }

    /* Show the hamburger button on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Turn the nav into a dropdown panel */
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        margin: 0;
        padding: 14px 24px;
        font-size: 1rem;
        display: block;
    }

    .site-nav a:hover {
        background-color: var(--color-bg);
    }

    /* Mobile dropdown — inline instead of floating */
    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        background-color: var(--color-bg);
        margin: 0;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
    }

    .nav-dropdown-menu a {
        padding-left: 48px;
        font-size: 0.9rem;
        color: var(--color-text-muted);
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}
