:root {
    --primary: #8a2be2;
    --primary-light: #a64dff;
    --secondary: #ff00ff;
    --bg-dark: #050510;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b0b0cc;
    --glow: 0 0 20px rgba(138, 43, 226, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: -2;
}

.stars::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 100px 150px, #fff, transparent),
        radial-gradient(2px 2px at 250px 350px, #fff, transparent);
    background-size: 400px 400px;
    opacity: 0.3;
}

.moon {
    position: fixed;
    top: 40px;
    right: 60px;
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    /* Zarif bir Hilal formu oluşturuyoruz */
    box-shadow: 15px 10px 0 0 rgba(255, 255, 255, 0.9);
    z-index: -1;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transform: rotate(-15deg);
    animation: moonFloat 10s ease-in-out infinite;
}

@keyframes moonFloat {

    0%,
    100% {
        transform: rotate(-15deg) translateY(0);
    }

    50% {
        transform: rotate(-10deg) translateY(-20px);
    }
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 25px #fff;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, #6a5acd, #fff, transparent);
    border-radius: 100px;
}

@keyframes animateShootingStar {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.nav-link:hover {
    color: #fff;
}

/* Hero */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 15px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Sections */
.how-it-works,
.interpreter,
.history {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

/* Interpreter Selection */
.interpreter-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .interpreter-selection {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .interpreter-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* Küçük ekranlarda boşluğu biraz daraltalım */
    }
}

.interpreter-persona {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    min-width: 140px;
}

.interpreter-persona:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.interpreter-persona.active {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.persona-avatar {
    font-size: 40px;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

/* LED Yanıp Sönme Animasyonları */
@keyframes ledPulseGreen {
    0% {
        box-shadow: 0 0 5px #2ecc71;
        background: #2ecc71;
    }

    50% {
        box-shadow: 0 0 25px #2ecc71, 0 0 40px rgba(46, 204, 113, 0.4);
        background: #34e77a;
    }

    100% {
        box-shadow: 0 0 5px #2ecc71;
        background: #2ecc71;
    }
}

@keyframes ledPulseWhite {
    0% {
        box-shadow: 0 0 5px #fff;
        background: #fff;
    }

    50% {
        box-shadow: 0 0 25px #fff, 0 0 40px rgba(255, 255, 255, 0.4);
        background: #f0f0f0;
    }

    100% {
        box-shadow: 0 0 5px #fff;
        background: #fff;
    }
}

@keyframes ledPulseYellow {
    0% {
        box-shadow: 0 0 5px #ffd700;
        background: #ffd700;
    }

    50% {
        box-shadow: 0 0 25px #ffd700, 0 0 40px rgba(255, 215, 0, 0.4);
        background: #ffeb3b;
    }

    100% {
        box-shadow: 0 0 5px #ffd700;
        background: #ffd700;
    }
}

@keyframes ledPulsePink {
    0% {
        box-shadow: 0 0 5px #ff69b4;
        background: #ff69b4;
    }

    50% {
        box-shadow: 0 0 25px #ff69b4, 0 0 40px rgba(255, 105, 180, 0.4);
        background: #ff85c2;
    }

    100% {
        box-shadow: 0 0 5px #ff69b4;
        background: #ff69b4;
    }
}

@keyframes ledPulseRed {
    0% {
        box-shadow: 0 0 5px #e74c3c;
        background: #e74c3c;
    }

    50% {
        box-shadow: 0 0 25px #e74c3c, 0 0 40px rgba(231, 76, 60, 0.4);
        background: #ff4d4d;
    }

    100% {
        box-shadow: 0 0 5px #e74c3c;
        background: #e74c3c;
    }
}

@keyframes ledPulseBlue {
    0% {
        box-shadow: 0 0 5px #3498db;
        background: #3498db;
    }

    50% {
        box-shadow: 0 0 25px #3498db, 0 0 40px rgba(52, 152, 219, 0.4);
        background: #5dade2;
    }

    100% {
        box-shadow: 0 0 5px #3498db;
        background: #3498db;
    }
}

/* Zehra - Yeşil Teması */
.interpreter-persona[data-persona="Zehra"].active {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.interpreter-persona[data-persona="Zehra"].active .headscarf-green {
    animation: ledPulseGreen 1.5s infinite ease-in-out;
}

.headscarf-green {
    background: #2ecc71;
    color: #fff;
}

/* Büşra - Beyaz Teması */
.interpreter-persona[data-persona="Büşra"].active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.interpreter-persona[data-persona="Büşra"].active .headscarf-white {
    animation: ledPulseWhite 1.5s infinite ease-in-out;
}

.headscarf-white {
    background: #fff;
    color: #000;
}

/* Melek - Pembe Teması */
.interpreter-persona[data-persona="Melek"].active {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.1);
}

.interpreter-persona[data-persona="Melek"].active .headscarf-pink {
    animation: ledPulsePink 1.5s infinite ease-in-out;
}

.headscarf-pink {
    background: #ff69b4;
    color: #fff;
}

/* Emre - Esmer Teması (Kırmızı) */
.interpreter-persona[data-persona="Emre"].active {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.interpreter-persona[data-persona="Emre"].active .persona-esmer {
    animation: ledPulseRed 1.5s infinite ease-in-out;
}

.persona-esmer {
    background: #e74c3c;
    color: #fff;
}

/* Tahsin - Sarışın Teması */
.interpreter-persona[data-persona="Tahsin"].active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.interpreter-persona[data-persona="Tahsin"].active .persona-sarisin {
    animation: ledPulseBlue 1.5s infinite ease-in-out;
}

.persona-sarisin {
    background: #3498db;
    color: #fff;
}

/* Minnak - Kedi Teması */
.interpreter-persona[data-persona="Minnak"].active {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
}

.interpreter-persona[data-persona="Minnak"].active .persona-kedi {
    animation: ledPulseYellow 1.5s infinite ease-in-out;
}

.persona-kedi {
    background: #ffcc00;
    color: #000;
}

.persona-name {
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 18px;
}

.persona-style {
    font-size: 12px;
    color: var(--text-muted);
}

/* Interpreter Card - FIXING HERE */
.interpreter-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--glow);
}

.interpreter-header {
    margin-bottom: 30px;
    text-align: center;
}

.dream-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    font-size: 16px;
    resize: none;
    transition: 0.3s;
    margin-bottom: 20px;
}

.dream-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.interpret-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.interpret-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* LED Frame Button Effect */
.btn-led-frame {
    position: relative;
    width: auto !important;
    padding: 15px 45px !important;
    background: transparent !important;
    z-index: 1;
    overflow: hidden;
    border: none !important;
}

.btn-led-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            #fbff00,
            #ff9100,
            #ffae00);
    animation: rotateLed 3s linear infinite;
    z-index: -2;
}

.btn-led-frame::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 9px;
    z-index: -1;
}

@keyframes rotateLed {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Result Section */
.result-section {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-button {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* History */
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.footer {
    padding: 50px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .moon {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
    }

    .hero {
        padding-top: 50px;
    }

    .interpreter-card {
        padding: 20px;
    }

    .nav {
        display: none;
    }
}

/* User Profile & Points */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-points {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.points-icon {
    font-size: 16px;
}

.login-trigger-btn,
.logout-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-trigger-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.logout-btn {
    background: #ffd700;
    color: #000;
    font-size: 12px;
}

.logout-btn:hover {
    background: #ffcc00;
    transform: scale(1.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content.auth-card {
    background: #0a0a20;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding-bottom: 10px;
    cursor: pointer;
    font-weight: 700;
    position: relative;
}

.auth-tab.active {
    color: var(--primary-light);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    color: #fff;
}

.auth-submit-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

@keyframes floatPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 25px rgba(138, 43, 226, 0.4);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .user-profile {
        width: auto;
        gap: 10px;
        order: 2;
    }

    .logo {
        order: 1;
        font-size: 20px;
    }

    /* Sadece Puan Kısmı Sağ Alt Köşede Kalsın */
    .user-points {
        position: fixed;
        bottom: 30px;
        right: 20px;
        z-index: 9999;
        background: rgba(15, 15, 35, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 16px;
        border-radius: 20px;
        border: 1px solid rgba(255, 215, 0, 0.4);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: floatPulse 3s ease-in-out infinite;
        font-size: 13px;
        white-space: nowrap;
        color: #ffd700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .login-trigger-btn,
    .logout-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .nav {
        display: none;
    }
}