/* ========================================
   PROGRAM FINDER 2025 - ENHANCED STYLES
   ======================================== */

/* ========================================
   LEGACY TORONTO SOCCER PAGE STYLES
   ======================================== */
.gmap:hover {
    color: #0000FF !important;
}

.regisnow {
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: bold;
}

.regisnow:hover {
    color: #fff !important;
}

.regispan {
    padding: 8px;
    background: #339b2b;
    border-radius: 6px;
    margin-top: 10px;
}

.year-section {
    text-align: center;
    padding-bottom: 0px;
}

.moreinfo {
    background: #161829 !important;
}

#moreinfo .modal-header {
    padding: 10px;
}

#moreinfo .modal-header .btn-close {
    box-shadow: none;
    width: 16px;
    height: 16px;
    background-size: 16px;
}

.accordion-button {
    border-radius: 0 !important;
    background-color: #e4e3e9;
    font-weight: 600;
}

.accordion-button span {
    padding-right: 10px;
}

.accordion-item {
    border: none;
    border-bottom: 2px solid #fff !important;
}

.accordion-body {
    background-color: #f3f2f8;
}

.accordion-button::after {
    content: "+  More Info";
    background-image: none !important;
    background-color: #f20000;
    color: #fff;
    width: auto;
    padding: 5px 10px;
    height: auto;
    font-size: 16px;
    font-weight: normal;
}

.accordion-button:not(.collapsed)::after {
    content: "Close";
    transform: none;
}

.accordion-button::before {
    width: 0;
    display: none;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #339b2b;
    position: absolute;
    content: "";
    left: 10px;
    bottom: -10px;
}

.accordion-button:not(.collapsed)::before {
    display: block;
}

.sub-heading {
    color: #339b2b;
}

.navbar-logo {
    margin-top: 15px
}



/* ========================================
   MOBILE PROGRAM DISPLAY
   ======================================== */
#mobile-view,
#mobile-records {
    display: block;
    visibility: visible;
}

#mobile-records .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

#mobile-records .col-lg-3,
#mobile-records .col-md-4,
#mobile-records .col-sm-6 {
    padding: 0.5rem;
}

#mobile-records .card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#mobile-records .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#mobile-records .card-body {
    padding: 1rem;
}

/* ========================================
   DISPLAY MODE STYLES
   ======================================== */

/* Modern View Styles */
.modern-container .program-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-container .program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Excel View Styles */
.excel-table {
    font-size: 0.8em;
    table-layout: fixed;
    width: 100%;
}

.excel-table td {
    vertical-align: top;
    padding: 0.3rem 0.2rem;
    border: 1px solid #dee2e6;
}

.excel-table .excel-name {
    word-wrap: break-word;
    white-space: normal;
    font-weight: 600;
    font-size: 0.85em;
    line-height: 1.2;
}

.excel-table th {
    font-size: 0.75em;
    padding: 0.4rem 0.2rem;
    font-weight: 700;
}

.btn-xs {
    font-size: 0.65em;
    padding: 0.15rem 0.3rem;
    border-radius: 0.2rem;
}

.excel-btn {
    min-width: 45px;
}

.excel-row {
    min-height: 40px;
}

.excel-row td {
    padding: 0.3rem 0.2rem;
    vertical-align: top;
}

.location-link {
    font-size: 0.85em;
    text-decoration: none;
}

.location-link:hover {
    text-decoration: underline;
}

/* Mobile program cards are now handled by #mobile-records .card above */

/* Display mode switcher improvements */
.display-mode-switcher .btn {
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .display-mode-switcher {
        justify-content: center !important;
    }

    .display-mode-switcher .btn {
        font-size: 1.0em;
        padding: 0.25rem 0.4rem;
    }

    .display-mode-switcher .btn i {
        display: none;
    }
}

/* ========================================
   PROGRAM FINDER INTERFACE
   ======================================== */
.program-finder-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
    opacity: 1;
    transform: translateX(0);
    transition: none;
}

/* Ensure all content within program finder is centered */
.program-finder-section .finder-step {
    text-align: center;
}

.program-finder-section .finder-step p {
    text-align: center;
    margin: 0 auto;
}

.program-finder-section .row {
    justify-content: center;
    margin: 0 auto;
}

/* Ensure buttons are centered within their containers */
.program-finder-section .age-selector,
.program-finder-section .location-selector,
.program-finder-section .category-selector,
.program-finder-section .day-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.program-finder-section .age-selector .row,
.program-finder-section .location-selector .row,
.program-finder-section .category-selector .row,
.program-finder-section .day-selector .row {
    justify-content: center;
    width: 100%;
}

/* Mobile specific centering */
@media (max-width: 768px) {
    .program-finder-section {
        margin: 0 auto;
        text-align: center;
        padding: 15px;
    }

    .program-finder-section .container-fluid,
    .program-finder-section .container {
        padding: 0;
        margin: 0 auto;
    }

    .program-finder-section .col-md-12 {
        padding: 0;
    }

    .program-finder-section .finder-step {
        margin-bottom: 20px;
    }
}

.finder-step {
    margin-bottom: 1rem;
}

.finder-step h6 {
    color: #495057;
    margin-bottom: 0.75rem;
}

/* Enhanced Age Button Styles */
.finder-age-btn {
    font-weight: 700;
    transition: all 0.2s ease;
    font-size: 1.0em !important;
    padding: 0.1rem !important;
    height: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    border-radius: 0.5rem !important;
    margin-bottom: 0 !important;
}

.finder-age-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.finder-age-btn .fw-bold {
    font-size: 1.0em !important;
    font-weight: 700 !important;
    line-height: 1;
}

.finder-age-btn .age-count {
    font-size: 0.8em !important;
    margin-top: 2px;
    font-weight: 600;
}

/* Category, Location, and Day Button Styles - Consistent with Age Buttons */
.finder-category-btn,
.finder-location-btn,
.finder-day-btn,
.finder-city-btn {
    font-size: 1.0em !important;
    padding: 0.3rem !important;
    /* Increased padding for text overflow */
    height: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 700;
    border-radius: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Extra padding for location buttons with two lines of text */
.finder-location-btn {
    padding: 0.4rem 0.2rem !important;
    height: 70px !important;
    /* Slightly taller for two lines */
}

/* Day buttons get thick pastel borders */
.finder-day-btn {
    border-width: 8px !important;
    /* Doubled border thickness for prominence */
}

.finder-day-btn:hover:not([data-selected="true"]) {
    background-color: #f8f9fa !important;
}

/* Day buttons with zero count - red text styling */
.finder-day-btn[data-count="0"],
.finder-day-btn.day-zero-count {
    color: #dc3545 !important;
}

.finder-day-btn[data-count="0"] *,
.finder-day-btn.day-zero-count * {
    color: #dc3545 !important;
    background-color: transparent !important;
    border: none !important;
}



/* ========================================
   CLEAR FILTERS BUTTON
   ======================================== */
.clear-filters-btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 1050 !important;
    display: none;
    /* Hidden by default */

    /* Fixed positioning at bottom center */
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 300px !important;
}

.clear-filters-btn:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4) !important;
    transform: translateX(-50%) translateY(-1px) !important;
}

.clear-filters-btn:active,
.clear-filters-btn:focus {
    transform: translateX(-50%) !important;
}

/* Responsive day button columns */
@media (min-width: 992px) {
    .day-responsive-col {
        flex: 0 0 calc(100% / 7) !important;
        max-width: calc(100% / 7) !important;
    }
}

/* ========================================
   PROGRAM CARD ENHANCEMENTS
   ======================================== */

/* Register Button Hover Effects */
a[href*="checkout2.php"]:hover {
    background-color: #006400 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.3) !important;
}

/* Enhanced Price and Time Styling */
.mobile-price {
    font-size: 1.1em !important;
    line-height: 1.2 !important;
}

/* Override red price text to be more appealing */
.mobile-price p {
    color: #28a745 !important;
    /* Green instead of red */
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 0.7em !important;
    /* Reduced by 30% */
}

.mobile-price strike {
    color: #6c757d !important;
    /* Muted gray for crossed out price */
    font-size: 0.9em !important;
}

.time-highlight {
    color: #0066CC !important;
    font-weight: bold !important;
    background-color: rgba(0, 102, 204, 0.1) !important;
    padding: 0.1em 0.3em !important;
    border-radius: 0.3em !important;
}

.finder-category-btn:hover,
.finder-location-btn:hover,
.finder-day-btn:hover,
.finder-city-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Category, Location, City, and Day button text styling - Consistent with Age Buttons */
.finder-category-btn .fw-bold,
.finder-location-btn .fw-bold,
.finder-day-btn .fw-bold,
.finder-city-btn .fw-bold {
    font-size: 1.0em !important;
    font-weight: 700 !important;
    line-height: 1;
}

/* Count badge styling in category/location/city/day buttons - Compact like age count */
.finder-category-btn .badge,
.finder-location-btn .badge,
.finder-day-btn .badge,
.finder-city-btn .badge {
    font-size: 0.8em !important;
    margin-top: 2px;
    font-weight: 600;
}



/* ========================================
   GENERIC BUTTON FILTER STYLES (LEGACY)
   ======================================== */
.button-filters-section {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.filter-group {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.filter-btn.active:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.filter-actions {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* Responsive button filters */
@media (max-width: 768px) {
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .button-filters-section {
        padding: 1rem;
    }

    .finder-age-btn {
        font-size: 1.1em !important;
        height: 55px !important;
    }

    .finder-age-btn .fw-bold {
        font-size: 1.2em !important;
    }
}