/* style.css - طراحی جدید با اسلایدشو خودکار و بهینه‌سازی موبایل */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-attachment: fixed;
    color: #333;
    font-family: 'Segoe UI', 'Open Sans', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}
    .container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, #0077B6, #00B4D8, #0077B6);
    }
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
h1 {
    font-size: 3.2rem;
    color: #0077B6;
    text-shadow: 0 2px 10px rgba(0, 119, 182, 0.2);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}
    h1::before {
        content: "🏆";
        margin-right: 12px;
        font-size: 3.5rem;
        color: #00B4D8;
        position: absolute;
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
        animation: pulse 2s infinite;
    }
.subtitle {
    font-size: 1.5rem;
    color: #00B4D8;
    font-weight: 300;
    margin-top: 0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.admin-link {
    display: inline-block;
    background: linear-gradient(135deg, #0077B6, #00B4D8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}
    .admin-link:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 6px 18px rgba(0, 119, 182, 0.4);
        background: linear-gradient(135deg, #0066A0, #0099C8);
    }
.sport-section {
    text-align: center;
    margin: 3.5rem 0;
}
    .sport-section h2 {
        font-size: 2.4rem;
        color: #0077B6;
        margin-bottom: 2.5rem;
        font-weight: 500;
        position: relative;
        display: inline-block;
    }
        .sport-section h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #00B4D8, #0077B6);
            border-radius: 2px;
        }
.sport-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.sport-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #0077B6, #00B4D8);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
    .sport-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .sport-btn:hover::before {
        opacity: 1;
    }
    .sport-btn:hover {
        transform: translateY(-12px) scale(1.05);
        box-shadow: 0 20px 45px rgba(0, 119, 182, 0.45);
    }
.sport-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.sport-name {
    font-size: 1.8rem;
    font-weight: 600;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
/* ورزش‌های مختلف */
.football {
    background: linear-gradient(135deg, #0077B6, #00B4D8);
}
    .football .sport-icon {
        color: #00B4D8;
    }
    .football .sport-name {
        color: #00B4D8;
    }
.tennis {
    background: linear-gradient(135deg, #00C9A7, #92FE9D);
}
    .tennis .sport-icon {
        color: #00C9A7;
    }
    .tennis .sport-name {
        color: #00C9A7;
    }
.dart {
    background: linear-gradient(135deg, #FF6B6B, #FFA5A5);
}
    .dart .sport-icon {
        color: #FF6B6B;
    }
    .dart .sport-name {
        color: #FF6B6B;
    }
/* طراحی جدول‌های گروه‌ها */
.table-wrapper {
    margin: 3rem 0;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
    .table-wrapper:hover {
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    }
h3 {
    text-align: center;
    background: linear-gradient(to right, #0077B6, #00B4D8);
    color: white;
    padding: 1.5rem;
    border-radius: 25px 25px 0 0;
    margin-top: 0;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
    h3::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #00B4D8, #0077B6);
    }
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1.05rem;
}
th {
    background: linear-gradient(to right, #0077B6, #00B4D8);
    color: white;
    padding: 1.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
td {
    padding: 1.3rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}
tr:hover {
    background-color: #f8f9ff;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
tr:nth-child(even) {
    background-color: #f9fafc;
}
td strong {
    color: #0077B6;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}
td small {
    color: #00B4D8;
    font-style: italic;
    font-size: 0.95rem;
    display: block;
    margin-top: 2px;
}
/* طراحی اسلایدشو - اصلاح شده با object-fit: contain */
.slideshow-section {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 500px;
    background-color: #111; /* پس‌زمینه تیره */
}
.mySlides {
    display: none;
    text-align: center;
}
    .mySlides img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* نمایش کامل عکس بدون برش */
        transition: opacity 0.5s ease;
        background: #000; /* پس‌زمینه سیاه برای عکس‌های کوچک */
    }
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -25px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.next {
    right: 0;
}
.prev {
    left: 0;
}
    .prev:hover, .next:hover {
        background: rgba(0, 0, 0, 0.8);
    }
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
    .active, .dot:hover {
        background-color: #717171;
    }
/* بهینه‌سازی برای موبایل */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    h1 {
        font-size: 2.4rem;
    }
    .sport-btn {
        width: 200px;
        height: 200px;
        padding: 1.5rem;
    }
    .sport-icon {
        font-size: 4rem;
    }
    .sport-name {
        font-size: 1.4rem;
    }
    .admin-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        top: 1.2rem;
        right: 1.2rem;
    }
    .sport-section h2 {
        font-size: 2rem;
    }
    .slideshow-container {
        height: 350px;
    }
    .prev, .next {
        display: none;
    }
}