/* ==========================================
   SPORTS SECTION STYLING
=========================================== */
.sports-section {
    padding: 100px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading span {
    color: var(--primary-color, #0284c7);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 2.3rem;
    color: var(--heading-color, #0f172a);
    margin: 5px 0 15px;
}

.section-heading p {
    color: var(--text-color, #64748b);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   SPORTS GRID & 3D FLIP CARDS
=========================================== */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sport-card {
    background-color: transparent;
    height: 420px;
    perspective: 1000px; /* Enables 3D flip effect */
}

.sport-card .card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.sport-card:hover .card {
    transform: rotateY(180deg);
}

/* FRONT AND BACK CARDS */
.sport-card .front,
.sport-card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

/* FRONT CARD */
.sport-card .front {
    background-color: #0f172a;
    color: #ffffff;
}

.sport-card .front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sport-card .front .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    padding: 30px 20px 20px;
    text-align: left;
}

.sport-card .front .overlay h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.sport-card .front .overlay p {
    color: #38bdf8;
    font-size: 0.95rem;
    font-weight: 500;
}

/* BACK CARD */
.sport-card .back {
    background: #ffffff;
    color: #334155;
    transform: rotateY(180deg);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
}

.sport-card .back h3 {
    color: #0f172a;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.sport-card .back p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sport-card .back .details {
    text-align: left;
    font-size: 0.88rem;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sport-card .back .details p {
    margin-bottom: 5px;
    color: #334155;
    -webkit-line-clamp: unset;
}

.sport-card .back .details b {
    color: #0284c7;
}

/* FEATURES TAGS */
.sport-card .back .features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 15px;
}

.sport-card .back .features span {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sport-card .back button {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.sport-card .back button:hover {
    background: #0369a1;
}

/* EMPTY STATE */
.sports-section .empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   SPORTS MODAL POPUP
=========================================== */
.sports-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.sports-modal .modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 550px;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.sports-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sports-modal .close-btn:hover {
    color: #ef4444;
}

#modalContent h2 {
    color: #0f172a;
    margin-bottom: 10px;
}

#modalContent h3 {
    color: #0284c7;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#modalContent p {
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#modalContent ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

#modalContent ul li {
    padding: 5px 0;
    color: #0369a1;
    font-weight: 500;
}