/* assets/css/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #050816, #0f172a);
    color: #f9fafb;
    direction: rtl;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

header .logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

header .tagline {
    font-size: 0.9rem;
    color: #9ca3af;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 32px;
    padding: 20px 40px 40px;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

.card + .card {
    margin-top: 18px;
}

/* قسم البداية */
.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.hero-list {
    list-style: none;
    margin-bottom: 24px;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #d1d5db;
    font-size: 0.95rem;
}

.hero-list li span.emoji {
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.6);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
}

/* الجوائز */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.prizes-list {
    list-style: none;
}

.prizes-list li {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.8);
}

.prizes-list li strong {
    color: #e5e7eb;
}

.prize-reward {
    font-size: 0.9rem;
    color: #a5b4fc;
    display: block;
    margin-top: 4px;
}

.prize-details {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ترتيب اللاعبين */
.leaderboard-list {
    list-style: none;
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.9);
    margin-bottom: 8px;
}

.leaderboard-rank {
    font-weight: 700;
    margin-left: 8px;
}

.leaderboard-name {
    flex: 1;
    font-size: 0.95rem;
}

.leaderboard-points {
    font-size: 0.9rem;
    color: #a5b4fc;
}

.footer-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 6px;
}
