/* Main Styles for Athletics Results Page */
:root {
    --primary-color: #0056b3;
    --primary-light: #4d94ff;
    --primary-dark: #003366;
    --secondary-color: #e63946;
    --secondary-light: #ff6b6b;
    --secondary-dark: #9e2a2b;
    --accent-color: #ffd700;
    --accent-light: #ffe566;
    --accent-dark: #cc9900;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-100);
    overflow-x: hidden;
    color: var(--gray-800);
}

.athletics-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0 10px;
    position: relative;
}

.athletics-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 10;
}

/* Header Styles */
header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header h2 {
    color: var(--gray-300) !important;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    header h1:after {
        width: 80px;
        height: 3px;
    }
}

/* Age Category Tabs */
.age-category-tabs {
    margin-bottom: 30px;
}

/* Gender Tabs */
.gender-tabs {
    margin-bottom: 15px;
}

.age-category-tab {
    display: block;
    background-color: var(--gray-100);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.age-category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.age-category-tab:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    border-color: var(--primary-light);
}

.age-category-tab.active {
    background-color: transparent;
    color: white;
    border-color: var(--accent-color);
}

.age-category-tab.active::before {
    opacity: 1;
}

.age-category-tab.active:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-light);
}

/* Gender Section Styles */
.filter-section {
    background: linear-gradient(145deg, var(--gray-50), var(--gray-100));
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0) 70%);
    z-index: 0;
}

.filter-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0) 70%);
    z-index: 0;
}

.filter-section:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.filter-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 12px;
    position: relative;
}

.filter-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.filter-title i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.gender-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.gender-option {
    width: 100%;
}

/* Gender Tab Styles */
.gender-tab {
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gender-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.gender-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 18px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.gender-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    z-index: -1;
    opacity: 0.8;
}

.gender-tab i {
    font-size: 1.8rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.gender-tab:hover .gender-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gender-tab:hover i {
    transform: scale(1.25);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.gender-label {
    flex: 1;
    text-align: right;
}

.gender-name {
    display: block;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 8px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gender-count {
    display: inline-block;
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 3px 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.gender-tab:hover .gender-name {
    transform: translateX(-5px);
}

.gender-tab:hover .gender-count {
    transform: translateX(-5px);
    background-color: rgba(255, 255, 255, 0.8);
}

.active-indicator {
    margin-right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite ease-in-out;
}

.active-indicator i {
    font-size: 1.2rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.gender-tab:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.gender-tab.active {
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gender-tab.active::before {
    opacity: 1;
}

.gender-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.gender-tab:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Male Tab Styling */
.male-tab {
    background: linear-gradient(145deg, rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0.15));
    color: var(--primary-dark);
    border: 2px solid rgba(0, 123, 255, 0.2);
}

.male-tab .gender-icon {
    border: 3px solid var(--primary-color);
    background: radial-gradient(circle, white 60%, rgba(0, 123, 255, 0.1) 100%);
}

.male-tab::before {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.male-tab .gender-count {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-dark);
}

.male-tab:hover {
    border-color: var(--primary-color);
}

.male-tab i {
    color: var(--primary-color);
}

.male-tab.active .gender-icon {
    background-color: white;
}

.male-tab.active i {
    color: var(--primary-color);
}

/* Female Tab Styling */
.female-tab {
    background: linear-gradient(145deg, rgba(230, 57, 70, 0.05), rgba(230, 57, 70, 0.15));
    color: var(--secondary-dark);
    border: 2px solid rgba(230, 57, 70, 0.2);
}

.female-tab .gender-icon {
    border: 3px solid var(--secondary-color);
    background: radial-gradient(circle, white 60%, rgba(230, 57, 70, 0.1) 100%);
}

.female-tab::before {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.female-tab .gender-count {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--secondary-dark);
}

.female-tab:hover {
    border-color: var(--secondary-color);
}

.female-tab i {
    color: var(--secondary-color);
}

.female-tab.active .gender-icon {
    background-color: white;
}

.female-tab.active i {
    color: var(--secondary-color);
}

/* Reset Filter Container */
.reset-filter-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}

.reset-filter-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-300), transparent);
}

/* Reset Filter Link */
.reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.reset-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.reset-filter:hover {
    background: linear-gradient(145deg, var(--gray-200), var(--gray-300));
    color: var(--gray-900);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.reset-filter:hover::before {
    transform: translateX(100%);
}

.reset-filter i {
    font-size: 1rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.reset-filter:hover i {
    transform: rotate(90deg);
    color: var(--gray-800);
}

.age-category-tab i {
    font-size: 1.3rem;
    margin-left: 10px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .age-category-tab {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .age-category-tab i {
        font-size: 1.1rem;
    }
    
    .gender-tab {
        font-size: 0.95rem;
    }
    
    .gender-tab i {
        font-size: 1rem;
    }
}

/* Filter Section Styles */
.filter-section {
    background: linear-gradient(to bottom, #ffffff, var(--gray-100));
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.filter-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.filter-section:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.filter-section:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.filter-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
}

.filter-title i {
    margin-left: 10px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Custom Select Styling */
.form-select {
    height: 50px;
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    padding: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    background-color: white;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230056b3' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-position: right 15px center;
    background-size: 16px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
}

/* Dropdown animations */
.form-select::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(77, 148, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
    pointer-events: none;
}

.active-filter .form-select {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15);
}

.option-selected {
    animation: selectPulse 0.5s ease;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
    outline: none;
}

.form-select:hover {
    border-color: var(--primary-light);
    background-color: var(--gray-50);
}

/* Custom Select Options Styling (works in some browsers) */
.form-select option {
    padding: 10px;
    font-weight: 500;
}

.form-select option:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

@media (max-width: 768px) {
    .filter-section {
        margin-bottom: 0;
        padding: 15px;
    }
    
    .filter-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .filter-title i {
        font-size: 1.1rem;
    }
    
    .form-select {
        height: 45px;
        font-size: 0.95rem;
        padding: 0 12px;
    }
}

/* Results Container Styles */
.results-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-title {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

@media (max-width: 576px) {
    .results-container {
        padding: 15px 10px;
    }
    
    .results-title {
        font-size: 1.2rem;
    }
}

/* Competition Card Styles */
.competition-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.competition-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
}

.competition-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.competition-card:hover::after {
    opacity: 1;
}

.competition-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 18px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.competition-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.competition-card:hover .competition-header::before {
    opacity: 1;
    transform: scale(1);
}

.competition-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.competition-body {
    padding: 15px;
    flex-grow: 1;
}

.competition-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.competition-info i {
    color: var(--secondary-color);
    margin-left: 8px;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* Competitor Info Styles */
.competitor-info {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: var(--gray-100);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.competitor-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 5px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.competitor-info:hover {
    transform: translateX(-8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.competitor-info:last-child {
    margin-bottom: 0;
}

.competitor-info i {
    font-size: 1.3rem;
    margin-left: 12px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.competitor-name {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
    color: var(--gray-800);
    transition: color 0.3s ease;
}

.competitor-result {
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    text-align: center;
}

.medal-gold {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-right: none;
}

.medal-gold::before {
    background-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.medal-gold:hover {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.07));
}

.medal-gold i {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.medal-gold .competitor-name {
    color: var(--dark-color);
}

.medal-silver {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border-right: none;
}

.medal-silver::before {
    background-color: #C0C0C0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.medal-silver:hover {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.07));
}

.medal-silver i {
    color: #C0C0C0;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.5);
}

.medal-bronze {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    border-right: none;
}

.medal-bronze::before {
    background-color: #CD7F32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.medal-bronze:hover {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.07));
}

.medal-bronze i {
    color: #CD7F32;
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
}

@media (max-width: 768px) {
    .competitor-name {
        font-size: 0.85rem;
    }
    
    .competitor-result {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .competitor-info i {
        font-size: 1rem;
    }
}

.competition-footer {
    background-color: #f9f9f9;
    padding: 15px;
    text-align: center;
    margin-top: auto;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 86, 179, 0.3);
}

.btn-view-results {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-view-results::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-view-results:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-view-results:hover::after {
    opacity: 1;
}

.btn-view-results:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(230, 57, 70, 0.3);
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.5s ease-out forwards;
    max-width: 100%;
    margin: 0 auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ffeb3b, #ff9800, #f44336);
    z-index: 10;
}

.modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==');
    opacity: 0.1;
    z-index: 1;
}

.modal-title {
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    color: #ffffff;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-title i {
        font-size: 1.3rem;
        margin-left: 8px;
    }
}

.modal-title i {
    margin-left: 15px;
    font-size: 1.6rem;
    color: #ffeb3b;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: titleIconPulse 2s infinite ease-in-out;
}

@keyframes titleIconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.modal-actions {
    display: flex;
    align-items: center;
}

.btn-print {
    background: linear-gradient(145deg, #ffeb3b, #ffc107);
    color: #212121;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-print::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-print:hover {
    background: linear-gradient(145deg, #ffc107, #ff9800);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    color: #000000;
}

.btn-print:hover::before {
    transform: translateX(100%);
}

.btn-print:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-print i {
    font-size: 1.1rem;
    animation: printIconSpin 5s infinite linear;
    transform-origin: center;
}

@keyframes printIconSpin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modal-body {
    padding: 30px;
    background: linear-gradient(145deg, #f5f7fa, #e4e7eb);
    position: relative;
    z-index: 1;
}

.modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMSIgZmlsbD0icmdiYSgwLDAsMCwwLjA1KSIvPjwvc3ZnPg==');
    z-index: -1;
    opacity: 0.5;
}

/* Competition Banner Styles */
.competition-banner {
    background: linear-gradient(145deg, #e8f5fe, #fff4f4);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
    overflow: hidden;
    animation: bannerFadeIn 0.8s ease-out forwards;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.competition-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.1) 0%, rgba(26, 35, 126, 0) 70%);
    z-index: 0;
}

.competition-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.competition-info-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competition-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .competition-name {
        font-size: 1.4rem;
        gap: 10px;
    }
    
    .competition-name i {
        font-size: 1.4rem;
    }
}

.competition-name i {
    color: #1a237e;
    font-size: 1.8rem;
    background: linear-gradient(145deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: nameIconFloat 3s ease-in-out infinite;
}

@keyframes nameIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.competition-meta {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .competition-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 8px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .meta-item {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .meta-item i {
        font-size: 1.1rem;
        width: 25px;
        height: 25px;
    }
}

.meta-item:hover {
    transform: translateX(-5px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.meta-item i {
    font-size: 1.3rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(145deg, #1a237e, #3949ab);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Winner Cards */
.medal-summary {
    margin-top: 20px;
}

.winner-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .winner-card {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.medal-badge {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.medal-badge i {
    font-size: 2.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .medal-badge i {
        font-size: 2rem;
    }
}

.medal-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.winner-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000000;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .winner-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
}

.winner-team {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.winner-result {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .winner-result {
        font-size: 1.2rem;
        padding: 6px 15px;
    }
}

/* Gold Winner */
.gold-winner {
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
    border-top: 3px solid #FFD700;
}

.gold-winner .medal-badge i {
    color: #FFD700;
}

.gold-winner .medal-badge span {
    background-color: rgba(255, 215, 0, 0.15);
    color: #B8860B;
}

.gold-winner .winner-result {
    background-color: rgba(255, 215, 0, 0.2);
    color: #B8860B;
}

.results-table tr.medal-gold {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.results-table tr.medal-gold td {
    font-weight: 800;
    font-size: 1.3rem;
    color: #000000;
}

.results-table tr.medal-gold:hover {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

/* Silver Winner */
.silver-winner {
    background: linear-gradient(to bottom, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.02));
    border-top: 3px solid #C0C0C0;
}

.silver-winner .medal-badge i {
    color: #C0C0C0;
}

.silver-winner .medal-badge span {
    background-color: rgba(192, 192, 192, 0.15);
    color: #808080;
}

.silver-winner .winner-result {
    background-color: rgba(192, 192, 192, 0.2);
    color: #808080;
}

.results-table tr.medal-silver {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.05));
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.1);
}

.results-table tr.medal-silver td {
    font-weight: 800;
    font-size: 1.25rem;
    color: #000000;
}

.results-table tr.medal-silver:hover {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.25), rgba(192, 192, 192, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.15);
}

/* Bronze Winner */
.bronze-winner {
    background: linear-gradient(to bottom, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.02));
    border-top: 3px solid #CD7F32;
}

.bronze-winner .medal-badge i {
    color: #CD7F32;
}

.bronze-winner .medal-badge span {
    background-color: rgba(205, 127, 50, 0.15);
    color: #A0522D;
}

.bronze-winner .winner-result {
    background-color: rgba(205, 127, 50, 0.2);
    color: #A0522D;
}

.results-table tr.medal-bronze {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.1);
}

.results-table tr.medal-bronze td {
    font-weight: 800;
    font-size: 1.25rem;
    color: #000000;
}

.results-table tr.medal-bronze:hover {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.25), rgba(205, 127, 50, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.15);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    animation: tableAppear 0.8s ease-out forwards;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .results-table {
        margin-top: 20px;
        border-radius: 10px;
        min-width: 650px; /* Ensure table doesn't shrink too much on mobile */
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px; /* Negative margin to allow full-width scrolling */
        padding: 0 10px;
        width: calc(100% + 20px);
    }
}

@keyframes tableAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-table tbody td {
    font-weight: 600;
    padding: 20px 25px;
    color: #000000;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.results-table th, .results-table td {
    padding: 18px 25px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.3rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .results-table th, .results-table td {
        padding: 10px 12px;
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .results-table tr.medal-gold td,
    .results-table tr.medal-silver td,
    .results-table tr.medal-bronze td {
        font-size: 1.1rem;
    }
}

.results-table th {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

.results-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #ffeb3b, #ff9800);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.results-table:hover th::after {
    transform: scaleX(1);
    transform-origin: left;
}

.medal-gold {
    color: #000000;
    font-weight: 800;
    font-size: 1.4rem;
}

.medal-silver {
    color: #000000;
    font-weight: 800;
    font-size: 1.35rem;
}

.medal-bronze {
    color: #000000;
    font-weight: 800;
    font-size: 1.35rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-section {
        margin-bottom: 15px;
    }
    
    .competition-card {
        margin-bottom: 20px;
    }
    
    .results-table th, .results-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 15px 10px;
    }
    
    .competition-card .competition-header h4 {
        font-size: 1.1rem;
    }
    
    .competition-info {
        font-size: 0.9rem;
    }
    
    .btn-view-results {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .results-table th, .results-table td {
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(26, 26, 46, 0.9));
    color: white;
    padding: 30px 0 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

.copyright-text {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.developer-info {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--gray-300);
}

.developer-email {
    color: var(--accent-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(255, 215, 0, 0.1);
}

.developer-email:hover {
    color: #fff;
    background-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

.copyright-year {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--gray-400);
}

@media (max-width: 576px) {
    .footer {
        padding: 15px 0;
    }
    
    .copyright-text {
        font-size: 0.95rem;
    }
    
    .developer-info {
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .athletics-bg {
        background: none;
        padding: 0;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .filters, .btn-view-results, .modal-header, .btn-close, .btn-print {
        display: none !important;
    }
    
    header h1, header h2 {
        color: #000 !important;
        text-shadow: none;
    }
    
    .footer {
        background-color: transparent;
        color: #000;
        border-top: 1px solid #ddd;
    }
    
    .copyright-text, .developer-email {
        color: #000;
    }
    
    .modal {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 0;
        overflow: visible !important;
    }
    
    .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }
    
    .print-header {
        display: block !important;
        margin-bottom: 20px;
    }
    
    .print-logo {
        max-width: 100px;
        height: auto;
    }
    
    .d-none {
        display: block !important;
    }
    
    .competition-banner {
        display: none;
    }
    
    .winner-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .results-table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .results-table th, .results-table td {
        border: 1px solid #ddd;
    }
}
