/* =====================================================
   CILO SAKLI BAHÇE - STYLE.CSS
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    min-height: 100vh;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    /* Görsel yüklenemezse veya gecikirse ekran siyah/görünmez kalmasın diye
       koyu bir zemin rengi verildi (fallback) */
    background-color: #1b2a1f;
}

/* --- ARKA PLAN (DAĞ MANZARASI) --- */
#background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* NOT: Eski görsel bir Facebook CDN linkiydi ve süresi (oe= parametresi)
       dolduğunda kırılıyordu. Kalıcı, kendi sunucunuzda barındırdığınız
       bir görsel URL'si ile değiştirin. Görsel yüklenemese bile
       arka plan rengi (body'deki background-color) devrede kalır. */
    background-color: #1b2a1f;
    background-image: url('bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

header p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* --- ÇARK ALANI --- */
#wheel-area {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 15px auto 25px auto;
}

#pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #ff3b30;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    /* Canlı renk dilimleri (İLK TASARIM HARİTASI) */
    background: conic-gradient(
        #e74c3c 0deg 30deg,
        #f39c12 30deg 60deg,
        #f1c40f 60deg 90deg,
        #2ecc71 90deg 120deg,
        #1abc9c 120deg 150deg,
        #3498db 150deg 180deg,
        #9b59b6 180deg 210deg,
        #e84393 210deg 240deg,
        #e74c3c 240deg 270deg,
        #f39c12 270deg 300deg,
        #2ecc71 300deg 330deg,
        #3498db 330deg 360deg
    );
}

.slice {
    pointer-events: none;
}

/* --- ÇARK ORTASINDAKİ CILO LOGOSU --- */
#wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    z-index: 20;
    overflow: hidden;
    background: #fff;
    border: 5px solid #d4af37;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.9),
        0 0 22px rgba(212,175,55,.75);
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheel-center .center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 215%;
    height: 215%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%);
    border-radius: 0;
    display: block;
}

/* --- BUTONLAR --- */
.buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #fff;
    line-height: 1.4;
}

.button.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.button.green {
    background: #2ecc71;
}

.button.whatsapp {
    background: #25d366;
    margin-top: 6px;
}

.button:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(80%);
}

#status {
    margin-top: 18px;
    font-size: 13px;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 8px;
    line-height: 1.4;
}

/* --- KAZANMA / KAYBETME EKRANLARI --- */
.win-box,
.lose-box {
    width: 100%;
    padding: 24px 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.win-box {
    border: 2px solid #2ecc71;
}

.win-box h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.win-box strong {
    display: inline-block;
    font-size: 16px;
    background: rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.win-box .button.whatsapp {
    margin-top: 10px;
}

.lose-box {
    border: 2px solid #e74c3c;
}

.lose-box h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.win-box p,
.lose-box p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
}
