/* Yaratıcı Mini Oyun Teması - Ek CSS */

/* Arka Plan Gradient Animasyonu */
body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Google Font - Eğer istersen ekleyebilirsin HTML head kısmına:
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet"> */

/* Kart Tasarımı */
.card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    height: 10px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.7;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2.5rem;
}

/* Başlık Animasyonu */
h1 {
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #ff8a00);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textGradient 3s linear infinite;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Form Elemanları */
.form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #e73c7e;
    box-shadow: 0 0 0 4px rgba(231, 60, 126, 0.2);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.35);
    font-weight: 500;
}

/* Buton Tasarımı */
.btn-primary {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(229, 46, 113, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e52e71, #ff8a00);
    box-shadow: 0 7px 20px rgba(229, 46, 113, 0.6);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(229, 46, 113, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0));
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: rotateZ(60deg) translate(1em, -9em);
}

/* Soruların Tasarımı */
.soru {
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.secenek {
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.secenek:hover {
    background: linear-gradient(45deg, #23a6d5, #23d5ab);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(35, 166, 213, 0.4);
    transform: translateY(-3px);
}

.secenek:active {
    transform: translateY(0);
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #23a6d5, #23d5ab);
    box-shadow: 0 0 10px rgba(35, 213, 171, 0.5);
    transition: width 0.5s ease;
}

/* Badge */
.badge.bg-primary {
    background: linear-gradient(45deg, #23a6d5, #23d5ab) !important;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 10px;
}

/* Kamera Ekranı */
#video-container {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

#video-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(231, 60, 126, 0.2), rgba(35, 213, 171, 0.2));
    pointer-events: none;
    z-index: 1;
}

#poz-ver {
    background: linear-gradient(45deg, rgba(35, 166, 213, 0.2), rgba(35, 213, 171, 0.2));
    border: none;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(35, 213, 171, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(35, 213, 171, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(35, 213, 171, 0);
    }
}

#canvas {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* Görüşme Ekranı */
.ratio {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ratio::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(231, 60, 126, 0.1), rgba(35, 213, 171, 0.1));
    pointer-events: none;
    z-index: 2;
}

/* Kontrol Butonları */
#mic-toggle, #video-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

#mic-toggle:hover, #video-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #23a6d5, #23d5ab);
    color: white;
}

#end-call {
    background: linear-gradient(45deg, #ff5e62, #ff9966);
    box-shadow: 0 5px 15px rgba(255, 94, 98, 0.4);
    border: none;
    transition: all 0.3s ease;
}

#end-call:hover {
    box-shadow: 0 8px 20px rgba(255, 94, 98, 0.6);
    transform: translateY(-3px);
}

/* Spinner */
.spinner-border {
    color: #e52e71;
    border-width: 0.25em;
    animation: spin 1s linear infinite, colorChange 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes colorChange {
    0% { border-color: #ff8a00 transparent #ff8a00 transparent; }
    50% { border-color: #e52e71 transparent #e52e71 transparent; }
    100% { border-color: #ff8a00 transparent #ff8a00 transparent; }
}

/* Mobil için uyarlamalar */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card::before {
        opacity: 0.5;
    }
}

/* Emoji Efekti */
.emoji-float {
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    font-size: 3rem;
    animation: floatEmoji 15s linear infinite;
}

@keyframes floatEmoji {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-100vh) rotate(180deg);
        opacity: 0;
    }
    100% {
        transform: translateY(-200vh) rotate(360deg);
        opacity: 0;
    }
}

/* index.php için arka planda süslü emojiler */
body::after {
    content: '🎮 🎯 🎪 📸 🎨 🎭 🎪 🎯 🎮';
    position: absolute;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    bottom: 10px;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}