/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.hero-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid #ffd700;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    font-size: 2rem;
    color: #ffd700;
    animation: glow 2s ease-in-out infinite alternate;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(26,26,46,0.7) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffd700" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffd700" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23ffd700" opacity="0.2"/><circle cx="40" cy="80" r="1" fill="%23ffd700" opacity="0.4"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* Top Players Section */
.top-players-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffd700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 2px;
}

.top-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.top-player-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,237,78,0.05) 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    transition: left 0.5s ease;
}

.top-player-card:hover::before {
    left: 100%;
}

.top-player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255,215,0,0.3);
}

.rank-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    z-index: 2;
}

.rank-1 .rank-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    box-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.rank-2 .rank-badge {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    box-shadow: 0 0 20px rgba(192,192,192,0.5);
}

.rank-3 .rank-badge {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    box-shadow: 0 0 20px rgba(205,127,50,0.5);
}

.player-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffd700;
    position: relative;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.player-position {
    color: #cccccc;
    margin-bottom: 1rem;
}

.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

/* Players Section */
.players-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #16213e 0%, #0c0c0c 100%);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.player-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card:hover::before {
    opacity: 1;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,215,0,0.2);
    border-color: #ffd700;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card:hover .card-glow {
    opacity: 1;
}

.player-card .player-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.5rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.skills-grid {
    margin: 1.5rem 0;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.skill-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: #cccccc;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.skill-value {
    min-width: 30px;
    text-align: right;
    font-weight: bold;
    color: #ffd700;
}

.player-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,215,0,0.3);
}

/* Footer */
.hero-footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 0 1rem;
    border-top: 2px solid #ffd700;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-contact p {
    color: #cccccc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,215,0,0.3);
    color: #cccccc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid #ffd700;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #ffd700;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover {
    color: #ffffff;
}

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700; }
    to { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(255,215,0,0.5); }
    to { text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .top-players-grid {
        grid-template-columns: 1fr;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

/* دعم الجداول والنماذج والقوائم الجانبية في جميع الشاشات */

/* الجداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    overflow: hidden;
}
th, td {
    padding: 0.8rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #222;
    font-size: 1rem;
}
th {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-weight: bold;
}
tr:last-child td {
    border-bottom: none;
}

/* استجابة الجداول للجوال */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.03);
    }
    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        font-size: 0.95rem;
    }
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        top: 0.8rem;
        font-weight: bold;
        color: #ffd700;
        font-size: 0.95rem;
    }
}

/* النماذج */
form {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(255,255,255,0.03);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-weight: 600;
}
form input, form select, form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ffd700;
    border-radius: 8px;
    background: #181818;
    color: #fff;
    font-size: 1rem;
    transition: border 0.3s;
}
form input:focus, form select:focus, form textarea:focus {
    border-color: #ffed4e;
    outline: none;
}
form button, form input[type=submit] {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}
form button:hover, form input[type=submit]:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

/* القوائم الجانبية */
.sidebar {
    background: #181818;
    border-right: 2px solid #ffd700;
    min-width: 220px;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    transition: all 0.3s;
}
.sidebar ul {
    list-style: none;
}
.sidebar ul li {
    margin-bottom: 1.5rem;
}
.sidebar ul li a {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.sidebar ul li a:hover {
    color: #ffed4e;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        min-width: 100%;
        border-right: none;
        border-bottom: 2px solid #ffd700;
        min-height: auto;
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    .sidebar ul {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        width: 100%;
        justify-content: center;
    }
    .sidebar ul li {
        margin-bottom: 0;
    }
}

/* النوافذ المنبثقة (modal) */
@media (max-width: 600px) {
    .modal-content {
        padding: 1rem 0.5rem;
        width: 98%;
        max-width: 98vw;
    }
}

/* أزرار التحكم الصغيرة */
.btn, .btn-primary {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
}
@media (max-width: 500px) {
    .btn, .btn-primary {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }
}

/* دعم الشاشات الكبيرة (تابلت كبير/ديسكتوب متوسط) */
@media (min-width: 1025px) and (max-width: 1400px) {
    .container {
        max-width: 98vw;
        padding: 0 10px;
    }
    .nav-container {
        max-width: 98vw;
        padding: 1rem 1rem;
    }
}

/* دعم الشاشات الصغيرة جدًا */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn, .btn-primary {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
} 