/* Sports Fiesta Portal – Application Styles */

body {
    font-family: "Poppins", sans-serif;
    color: var(--aq-text);
    background-color: var(--aq-bg);
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.site-header {
    background-color: var(--aq-green);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.navbar-aq {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-aq .navbar-brand {
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
    gap: 0.75rem;
}

.navbar-aq .navbar-brand:hover,
.navbar-aq .navbar-brand:focus {
    color: #fff;
}

.navbar-aq .brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.navbar-aq .brand-text {
    line-height: 1.2;
}

.navbar-aq .brand-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.navbar-aq .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    transition: color var(--aq-transition), background-color var(--aq-transition);
}

.navbar-aq .nav-link:hover,
.navbar-aq .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.navbar-aq .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
}

.navbar-aq .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.65rem;
}

.navbar-aq .navbar-toggler-icon {
    filter: invert(1);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
    font-weight: 500;
    border-radius: 10px;
    transition: transform var(--aq-transition), box-shadow var(--aq-transition),
        background-color var(--aq-transition), border-color var(--aq-transition),
        color var(--aq-transition);
}

.btn-primary {
    background-color: var(--aq-green);
    border-color: var(--aq-green);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--aq-green-dark);
    border-color: var(--aq-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--aq-green-rgb), 0.3);
}

.btn-outline-gold {
    color: var(--aq-gold);
    border: 2px solid var(--aq-gold);
    background-color: transparent;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus,
.btn-outline-gold:active {
    color: var(--aq-text);
    background-color: var(--aq-gold);
    border-color: var(--aq-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--aq-gold-rgb), 0.25);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */

.card {
    border: none;
    border-radius: var(--aq-radius);
    box-shadow: var(--aq-shadow);
    transition: transform var(--aq-transition), box-shadow var(--aq-transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aq-shadow-hover);
}

/* ------------------------------------------------------------------ */
/* Hero Section                                                        */
/* ------------------------------------------------------------------ */

.hero-section {
    background: linear-gradient(
        160deg,
        var(--aq-green) 0%,
        #146b3d 55%,
        var(--aq-green-dark) 100%
    );
    color: #fff;
}

.hero-logo {
    height: 88px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
    color: var(--aq-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-section .hero-welcome {
    max-width: 540px;
    opacity: 0.92;
    line-height: 1.7;
}

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* ------------------------------------------------------------------ */
/* Page Sections                                                       */
/* ------------------------------------------------------------------ */

.page-section {
    min-height: 50vh;
}

.page-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.auth-card .form-control {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border-color: rgba(46, 46, 46, 0.15);
}

.auth-card .form-control:focus {
    border-color: var(--aq-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--aq-light-rgb), 0.35);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
    background-color: #fff;
    border-top: 1px solid rgba(46, 46, 46, 0.08);
    margin-top: auto;
}

.site-footer .footer-org {
    font-weight: 600;
    color: var(--aq-green);
}

.site-footer .footer-event {
    color: var(--aq-text);
    font-weight: 500;
}

.site-footer .footer-powered {
    color: rgba(46, 46, 46, 0.65);
    font-size: 0.875rem;
}

.site-footer .footer-unit {
    color: var(--aq-gold);
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Utilities                                                           */
/* ------------------------------------------------------------------ */

.text-aq-green {
    color: var(--aq-green) !important;
}

.text-aq-gold {
    color: var(--aq-gold) !important;
}

.error-code {
    line-height: 1;
    opacity: 0.9;
}

/* ------------------------------------------------------------------ */
/* Registration Wizard                                                   */
/* ------------------------------------------------------------------ */

.wizard-progress-bar {
    height: 8px;
    background-color: rgba(46, 46, 46, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--aq-green), var(--aq-light));
    border-radius: 999px;
    transition: width var(--aq-transition);
}

.wizard-steps {
    gap: 0.5rem;
}

.wizard-step {
    color: rgba(46, 46, 46, 0.45);
    transition: color var(--aq-transition);
}

.wizard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(46, 46, 46, 0.15);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    background-color: #fff;
}

.wizard-step-label,
.wizard-step-label-short {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

.wizard-step.active {
    color: var(--aq-green);
}

.wizard-step.active .wizard-step-number {
    border-color: var(--aq-gold);
    background-color: var(--aq-gold);
    color: var(--aq-text);
}

.wizard-step.completed {
    color: var(--aq-green);
}

.wizard-step.completed .wizard-step-number {
    border-color: var(--aq-green);
    background-color: var(--aq-green);
    color: #fff;
}

.wizard-panel[hidden] {
    display: none !important;
}

.wizard-nav {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
}

.member-card .member-remove-btn:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.review-list dt {
    font-weight: 500;
}

.review-list dd {
    margin-bottom: 0.75rem;
}

.review-member-card {
    border: 1px solid rgba(46, 46, 46, 0.08);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background-color: rgba(248, 249, 246, 0.75);
}

.wizard-error-summary {
    border-radius: 10px;
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border-color: rgba(46, 46, 46, 0.15);
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--aq-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--aq-light-rgb), 0.35);
}

.auth-card .form-control.is-invalid,
.auth-card .form-select.is-invalid {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
    padding-right: calc(1.5em + 1.3rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.25rem) center;
    background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}

.auth-card .form-control.is-invalid:focus,
.auth-card .form-select.is-invalid:focus {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.auth-card .invalid-feedback {
    display: none;
    font-size: 0.875rem;
}

.auth-card .is-invalid ~ .invalid-feedback {
    display: block;
}

@media (max-width: 767.98px) {
    .wizard-nav .btn {
        width: 100%;
    }

    .wizard-nav .d-flex.gap-2 {
        width: 100%;
        flex-direction: column;
    }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
    .navbar-aq .navbar-collapse {
        padding-top: 0.75rem;
    }

    .navbar-aq .nav-link {
        padding: 0.6rem 0.75rem !important;
    }
}

@media (max-width: 767.98px) {
    .hero-logo {
        height: 72px;
    }

    .display-4 {
        font-size: 2.25rem;
    }

    .hero-section .d-flex.flex-wrap.gap-3 .btn-lg {
        width: 100%;
    }

    .navbar-aq .brand-title {
        font-size: 0.95rem;
    }

    .navbar-aq .brand-logo {
        height: 38px;
    }
}

/* ------------------------------------------------------------------ */
/* Administration portal                                               */
/* ------------------------------------------------------------------ */

.admin-section {
    min-height: 60vh;
}

.admin-sport-card-link {
    color: inherit;
    display: block;
}

.admin-sport-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-sport-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
}

.admin-sport-card-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.admin-sport-card-info {
    min-width: 0;
}

.admin-sport-card-name {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--aq-green, #0F5A32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        rgba(15, 90, 50, 0.06) 0%,
        rgba(226, 165, 43, 0.08) 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #495057;
}

.admin-legend-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.875rem;
}

.admin-legend-item--male i {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.admin-legend-item--female i {
    background: rgba(214, 51, 132, 0.15);
    color: #d63384;
}

.admin-legend-item--pending i {
    background: rgba(255, 193, 7, 0.22);
    color: #997404;
}

.admin-legend-item--approved i {
    background: rgba(25, 135, 84, 0.15);
    color: #146c43;
}

.admin-sport-card-link:hover .admin-sport-card,
.admin-sport-card-link:focus-visible .admin-sport-card {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
    border-color: var(--aq-gold, #c9a227);
}

.admin-sport-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 80, 48, 0.08);
    color: var(--aq-green, #005030);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-stat-list dt,
.admin-stat-list dd {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.admin-sport-stat-total {
    line-height: 1;
}

.admin-sport-stat-total-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--aq-green, #005030);
}

.admin-sport-stat-total-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.admin-sport-stat-bubbles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-sport-stat-bubbles--compact {
    grid-template-columns: repeat(2, 1fr);
}

.admin-stat-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    line-height: 1;
}

.admin-stat-bubble i {
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.admin-stat-bubble-value {
    font-size: 1.0625rem;
    font-weight: 700;
}

.admin-stat-bubble--male {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.admin-stat-bubble--female {
    background: rgba(214, 51, 132, 0.12);
    color: #d63384;
}

.admin-stat-bubble--pending {
    background: rgba(255, 193, 7, 0.2);
    color: #997404;
}

.admin-stat-bubble--approved {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

@media (max-width: 575.98px) {
    .admin-sport-card-body {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-sport-stat-bubbles {
        align-self: center;
    }
}

@media (min-width: 576px) and (max-width: 1399.98px) {
    .admin-stat-bubble {
        width: 3rem;
        height: 3rem;
    }

    .admin-stat-bubble-value {
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    .admin-stat-bubble {
        width: 3.5rem;
        height: 3.5rem;
    }

    .admin-stat-bubble i {
        font-size: 0.9375rem;
    }

    .admin-stat-bubble-value {
        font-size: 1.125rem;
    }
}

.admin-verify-toggle {
    min-width: 6.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.admin-verify-toggle--pending {
    background: #fff;
    border-color: var(--aq-gold, #c9a227);
    color: var(--aq-green, #005030);
}

.admin-verify-toggle--pending:hover:not(:disabled) {
    background: rgba(201, 162, 39, 0.12);
}

.admin-verify-toggle--verified {
    background: rgba(25, 135, 84, 0.12);
    border-color: #198754;
    color: #146c43;
}

.admin-verify-toggle--verified:hover:not(:disabled) {
    background: rgba(25, 135, 84, 0.2);
}

.admin-verify-toggle.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.admin-verify-badge {
    display: inline-block;
    min-width: 6.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
}

.admin-verify-badge--locked {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

.admin-verify-badge--muted {
    background: rgba(0, 0, 0, 0.05);
    color: #6c757d;
}

.admin-table th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    white-space: nowrap;
}

.admin-approved-panel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(15, 90, 50, 0.06) 100%);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.admin-approved-panel-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.15);
    color: #146c43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-approved-panel-title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #146c43;
}

.admin-approved-panel-text {
    color: #495057;
    font-size: 0.9375rem;
}

.admin-approved-panel-meta dt,
.admin-approved-panel-meta dd {
    font-size: 0.875rem;
}

.admin-list-filters .form-control,
.admin-list-filters .form-select {
    font-size: 0.9375rem;
}

@media print {
    .no-print,
    .admin-section .container > .admin-approved-panel,
    header,
    footer,
    .alert {
        display: none !important;
    }
}
