/* =========================================================
   MISSISSIPPI ASA WEBSITE
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #f5f5f1;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #111a12;
    color: white;
    border-bottom: 4px solid #b68a3c;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
}

.brand {
    display: flex;
    align-items: center;
}

.site-logo {
    width: 250px;
    height: auto;
    display: block;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: white;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #d5aa51;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 560px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(15, 25, 16, 0.82),
            rgba(15, 25, 16, 0.82)
        );

    color: white;
}

.hero-content {
    padding: 90px 0;
}

.eyebrow {
    margin: 0 0 12px;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;
}

.hero h1 {
    max-width: 800px;

    margin: 0 0 25px;

    font-size: 64px;
    line-height: 1.05;
}

.hero-text {
    max-width: 650px;

    margin: 0 0 35px;

    font-size: 22px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-block;

    padding: 14px 26px;

    background: #b68a3c;
    color: white;

    border-radius: 5px;

    font-weight: bold;

    transition: 0.2s ease;
}

.button:hover {
    background: #946d2c;
    transform: translateY(-1px);
}

.button-outline {
    background: transparent;

    border: 2px solid white;
}

.button-outline:hover {
    background: white;
    color: #203f25;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.quick-links,
.events,
.standings,
.classes,
.contact {
    padding: 85px 0;
}

.section-heading {
    max-width: 720px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-heading h2 {
    margin: 5px 0 15px;

    color: #203f25;

    font-size: 40px;
    line-height: 1.2;
}

.section-heading p {
    color: #555;
}
.event-type {
    display: inline-block;
    margin-bottom: 6px;

    color: #b68a3c;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1px;
}

.featured-event {
    border-left: 6px solid #b68a3c;
}

.featured-event .event-date {
    background: #b68a3c;
}

.event-link:hover {
    color: #b68a3c;
}

/* =========================================================
   QUICK LINK CARDS
========================================================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.card {
    background: white;

    padding: 35px;

    border-radius: 8px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08);

    border-top: 4px solid #b68a3c;
}

.card-number {
    color: #b68a3c;

    font-size: 14px;
    font-weight: bold;
}

.card h3 {
    margin: 12px 0;

    color: #203f25;

    font-size: 25px;
}

.card p {
    color: #555;
}

.card a {
    color: #203f25;

    font-weight: bold;
}

.card a:hover {
    color: #b68a3c;
}


/* =========================================================
   EVENTS
========================================================= */

.events {
    background: #e8e8e2;
}

.event-list {
    max-width: 950px;

    margin: auto;
}

.event-card {
    display: flex;

    align-items: center;

    gap: 25px;

    background: white;

    padding: 25px;

    border-radius: 8px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.07);
}

.event-date {
    min-width: 100px;

    padding: 18px;

    background: #203f25;

    color: white;

    text-align: center;

    border-radius: 5px;
}

.event-date span {
    display: block;

    font-size: 13px;

    opacity: 0.8;
}

.event-date strong {
    display: block;

    margin-top: 5px;

    font-size: 22px;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    margin: 0 0 5px;

    color: #203f25;

    font-size: 24px;
}

.event-info p {
    margin: 0;

    color: #555;
}
.event-type {
    display: inline-block;

    margin-bottom: 6px;

    color: #b68a3c;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;
}

.featured-event {
    border-left: 6px solid #b68a3c;
}

.featured-event .event-date {
    background: #b68a3c;
}

.event-link:hover {
    color: #b68a3c;
}

.event-link {
    color: #203f25;

    font-weight: bold;
}


/* =========================================================
   SHOOTER OF THE YEAR
========================================================= */

.standings {
    background: white;
}

.standings-preview {
    max-width: 950px;

    margin: 0 auto 35px;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.standing-header,
.standing-row {
    display: grid;

    grid-template-columns:
        100px 1fr 180px 120px;

    gap: 15px;

    align-items: center;

    padding: 18px 25px;
}

.standing-header {
    background: #203f25;

    color: white;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 1px;
}

.standing-row {
    background: #f8f8f5;

    color: #333;
}

.center-button {
    text-align: center;
}


/* =========================================================
   ASA CLASSES
========================================================= */

.classes {
    background: #f0f0eb;
}

.class-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.class-card {
    background: white;

    padding: 30px;

    border-radius: 7px;

    border-left: 5px solid #b68a3c;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);
}

.class-card h3 {
    margin-top: 0;

    color: #203f25;

    font-size: 22px;
}

.class-card p {
    margin-bottom: 0;

    color: #666;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 90px 0;

    background: #203f25;

    color: white;
}

.about-content {
    max-width: 800px;

    text-align: center;
}

.about h2 {
    margin: 5px 0 20px;

    font-size: 42px;
}

.about p {
    font-size: 18px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: white;
}

.contact-card {
    max-width: 800px;

    margin: auto;

    padding: 45px;

    text-align: center;

    background: #f5f5f1;

    border-radius: 8px;
}

.contact-card h3 {
    color: #203f25;

    font-size: 27px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 45px 0;

    background: #111;

    color: white;

    text-align: center;
}

.footer-logo {
    width: 180px;

    margin-bottom: 10px;
}

.site-footer p {
    margin: 5px 0;
}

.copyright {
    margin-top: 25px !important;

    font-size: 13px;

    opacity: 0.55;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-content {
        flex-direction: column;

        text-align: center;
    }

    .main-nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px 20px;
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .class-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .site-logo {
        width: 190px;
    }

    .main-nav {
        gap: 10px 15px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .event-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .event-date {
        width: 100%;
    }

    .standing-header,
    .standing-row {
        grid-template-columns:
            50px 1fr 80px;

        padding: 15px;
    }

    .standing-header span:nth-child(4),
    .standing-row strong:last-child {
        display: none;
    }

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

    .about h2 {
        font-size: 32px;
    }

}
/* =========================================================
   STANDINGS PAGE
========================================================= */

.page-hero {
    padding: 80px 0;

    background: #203f25;

    color: white;
}

.page-hero h1 {
    margin: 5px 0 10px;

    font-size: 50px;
}

.page-hero p {
    font-size: 18px;
}


.standings-page {
    padding: 80px 0;

    background: #f5f5f1;
}


.standings-controls {
    max-width: 950px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    gap: 15px;
}


.standings-controls label {
    font-weight: bold;

    color: #203f25;
}


.standings-controls select {
    padding: 10px 15px;

    border: 1px solid #ccc;

    border-radius: 5px;

    background: white;

    font-size: 15px;
}


.standings-table {
    max-width: 950px;

    margin: auto;

    background: white;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0,0,0,.08);
}


.standings-table .standing-header,
.standings-table .standing-row {

    display: grid;

    grid-template-columns:
        80px 1fr 180px 120px 80px;

    gap: 15px;

    align-items: center;

    padding: 18px 25px;

}


.standings-table .standing-header {

    background: #203f25;

    color: white;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 1px;
}


.standings-table .standing-row {

    border-bottom: 1px solid #eee;
}


/* MOBILE */

@media (max-width: 600px) {

    .page-hero h1 {
        font-size: 38px;
    }

    .standings-controls {
        flex-direction: column;

        align-items: flex-start;
    }

    .standings-table {
        overflow-x: auto;
    }

    .standings-table .standing-header,
    .standings-table .standing-row {

        min-width: 650px;

    }

}

/* =====================================================
   STANDINGS SEARCH
===================================================== */

.standings-controls {
    max-width: 950px;

    margin: 0 auto 25px;

    display: flex;

    align-items: flex-end;

    gap: 25px;

    flex-wrap: wrap;
}


.search-control,
.class-control {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.search-control {
    flex: 1;

    min-width: 260px;
}


.class-control {
    min-width: 220px;
}


.standings-controls label {
    color: #203f25;

    font-size: 14px;

    font-weight: bold;
}


.standings-controls input,
.standings-controls select {

    padding: 12px 14px;

    border: 1px solid #ccc;

    border-radius: 5px;

    background: white;

    font-size: 15px;

}


.standings-controls input:focus,
.standings-controls select:focus {

    outline: none;

    border-color: #b68a3c;

    box-shadow:
        0 0 0 2px rgba(182, 138, 60, 0.15);

}

/* =====================================================
   SHOOTER SCORECARD
===================================================== */

.shooter-row {
    cursor: pointer;

    transition:
        background 0.2s ease;
}


.shooter-row:hover {
    background: #eef1e9;
}


.shooter-row.expanded {
    background: #e8e8e2;
}


.shooter-name {
    font-weight: bold;

    color: #203f25;
}


.shooter-details {
    background: #f5f5f1;

    border-bottom:
        1px solid #ddd;
}


.scorecard {
    max-width: 900px;

    margin: 0 auto;

    padding: 30px 35px;
}


.scorecard h3 {
    margin:
        0 0 3px;

    color: #203f25;

    font-size: 25px;
}


.scorecard-class {
    margin-top: 0;

    color: #777;

    font-weight: bold;
}


.scorecard h4 {
    margin:
        25px 0 10px;

    color: #203f25;

    text-transform:
        uppercase;

    font-size: 13px;

    letter-spacing: 1px;
}


.score-header,
.score-line {
    display: grid;

    grid-template-columns:
        1fr 100px 80px 100px;

    gap: 15px;

    align-items: center;

    padding: 10px 15px;
}


.score-header {
    background: #203f25;

    color: white;

    font-size: 11px;

    font-weight: bold;
}


.score-line {
    background: white;

    border-bottom:
        1px solid #eee;
}


.score-line.counting {
    border-left:
        4px solid #b68a3c;
}


.score-line.dropped {
    color: #999;

    background: #fafafa;
}


.score-line.championship {
    border-left:
        4px solid #203f25;

    font-weight: bold;
}


.score-total {
    display: grid;

    grid-template-columns:
        1fr 120px 120px;

    gap: 15px;

    margin-top: 25px;

    padding: 20px;

    background: #203f25;

    color: white;

    font-weight: bold;

    align-items: center;
}


@media (max-width: 600px) {

    .scorecard {
        padding: 20px 15px;
    }


    .score-header,
    .score-line {

        grid-template-columns:
            1fr 65px 55px 75px;

        gap: 8px;

        padding: 9px 8px;

        font-size: 13px;

    }


    .score-total {

        grid-template-columns:
            1fr 80px 80px;

        gap: 8px;

        padding: 15px;

        font-size: 13px;

    }

}


/* =====================================================
   SHOOTER SCORECARD
===================================================== */

.shooter-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shooter-row:hover {
    background-color: #eef1e9;
}


.shooter-row.expanded::after {
    content: "−";
}


.shooter-details {
    background: #f7f7f3;
    border-bottom: 1px solid #d8d8d2;
}


.scorecard {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}


.scorecard h3 {
    margin: 0;
    color: #203f25;
    font-size: 25px;
}


.scorecard p {
    margin-top: 5px;
    color: #777;
    font-weight: bold;
}


.scorecard h4 {
    margin: 25px 0 10px;
    color: #203f25;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.score-header,
.score-line {
    display: grid;

    grid-template-columns:
        1fr
        100px
        70px
        100px;

    gap: 15px;

    align-items: center;

    padding: 12px 15px;
}


.score-header {
    background: #203f25;
    color: white;

    font-size: 11px;
    font-weight: bold;
}


.score-line {
    background: white;
    border-bottom: 1px solid #e5e5e5;
}


.score-line.counting {
    border-left: 4px solid #b68a3c;
}


.score-line.dropped {
    color: #999;
    background: #fafafa;
}


.score-line.championship {
    border-left: 4px solid #203f25;
    font-weight: bold;
}


.score-total {
    display: grid;

    grid-template-columns:
        1fr
        120px
        120px;

    gap: 15px;

    align-items: center;

    margin-top: 25px;

    padding: 20px;

    background: #203f25;
    color: white;

    font-weight: bold;

    border-radius: 5px;
}


@media (max-width: 600px) {

    .scorecard {
        padding: 20px 12px;
    }


    .score-header,
    .score-line {

        grid-template-columns:
            1fr
            60px
            50px
            70px;

        gap: 8px;

        padding: 10px 8px;

        font-size: 13px;
    }


    .score-total {

        grid-template-columns:
            1fr
            70px
            70px;

        gap: 8px;

        padding: 15px;

        font-size: 13px;
    }

}

/* =====================================================
   EVENT RESULTS PODIUM
===================================================== */

.event-result-row {
    transition:
        transform 0.15s ease,
        background-color 0.15s ease;
}

.event-result-row:hover {
    transform: translateX(3px);
}


/* 1st place */



/* 2nd place */



/* 3rd place */



/* Make podium scores stand out */

.event-result-row: strong,
.event-result-row: strong,
.event-result-row: strong {
    font-weight: 800;
}

/* =====================================================
   SHOOTER OF THE YEAR PODIUM
===================================================== */



/* 1st place */



/* 2nd place */




/* 3rd place */



/* Highlight scores */

.soy-result-row:strong,
.soy-result-row: strong,
.soy-result-row: strong {
    font-weight: 800;
}

/* =====================================================
   RESULTS PODIUM
===================================================== */

.podium-first {
    background: #fff8df !important;
    border-left: 5px solid #c9a227 !important;
}

.podium-second {
    background: #f3f3f3 !important;
    border-left: 5px solid #9b9b9b !important;
}

.podium-third {
    background: #f8eee5 !important;
    border-left: 5px solid #a66a3f !important;
}

.podium-first strong,
.podium-second strong,
.podium-third strong {
    font-weight: 800;
}

/* =========================================================
   EVENT DETAILS MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}


/* Modal background */

.event-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(10, 18, 11, 0.78);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}


/* Active modal */

.event-modal.active {
    opacity: 1;
    visibility: visible;
}


/* Modal panel */

.event-modal-panel {
    position: relative;

    width: 100%;
    max-width: 800px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 45px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    transform: translateY(20px) scale(0.98);

    transition:
        transform 0.25s ease;
}


.event-modal.active .event-modal-panel {
    transform: translateY(0) scale(1);
}


/* Close button */

.event-modal-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 42px;
    height: 42px;

    border: none;

    background: transparent;

    color: #203f25;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    border-radius: 50%;
}


.event-modal-close:hover {
    background: #f0f0eb;

    color: #b68a3c;
}


/* Modal heading */

.event-modal-panel h2 {
    margin: 5px 0 30px;

    color: #203f25;

    font-size: 38px;

    line-height: 1.15;
}


/* Detail grid */

.event-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-bottom: 30px;
}


.event-detail-item {
    padding: 20px;

    background: #f5f5f1;

    border-left: 4px solid #b68a3c;

    border-radius: 5px;
}


.event-detail-item span {
    display: block;

    margin-bottom: 5px;

    color: #b68a3c;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.event-detail-item strong {
    display: block;

    color: #203f25;

    font-size: 17px;
}


/* Information sections */

.event-detail-section {
    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid #e3e3df;
}


.event-detail-section h3 {
    margin: 0 0 8px;

    color: #203f25;

    font-size: 21px;
}


.event-detail-section p {
    margin: 0;

    color: #555;
}


/* Weather section */

.event-weather-placeholder {
    display: flex;

    align-items: center;

    gap: 18px;

    margin: 30px 0;

    padding: 22px;

    background: #e8e8e2;

    border-radius: 7px;
}


.weather-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    background: #203f25;

    color: white;

    border-radius: 50%;

    font-size: 24px;
}


.event-weather-placeholder strong {
    display: block;

    margin-bottom: 4px;

    color: #203f25;

    font-size: 18px;
}


.event-weather-placeholder p {
    margin: 0;

    color: #666;

    font-size: 14px;
}


/* Event card details button */

.event-details-button {
    border: none;

    background: transparent;

    padding: 0;

    font-family: inherit;

    font-size: inherit;

    cursor: pointer;
}


.event-details-button:hover {
    color: #b68a3c;
}


/* =========================================================
   EVENT MODAL MOBILE
========================================================= */

@media (max-width: 600px) {

    .event-modal {
        padding: 15px;
    }


    .event-modal-panel {
        max-height: 92vh;

        padding: 30px 22px;
    }


    .event-modal-panel h2 {
        padding-right: 35px;

        font-size: 30px;
    }


    .event-detail-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .event-detail-item {
        padding: 16px;
    }


    .event-weather-placeholder {
        align-items: flex-start;

        padding: 18px;
    }

}
/* =========================================================
   EVENT RESULTS LINK
========================================================= */

.event-results-link {
    display: inline-block;

    margin-top: 12px;

    color: #203f25;

    font-weight: 700;

    text-decoration: none;
}


.event-results-link:hover {
    color: #b68a3c;

    text-decoration: underline;
}
