/* ============================================================
   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, body {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--cdd-gray);
    line-height: 1.6;
    background: #000000;
}

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

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-dark);
    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: #ffffff !important;
    font-size: 15px;
    font-weight: 400;
    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: var(--cdd-gold) !important;
}

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

.cdd-navbar .dropdown-item {
    color: #ffffff;
    font-size: 14px;
    font-family: var(--font-main);
    padding: 10px 16px;
    border-bottom: 1px solid #222222;
    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: #1a1a1a;
    color: var(--cdd-gold);
}

/* Hamburger */
.cdd-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,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(255,255,255,0.9)' 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 #222;
        font-size: 15px;
    }

    .cdd-navbar .navbar-collapse {
        border-top: 1px solid #222;
        padding-bottom: 0.5rem;
    }

    .cdd-navbar .dropdown-menu {
        border-top: none;
        border-left: 3px solid var(--cdd-gold);
        background-color: #1a1a1a;
        box-shadow: none;
        margin-left: 1rem;
    }
}

/* ---- Main content area ---- */
.main-content {
    padding: 20px 0 40px;
}

/* ---- Announcement bar ---- */
.announcement-bar {
    background: rgba(0,0,0,0.6);
    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: rgba(0, 0, 0, 0.65);
    border: 1px solid #222;
    border-top: 3px solid var(--cdd-gold);
    padding: 20px;
    height: 100%;
}

.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: #ffffff;
    border-collapse: collapse;
    font-size: 14px;
}

.cdd-table thead tr {
    background: rgba(0, 0, 0, 0.8);
}

.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 #2a2a2a;
    transition: background 0.2s;
}

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

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

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

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

.cdd-table td a {
    color: #dddddd;
    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-dark);
    color: #afb0b2;
    padding: 40px 0 0;
    margin-top: 40px;
    font-size: 14px;
}

.site-footer .footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid #333;
    position: relative;
}

.site-footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--cdd-gold);
}

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

.site-footer .footer-links li {
    padding: 3px 0;
    border-bottom: 1px solid #222;
}

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

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

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

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

/* ---- 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: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border: 1px solid #222;
}

/* ---- Event page ---- */
.event-info-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-top: 3px solid var(--cdd-gold);
    padding: 20px;
    color: #dddddd;
}

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

.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: rgba(0, 0, 0, 0.4);
    border: 1px solid #222;
    padding: 16px 20px;
    color: #dddddd;
    font-size: 14px;
}

.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: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding-top: 2px;
}

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

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

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

/* ---- Utility ---- */
.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; }
}