:root {
    --primary-color: #6C63FF;
    --secondary-color: #2F2E41;
    --accent-color: #FFD700;
    /* Gold */
    --duello-color: #FF4B4B;
    --bg-dark: #1a1a2e;
    --bg-light: #e94560;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --card-bg: #16213e;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.highlight-link {
    color: var(--duello-color) !important;
    font-weight: 700 !important;
    border: 1px solid var(--duello-color);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease !important;
}

.highlight-link:hover {
    background: var(--duello-color);
    color: white !important;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gold-text {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.prize-card {
    background: linear-gradient(135deg, #2a2a72 0%, #009ffd 100%);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.prize-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.prize-info {
    z-index: 1;
}

.prize-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.prize-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

.prize-desc {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.cta-btn:hover {

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.6);
}

.cta-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    align-items: center;
}

.cta-btn.primary {
    background: #3DDC84;
    /* Android Green */
    color: #0d1b2a;
    box-shadow: 0 5px 15px rgba(61, 220, 132, 0.4);
}

.cta-btn.primary:hover {
    box-shadow: 0 8px 20px rgba(61, 220, 132, 0.6);
}

.cta-btn.secondary {
    background: var(--primary-color);
}

.cta-btn.ios {
    background: #000000;
    /* Apple Black */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn.ios:hover {
    background: #1a1a1a;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn.accent {
    background: #00A4EF;
    /* Windows Blue */
    box-shadow: 0 5px 15px rgba(0, 164, 239, 0.4);
}

.cta-btn.accent:hover {
    box-shadow: 0 8px 20px rgba(0, 164, 239, 0.6);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.app-mockup-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.circle-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(40px);
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 4rem 0;
    background: #0f3460;
}

.leaderboard-section .container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.leaderboard-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -10px;
    right: -10px;
    font-weight: 800;
}

.leaderboard-container {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.leaderboard-list {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank-num {
    font-weight: 800;
    color: var(--text-gray);
}

.rank-1 .rank-num {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 1.2rem;
}

.rank-2 .rank-num {
    color: #C0C0C0;
    font-size: 1.1rem;
}

.rank-3 .rank-num {
    color: #CD7F32;
    font-size: 1.1rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.player-score {
    font-weight: 700;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #0b0b15;
    padding: 4rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links a {
    margin-left: 1rem;
    font-size: 1.2rem;
    color: var(--text-white);
    transition: transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Burger menu logic would go here for full implementation */
    }

    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .prize-card {
        margin: 0 auto 2rem auto;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Thematic Backgrounds */
body.bg-tarih {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1461360370896-922624d12aa1?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body.bg-spor {
    /* Football / Sports Field */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body.bg-islam {
    /* Mosque Architecture */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1519817650390-64a93db51149?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body.bg-genelkultur {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body.bg-duello {
    /* Competitive / Versus Concept - New Image */
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Rules Card Styling */
.rules-container {
    max-width: 900px;
    margin: 4rem auto;
    background: rgba(22, 33, 62, 0.9);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.category-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rule-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: transform 0.3s;
}

.rule-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.rule-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rule-text {
    font-weight: 600;
    color: var(--text-white);
}

.rule-sub {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Duel Page Specifics */
.bg-duello .category-icon {
    color: var(--duello-color);
}

.bg-duello .rule-icon {
    color: var(--duello-color);
}

.download-app-banner {
    background: linear-gradient(90deg, var(--primary-color), #8e86ff);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.download-text h3 {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .download-app-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Contact Page Styling */
.contact-container {
    max-width: 800px;
    margin: 4rem auto;
    background: rgba(22, 33, 62, 0.9);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Fix for Select Dropdown Options */
select option {
    background-color: var(--card-bg);
    color: var(--text-white);
    padding: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #564fcc;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.direct-contact {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.direct-contact p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.email-link {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}