:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD166;
    --dark-bg: #1A1A2D;
    --light-bg: #F7F7FF;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { padding: 20px 0; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; text-decoration: none; color: var(--primary-color); }

/* DİL SEÇİCİ */
#language-selector {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
}

/* HERO SECTION */
#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 40px;
    min-height: 80vh; /* Ekranı kapla */
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; color: var(--dark-bg); }
.hero-text p { font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; color: #555; }
.download-buttons { display: flex; gap: 15px; }
.btn-store img { height: 50px; transition: transform 0.2s; }
.btn-store:hover img { transform: scale(1.05); }

/* --- INTERACTIVE WHEEL (FIXED) --- */
.hero-interactive {
    flex: 1;
    display: flex;
    flex-direction: column; /* Alt alta diz */
    align-items: center;
    justify-content: center;
    position: relative;
    /* Çarkın alanı için minimum yükseklik */
    min-height: 500px; 
}

.wheel-wrapper {
    position: relative;
    width: 320px; 
    height: 320px;
    /* Bu özellik çarkın sıkışıp kaybolmasını engeller: */
    flex-shrink: 0; 
    margin-bottom: 40px; /* Butonu aşağı it */
}

/* OK İŞARETİ */
.pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    color: var(--dark-bg);
    z-index: 20;
    text-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

/* ÇARK */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden; /* Taşmaları gizle */
    background-color: #FF6B6B; /* Fallback renk */
    
    /* Renkleri Hex olarak girdim, garanti çalışsın diye */
    background: conic-gradient(
        #FF6B6B 0deg 60deg,
        #4ECDC4 60deg 120deg,
        #FFD166 120deg 180deg,
        #FF6B6B 180deg 240deg,
        #4ECDC4 240deg 300deg,
        #FFD166 300deg 360deg
    );
    
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wheel-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: white;
    border-radius: 50%;
    z-index: 10;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* SORU İŞARETLERİ */
.segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0px; 
    height: 0px;
}
/* Soru işaretlerini merkeze göre konumlandır */
.segment span {
    position: absolute;
    left: -10px;
    top: -120px; /* Yarıçapa göre ayar */
    width: 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.segment:nth-child(1) { transform: rotate(30deg); }
.segment:nth-child(2) { transform: rotate(90deg); }
.segment:nth-child(3) { transform: rotate(150deg); }
.segment:nth-child(4) { transform: rotate(210deg); }
.segment:nth-child(5) { transform: rotate(270deg); }
.segment:nth-child(6) { transform: rotate(330deg); }

/* BUTON */
#spin-btn {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 5;
}

#spin-btn:hover {
    transform: translateY(-3px);
    background: #000;
}

.result-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    min-height: 30px;
}

/* FEATURES & CTA */
#features { padding: 80px 20px; text-align: center; }
#features h2 { font-size: 2.5rem; margin-bottom: 50px; }
.feature-cards { display: flex; gap: 30px; justify-content: center; }
.card {
    background: #fff; padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); flex: 1; max-width: 320px;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); }
.card .icon { font-size: 3rem; margin-bottom: 15px; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary-color); }

#cta {
    background-color: var(--dark-bg); color: var(--text-light);
    text-align: center; padding: 70px 20px; border-radius: 20px; margin: 50px auto;
}
#cta .download-buttons { justify-content: center; }

/* FOOTER */
footer { padding: 30px 0; text-align: center; border-top: 1px solid #e0e0e0; margin-top: 50px;}
.footer-links a { color: var(--primary-color); text-decoration: none; margin: 0 10px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    #hero { flex-direction: column; text-align: center; height: auto; padding-top: 20px; }
    .hero-interactive { width: 100%; min-height: 400px; margin-top: 30px; }
    .download-buttons { justify-content: center; }
    .feature-cards { flex-direction: column; align-items: center; }
}