/*
Theme Name: Big Dance Dig
Theme URI: https://www.bigdancedig.com/
Author: Matt
Author URI: http://www.mattmetten.com
Description: A single-page WordPress theme for the Big Dance Dig March Madness charity bracket challenge. Prizes managed via drag-and-drop custom post type. All other content via Customizer.
Version: 1.2.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bigdancedig
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #ddd;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #39ff14;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

strong, b {
    color: #fff;
}

/* Hide any default WP site-description/tagline output */
.site-description,
.wp-block-site-tagline,
p.site-description,
.custom-logo-link + *,
.site-branding .site-description {
    display: none !important;
}

/* ============================================
   FULL-PAGE BACKGROUND
   ============================================ */
.site-wrapper {
    background-color: #222;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ============================================
   TOP NAV
   ============================================ */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: #39ff14;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.site-nav a:hover {
    color: #fff;
    text-decoration: none;
}

/* ============================================
   HEADER / HERO
   ============================================ */
.site-hero {
    text-align: center;
    padding: 40px 20px 20px;
}

.site-hero__logo-wrap {
    display: inline-block;
    background: #fff;
    border-radius: 4px;
    padding: 15px 30px;
    max-width: 800px;
    width: 90%;
}

.site-hero__logo {
    width: 100%;
    height: auto;
}

/* ============================================
   CONTENT SECTIONS (dark overlay panels)
   ============================================ */
.bdd-panel {
    background: rgba(0, 0, 0, 0.70);
    max-width: 850px;
    margin: 20px auto;
    padding: 30px 40px;
}

.bdd-panel--wide {
    max-width: 1100px;
}

.bdd-section__title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 400;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.howitworks-list {
    list-style: decimal;
    padding-left: 30px;
    font-size: 1.05rem;
    color: #ddd;
}

.howitworks-list li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.howitworks-list li strong {
    color: #fff;
}

.howitworks-list li a {
    color: #39ff14;
    font-weight: 700;
    text-transform: uppercase;
}

/* Inline bracket form */
.bracket-form {
    margin: 10px 0 15px 0;
}

.bracket-form .form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bracket-form input[type="text"],
.bracket-form input[type="email"] {
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    flex: 1;
    min-width: 180px;
}

.bracket-form input[type="text"]::placeholder,
.bracket-form input[type="email"]::placeholder {
    color: #999;
}

.bracket-form .quiz-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ddd;
}

.bracket-form .quiz-row input {
    width: 60px;
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
}

.bracket-form .btn-submit {
    display: inline-block;
    padding: 12px 28px;
    background: #39ff14;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.bracket-form .btn-submit:hover {
    background: #2ecc0f;
}

/* ============================================
   PRIZES GRID
   ============================================ */
.prizes-heading {
    font-size: 1.3rem;
    color: #fff;
    margin: 30px 0 20px;
    font-weight: 400;
}

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

/* ── Title Sponsor (full-width) ── */
.prize-card--title-sponsor {
    grid-column: 1 / -1;
    text-align: center;
}

.prize-card--title-sponsor .title-sponsor__label {
    padding: 8px 15px;
    text-align: center;
}

.title-sponsor__label .prize-card__place-rank {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.title-sponsor__label .prize-card__place-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ccc;
}

.prize-card--title-sponsor .title-sponsor__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 30px;
    flex-wrap: wrap;
    background: #fff;
    color: #333;
}

.title-sponsor__left {
    text-align: center;
}

.title-sponsor__left .title-sponsor__text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.title-sponsor__left .title-sponsor__logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.title-sponsor__left .title-sponsor__name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-top: 5px;
}

.title-sponsor__right .prize-card__image {
    max-height: 220px;
    max-width: 350px;
    width: auto;
    object-fit: contain;
}

/* ── Standard prize cards ── */
.prize-card-wrapper {
    display: flex;
    flex-direction: column;
}

.prize-card__place {
    text-align: center;
    padding: 8px 5px 2px;
}

.prize-card__place-rank {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.prize-card__place-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ccc;
}

.prize-card {
    background: #fff;
    color: #333;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.prize-card__image {
    width: 70%;
    max-height: 130px;
    object-fit: contain;
    margin: 10px auto;
}

.prize-card__sponsor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.85rem;
    color: #777;
}

.prize-card__sponsor-label {
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.prize-card__brand-logo {
    max-height: 50px;
    width: auto;
}

.prize-card__sponsor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* ============================================
   DONATE BUTTON
   ============================================ */
.donate-cta {
    text-align: center;
    padding: 30px 20px;
}

.btn-donate {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #39ff14;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-donate:hover {
    background: #fff;
    color: #2ecc0f;
    text-decoration: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about .bdd-section__title {
    font-size: 2rem;
    margin-bottom: 25px;
}

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

.about-box {
    background: rgba(80, 80, 80, 0.65);
    padding: 25px;
}

.about-box p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-box ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.about-box ul li {
    margin-bottom: 5px;
}

.about-box ul li a {
    color: #39ff14;
}

.about-box h4 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 400;
    font-style: italic;
}

.about-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 10px;
}

.about-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   DATES & RULES
   ============================================ */
.dates-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dates-rules-box {
    background: rgba(80, 80, 80, 0.65);
    padding: 25px;
}

.dates-rules-box h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.dates-rules-box ul {
    list-style: disc;
    padding-left: 25px;
}

.dates-rules-box ul li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ddd;
}

.scoring-note {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
    text-align: center;
}

.section-contact .bdd-section__title {
    font-size: 2rem;
}

.contact-email {
    font-size: 1.1rem;
    color: #ddd;
}

.contact-email a {
    color: #39ff14;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.5);
}

.site-footer a {
    color: #39ff14;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .dates-rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bdd-panel {
        margin: 10px;
        padding: 20px;
    }

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

    .prize-card--title-sponsor .title-sponsor__inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .title-sponsor__right .prize-card__image {
        max-width: 100%;
    }

    .site-nav {
        position: static;
        justify-content: center;
        padding: 10px;
        background: rgba(0, 0, 0, 0.8);
    }

    .site-hero__logo-wrap {
        padding: 10px 15px;
    }

    .bracket-form .form-row {
        flex-direction: column;
    }

    .bdd-section__title {
        font-size: 1.4rem;
    }
}
