* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --dark-orange: #E85A2A;
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --red: #E31837;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --shadow: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #17A2B8 0%, #138496 30%, #20C997 60%, #17A2B8 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Arka plan efektleri */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Logo */
.header-logo {
    text-align: center;
    margin-bottom: 20px;
}

.header-logo img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* Ana Header */
.main-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-header p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Çark Container */
.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    position: relative;
    perspective: 1000px;
}

/* Çark Etrafındaki Lambalar */
.wheel-lights {
    position: absolute;
    width: 550px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.light {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, transparent 70%);
    box-shadow: 0 0 15px #FFD700, 0 0 30px #FFD700, 0 0 45px rgba(255, 215, 0, 0.5);
    animation: lightPulse 2s ease-in-out infinite;
}

.light-1 { top: 0; left: 50%; margin-left: -10px; animation-delay: 0s; }
.light-2 { top: 15%; right: 10%; animation-delay: 0.125s; }
.light-3 { top: 35%; right: 0; animation-delay: 0.25s; }
.light-4 { top: 50%; right: 5%; margin-top: -10px; animation-delay: 0.375s; }
.light-5 { bottom: 35%; right: 0; animation-delay: 0.5s; }
.light-6 { bottom: 15%; right: 10%; animation-delay: 0.625s; }
.light-7 { bottom: 0; left: 50%; margin-left: -10px; animation-delay: 0.75s; }
.light-8 { bottom: 15%; left: 10%; animation-delay: 0.875s; }
.light-9 { bottom: 35%; left: 0; animation-delay: 1s; }
.light-10 { top: 50%; left: 5%; margin-top: -10px; animation-delay: 1.125s; }
.light-11 { top: 35%; left: 0; animation-delay: 1.25s; }
.light-12 { top: 15%; left: 10%; animation-delay: 1.375s; }
.light-13 { top: 8%; left: 25%; animation-delay: 1.5s; }
.light-14 { top: 8%; right: 25%; animation-delay: 1.625s; }
.light-15 { bottom: 8%; right: 25%; animation-delay: 1.75s; }
.light-16 { bottom: 8%; left: 25%; animation-delay: 1.875s; }

@keyframes lightPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Çark */
#wheel {
    position: relative;
    width: 500px;
    height: 500px;
    z-index: 10;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 12px solid var(--gold);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(255, 215, 0, 0.3);
    background: var(--white);
}

.wheel-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Altın çerçeve desen */
.wheel-inner::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        var(--gold) 0deg 2deg,
        var(--gold-dark) 2deg 4deg
    );
    z-index: -1;
}

.wheel-segment-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.wheel-segment-text span {
    display: inline-block;
    transform: translateX(140px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.wheel-segment-text[style*="#FFFFFF"] span,
.wheel-segment-text[style*="#ffffff"] span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Çark Ortası */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 8px rgba(255, 255, 255, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.wheel-center img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

.center-button {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Çark Göstergesi - Sabit Kalacak */
.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--gold);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    z-index: 300;
    pointer-events: none;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Çevir Butonu */
.spin-button {
    display: block;
    margin: 40px auto;
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.spin-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.spin-button:hover::before {
    width: 300px;
    height: 300px;
}

.spin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.spin-button:active {
    transform: translateY(-1px);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
}

.popup-close:hover {
    color: var(--red);
}

.popup-content h2 {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.popup-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-primary {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.error-message {
    color: var(--red);
    margin-top: 15px;
    padding: 10px;
    background: #ffe6e6;
    border-radius: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Kazanç Popup */
.kazanc-popup {
    text-align: center;
    max-width: 600px;
}

.kazanc-header h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.kazanilan-hediye {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.kazanilan-hediye h3 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
}

.kupon-bilgileri {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.kupon-item {
    margin-bottom: 20px;
}

.kupon-item:last-child {
    margin-bottom: 0;
}

.kupon-item label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.kupon-kodu,
.gecerlilik-suresi {
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    margin-bottom: 10px;
    word-break: break-all;
}

.btn-copy {
    padding: 10px 20px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: var(--dark-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.5rem;
    }

    #wheel {
        width: 350px;
        height: 350px;
    }

    .wheel-lights {
        width: 380px;
        height: 380px;
    }

    .light {
        width: 15px;
        height: 15px;
    }

    .wheel-center {
        width: 90px;
        height: 90px;
    }

    .segment-text {
        font-size: 0.9rem;
    }

    .spin-button {
        padding: 15px 40px;
        font-size: 1.2rem;
    }
}

/* Çark Dönüş Animasyonu */
.wheel-inner.wheel-spinning {
    animation: spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(var(--final-rotation));
    }
}

