/**
 * Lucky Wheel - Şans Çarkı Animasyonu
 */

.wheel-section {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-lg);
}

.wheel-header {
    margin-bottom: var(--spacing-xl);
}

.wheel-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    font-weight: 700;
}

.wheel-subtitle {
    font-size: 1.2rem;
    color: var(--color-light-gray);
    margin-bottom: var(--spacing-sm);
}

/* Günlük Spin Sayacı */
.daily-spin-counter {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--color-bright-red);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.spin-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bright-red);
    font-family: var(--font-heading);
}

/* Çark Wrapper */
.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto var(--spacing-xl);
}

/* Çark Göstergesi (Pointer) */
.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(--color-bright-red);
    z-index: 10;
}

/* Çark SVG Container */
.wheel-svg-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-svg-container.spinning {
    animation: none;
}

/* Çark (Canvas veya SVG) */
.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Orta Düğme */
.wheel-center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--color-bright-red);
    border: 4px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-red-intense);
    z-index: 11;
}

.wheel-center-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-red-hover);
}

.wheel-center-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spin Button */
.spin-button {
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.spin-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.spin-button:hover::after {
    width: 300px;
    height: 300px;
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ödül Göstergesi */
.reward-display {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Yatay Kompakt Banner */
.reward-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.95) 0%, rgba(139, 0, 0, 0.95) 100%);
    border: 3px solid var(--color-bright-red);
    border-radius: 12px;
    padding: 20px 30px;
    width: 100%;
    max-width: 900px;
    box-shadow: 
        0 8px 32px rgba(229, 9, 20, 0.6),
        0 0 60px rgba(229, 9, 20, 0.4),
        inset 0 2px 20px rgba(255, 255, 255, 0.1);
    animation: rewardSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes rewardSlideIn {
    0% {
        transform: translateX(-100%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.reward-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.reward-icon-inline {
    font-size: 2.5rem;
    animation: iconPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.reward-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6);
    }
}

.btn-close-reward-inline {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-close-reward-inline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg) scale(1.1);
}

/* Eski Kart Stili - Backward Compatibility */
.reward-card {
    background: rgba(27, 27, 27, 0.9);
    border: 3px solid var(--color-bright-red);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    min-width: 300px;
    animation: rewardPop 0.5s ease;
}

@keyframes rewardPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reward-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.reward-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.reward-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-bright-red);
    font-family: var(--font-heading);
    text-shadow: var(--shadow-red-glow);
    margin-bottom: var(--spacing-sm);
}

.reward-message {
    color: var(--color-light-gray);
    font-size: 1rem;
}

/* Günlük Ödül Takvimi */
.daily-rewards-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(27, 27, 27, 0.5);
    border-radius: var(--radius-lg);
}

.day-card {
    background: rgba(27, 27, 27, 0.9);
    border: 2px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.day-card.completed {
    border-color: var(--color-bright-red);
    background: rgba(229, 9, 20, 0.2);
}

.day-card.current {
    border-color: var(--color-bright-red);
    box-shadow: var(--shadow-red-glow);
    animation: pulse 2s infinite;
}

.day-number {
    font-size: 1.2rem;
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.day-reward {
    font-size: 1rem;
    color: var(--color-bright-red);
    font-weight: 600;
}

.day-icon {
    font-size: 2rem;
    margin-top: var(--spacing-xs);
}

.day-card.completed .day-icon {
    color: #0f0;
}

/* Confetti Animasyonu */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--color-bright-red);
    position: absolute;
    animation: confettiFall 3s linear;
    pointer-events: none;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* LED Tabela Kartı */
.led-board {
    position: relative;
    background: #000;
    border: 5px solid #ff0000;
    border-radius: 15px;
    padding: 25px 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 0, 0, 0.2);
    animation: ledBoardPulse 2s ease-in-out infinite;
}

@keyframes ledBoardPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 40px rgba(255, 0, 0, 0.5),
            inset 0 0 20px rgba(255, 0, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 0, 0, 1),
            0 0 60px rgba(255, 0, 0, 0.7),
            inset 0 0 30px rgba(255, 0, 0, 0.3);
    }
}

.led-board-content {
    position: relative;
    overflow: hidden;
}

/* LED Yazı Efekti */
.led-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-align: center;
    animation: ledTextFlicker 3s linear infinite;
}

.led-glow {
    text-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff,
        0 0 40px #ff0000,
        0 0 70px #ff0000,
        0 0 80px #ff0000,
        0 0 100px #ff0000,
        0 0 150px #ff0000;
}

@keyframes ledTextFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #fff,
            0 0 40px #ff0000,
            0 0 70px #ff0000,
            0 0 80px #ff0000,
            0 0 100px #ff0000,
            0 0 150px #ff0000;
    }
    20%, 24%, 55% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #ff0000,
            0 0 35px #ff0000;
    }
}

/* LED Kapatma Butonu */
.led-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.led-close-btn:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .wheel-title {
        font-size: 2rem;
    }
    
    .spin-button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .daily-rewards-calendar {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .reward-card {
        min-width: auto;
        width: 100%;
    }
    
    /* Mobil için Banner Responsive */
    .reward-banner {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .reward-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .reward-icon-inline {
        font-size: 2rem;
    }
    
    .btn-close-reward-inline {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* LED Board Responsive */
    .led-board {
        padding: 15px 20px;
        max-width: 95%;
        border-width: 3px;
    }
    
    .led-text {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    .led-close-btn {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
        top: 5px;
        right: 5px;
    }
}

/* Parıltı Efekti */
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.sparkle {
    animation: sparkle 1s infinite;
}


