/* ============================================================
   Colorado Disc Dogs - style.css
   Built on Bootstrap 5. Only custom rules live here.
   ============================================================ */

/* ---- Variables ---- */
:root {
    --cdd-gold:    #fbc02d;
    --cdd-dark:    #111111;
    --cdd-red:     #FF0000;
    --cdd-gray:    #505050;
    --cdd-light:   #f5f5f5;
    --font-main:   'Poppins', sans-serif;
}

/* ---- Base ---- */
html {
    height: 100%;
}

html, body {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--cdd-gray);
    line-height: 1.6;
    background: #f0f0f0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body.home-page {
    background: url('../images/homebg.jpg') center center / cover fixed;
}

/* Non-homepage pages get a light gray background */
body:not(.home-page) {
    background: #f0f0f0;
}

/* Push footer to bottom */
.main-content {
    flex: 1;
}

a {
    color: var(--cdd-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--cdd-gold);
    margin-bottom: 1rem;
}

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

/* ---- Header top bar ---- */
.header-top-bar {
    background: var(--cdd-red);
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 18px;
    padding: 5px 0;
    line-height: 1.6;
}

/* ---- Navbar ---- */
.cdd-navbar {
    background-color: var(--cdd-gold);
    padding: 0;
    font-family: var(--font-main);
    z-index: 9999;
}

.cdd-navbar .navbar-brand img {
    max-height: 57px;
    width: auto;
    transition: 0.3s;
}

.cdd-navbar .nav-link {
    color: #111111 !important;
    font-size: 15px;
    font-weight: 600;
    padding: 1.75rem 0.9rem !important;
    transition: color 0.3s ease;
}

.cdd-navbar .nav-link:hover,
.cdd-navbar .nav-link:focus,
.cdd-navbar .nav-link.active {
    color: #ffffff !important;
}

/* Dropdown */
.cdd-navbar .dropdown-menu {
    background-color: var(--cdd-gold);
    border: none;
    border-top: 4px solid #111111;
    border-radius: 0;
    padding: 0;
    min-width: 190px;
    box-shadow: 0 4px 13px rgba(0,0,0,0.3);
}

.cdd-navbar .dropdown-item {
    color: #111111;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 500;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.cdd-navbar .dropdown-item:last-child {
    border-bottom: none;
}

.cdd-navbar .dropdown-item:hover,
.cdd-navbar .dropdown-item:focus {
    background-color: #111111;
    color: var(--cdd-gold);
}

/* Hamburger */
.cdd-navbar .navbar-toggler {
    border: 1px solid rgba(0,0,0,0.4);
    padding: 6px 10px;
    margin: 8px 0;
}

.cdd-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.cdd-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu */
@media (max-width: 991px) {
    .cdd-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.15);
        font-size: 15px;
    }

    .cdd-navbar .navbar-collapse {
        border-top: 1px solid rgba(0,0,0,0.2);
        padding-bottom: 0.5rem;
    }

    .cdd-navbar .dropdown-menu {
        border-top: none;
        border-left: 3px solid #111111;
        background-color: #f0b020;
        box-shadow: none;
        margin-left: 1rem;
    }
}

/* ---- Main content area ---- */
.main-content {
    padding: 20px 0 40px;
    background: #1a3a6b;
    flex: 1;
}

/* ---- Announcement bar ---- */
.announcement-bar {
    background: #0047AB;
    border-left: 4px solid var(--cdd-gold);
    color: #ffffff;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
}

.announcement-bar a {
    color: var(--cdd-gold);
    font-weight: 600;
}

.announcement-bar a:hover {
    color: #ffffff;
}

/* ---- Section titles ---- */
.section-title {
    position: relative;
    font-size: 20px;
    color: var(--cdd-gold);
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--cdd-gold);
}

/* ---- Tables (results, standings, schedule) ---- */
.cdd-table {
    width: 100%;
    color: #ffffff;
    border-collapse: collapse;
}

.cdd-table thead tr {
    background: var(--cdd-dark);
}

.cdd-table thead th {
    color: var(--cdd-gold);
    font-weight: 600;
    padding: 8px 10px;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--cdd-gold);
}

.cdd-table tbody tr {
    border-bottom: 1px solid #333;
}

.cdd-table tbody tr:nth-child(odd) {
    background: rgba(0,0,0,0.4);
}

.cdd-table tbody tr:nth-child(even) {
    background: rgba(30,30,30,0.4);
}

.cdd-table tbody tr:hover {
    background: rgba(251,192,45,0.1);
}

.cdd-table td {
    padding: 7px 10px;
    font-size: 14px;
    color: #dddddd;
}

.cdd-table td a {
    color: var(--cdd-gold);
}

.cdd-table td a:hover {
    color: #ffffff;
}

/* ---- Page header (replaces old breadcrumb/banner) ---- */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../images/mainmenu-bg.jpg') center center / cover;
    padding: 40px 0;
    margin-bottom: 0;
    border-bottom: 3px solid var(--cdd-gold);
}

.page-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.page-header h2 i {
    color: var(--cdd-gold);
    margin-right: 10px;
}

/* ---- Content panels (schedule, standings) ---- */
.content-panel {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-top: 3px solid var(--cdd-gold);
    padding: 24px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-panel.content-panel-light {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-top: 3px solid var(--cdd-gold);
    color: #222222;
}

.content-panel.content-panel-light h1,
.content-panel.content-panel-light h2,
.content-panel.content-panel-light h3,
.content-panel.content-panel-light h4,
.content-panel.content-panel-light h5,
.content-panel.content-panel-light h6 {
    color: #cc0000;
}

.content-panel.content-panel-light a {
    color: #cc0000;
}

.content-panel.content-panel-light a:hover {
    color: #333333;
}

.content-panel.content-panel-light .event-section-title {
    color: #cc0000;
    border-bottom-color: #cc0000;
}

.content-panel.content-panel-light p,
.content-panel.content-panel-light li {
    color: #333333;
}

/* ---- Data tables ---- */
.cdd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cdd-table {
    width: 100%;
    color: #222222;
    border-collapse: collapse;
    font-size: 14px;
}

.cdd-table thead tr {
    background: #0047AB;
}

.cdd-table thead th {
    color: var(--cdd-gold);
    font-weight: 600;
    padding: 10px 12px;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--cdd-gold);
    white-space: nowrap;
}

.cdd-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.cdd-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.cdd-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.cdd-table tbody tr:hover {
    background: #fff3cd;
}

.cdd-table td {
    padding: 8px 12px;
    color: #333333;
    vertical-align: middle;
}

.cdd-table td a {
    color: #0047AB;
    transition: color 0.2s;
}

.cdd-table td a:hover {
    color: var(--cdd-gold);
}

.cdd-table tbody tr.event-canceled td,
.cdd-table tbody tr.event-canceled td a {
    color: #888888;
    text-decoration: line-through;
}

.cdd-table tbody tr.event-future td {
    color: #888888;
    font-style: italic;
}

.table-footer-link {
    text-align: right;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

.table-footer-link a {
    color: var(--cdd-gold);
}

.table-footer-link a:hover {
    color: #ffffff;
}

/* ---- Top dogs section ---- */
.top-dogs-section {
    background: rgba(0,0,0,0.5);
    padding: 30px 0;
    margin-top: 20px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--cdd-gold);
    color: #111111;
    padding: 40px 0 0;
    margin-top: 40px;
    font-size: 14px;
}

.site-footer .footer-title {
    color: #111111;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.2);
    position: relative;
}

.site-footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: #111111;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    padding: 3px 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.site-footer .footer-links li:last-child {
    border-bottom: none;
}

.site-footer .footer-links a {
    color: #222222;
    font-size: 14px;
    transition: color 0.3s;
}

.site-footer .footer-links a:hover {
    color: #000000;
    font-weight: 600;
}

.footer-bottom {
    background: #0047AB;
    color: #ffffff;
    text-align: center;
    padding: 14px 0;
    margin-top: 30px;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--cdd-gold);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ---- Back to top ---- */
#return-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: var(--cdd-gold);
    color: var(--cdd-dark);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: none;
    cursor: pointer;
    z-index: 999;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

#return-to-top:hover {
    background: #ffffff;
}

/* ---- Results division panels ---- */
.results-div-title {
    color: var(--cdd-gold);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.results-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #cccccc;
}

.results-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Results tabs ---- */
.results-tabbar {
    margin-bottom: 0;
    flex-wrap: wrap;
    display: flex;
}

.results-tabbar .w3-button {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    color: #cccccc;
    transition: background 0.2s, color 0.2s;
}

.results-tabbar .w3-button:hover {
    background: #333 !important;
    color: var(--cdd-gold) !important;
}

.results-tabbar .w3-red {
    background: var(--cdd-red) !important;
    color: #ffffff !important;
}

.results-content {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ---- Event page ---- */
.event-info-card {
    background: #1a3a6b;
    border: 1px solid #0047AB;
    border-top: 3px solid var(--cdd-gold);
    padding: 20px;
    color: #ffffff;
}

.event-info-card p {
    margin: 8px 0;
    font-size: 14px;
    color: #ffffff;
}

.event-info-card i {
    color: var(--cdd-gold);
    margin-right: 6px;
}

.event-info-name {
    color: var(--cdd-gold);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-section-title {
    color: var(--cdd-gold);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid var(--cdd-gold);
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.event-details-block {
    background: #1a3a6b;
    border: 1px solid #0047AB;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 16px;
}

.event-details-block a {
    color: var(--cdd-gold);
}

.event-details-block a:hover {
    color: #ffffff;
}

/* Definition list for event details */
.event-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 12px;
    margin: 0;
}

.event-dl dt {
    color: var(--cdd-gold);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding-top: 2px;
}

.event-dl dd {
    color: #ffffff;
    margin: 0;
}

@media (max-width: 575px) {
    .event-dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .event-dl dt {
        margin-top: 10px;
    }
}

/* ---- Points guide tabs ---- */
.nav-tabs {
    border-bottom: 2px solid var(--cdd-gold);
}

.nav-tabs .nav-link {
    color: #333333;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
}

.nav-tabs .nav-link:hover {
    color: #0047AB;
    border-color: #dee2e6 #dee2e6 transparent;
}

.nav-tabs .nav-link.active {
    color: #111111;
    background: var(--cdd-gold);
    border-color: var(--cdd-gold);
    font-weight: 600;
}

.points-tab-content {
    padding: 20px 0 10px;
}

/* ---- Registration form ---- */
.reg-form-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-top: 4px solid var(--cdd-gold);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.reg-form-header {
    background: #1a3a6b;
    color: #ffffff;
    padding: 16px 20px;
}

.reg-form-header h4 {
    color: var(--cdd-gold);
    margin: 0 0 4px;
    font-size: 18px;
}

.reg-form-header p {
    color: #ccddff;
    margin: 0;
    font-size: 14px;
}

.reg-form-body {
    padding: 20px;
}

.reg-form-footer {
    padding: 16px 20px;
    background: #f5f5f5;
    border-top: 1px solid #dddddd;
    text-align: right;
}

.handler-entry {
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--cdd-gold);
    padding: 14px;
    margin-bottom: 16px;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
}

.handler-label {
    color: #1a3a6b;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ---- PayPal section ---- */
.paypal-section {
    background: #f9f9f9;
    border: 1px solid #dddddd;
    border-left: 4px solid var(--cdd-gold);
    padding: 20px;
    margin-top: 20px;
}

.paypal-section p {
    color: #444444;
    margin-bottom: 16px;
}

#paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

/* ---- Contact page ---- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding: 14px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #0047AB;
    flex-shrink: 0;
}

.contact-list li strong {
    min-width: 200px;
    color: #333333;
}

.contact-list li a {
    color: #0047AB;
}

.contact-list li a:hover {
    color: #cc0000;
}

@media (max-width: 575px) {
    .contact-list li {
        flex-wrap: wrap;
    }
    .contact-list li strong {
        min-width: unset;
    }
}

/* ---- Readonly form fields ---- */
input[readonly] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}
.honors-subtitle {
    font-size: 14px;
    color: #555555;
    margin-bottom: 8px;
    font-style: italic;
}
.text-gold   { color: var(--cdd-gold) !important; }
.text-white  { color: #ffffff !important; }
.bg-dark-cdd { background-color: var(--cdd-dark); }

/* ---- Responsive helpers ---- */
@media (max-width: 767px) {
    .main-content {
        padding: 15px 0 30px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}