@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #09090b;
    --glass: rgba(24, 24, 27, 0.85); /* Mobilde okunabilirlik için biraz daha koyu */
    --border: rgba(255, 255, 255, 0.1);
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
}

/* --- TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15), transparent 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PC İçin Konteyner (Ortalı ve Dar) */
.container {
    width: 100%;
    max-width: 500px; /* PC'de çok yayılmasın */
    margin: 0 auto;
    padding-bottom: 80px; /* Alttaki FAB butonu içeriği kapatmasın */
}

/* LOGO */
.logo {
    font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 10px; margin-top: 10px;
    background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 2px;
}
.slogan { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; }

/* KART TASARIMI */
.card {
    background: var(--glass); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 24px;
    padding: 25px; margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* FORM ELEMANLARI */
input, textarea, select {
    width: 100%; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border); padding: 15px; border-radius: 12px;
    color: white; font-size: 1rem; outline: none; margin-bottom: 15px; transition: 0.3s;
}
input:focus, textarea:focus, select:focus { border-color: var(--neon-purple); box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }

/* BUTONLAR */
button.btn-main, .btn-main {
    display: block; width: 100%; padding: 16px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    border: none; border-radius: 12px; color: white; font-weight: 700; font-size: 1rem;
    cursor: pointer; text-align: center; text-decoration: none;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4); transition: transform 0.2s;
}
button.btn-main:active, .btn-main:active { transform: scale(0.96); }

/* Linkler */
.link-alt { display: block; text-align: center; margin-top: 15px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.link-alt b { color: var(--neon-purple); }

/* Mesaj Kutuları */
.error-msg { background: rgba(239, 68, 68, 0.2); color: #ef4444; padding: 12px; border-radius: 10px; text-align: center; margin-bottom: 15px; border: 1px solid rgba(239, 68, 68, 0.3); font-size: 0.9rem; }
.success-msg { background: rgba(16, 185, 129, 0.2); color: #10b981; padding: 12px; border-radius: 10px; text-align: center; margin-bottom: 15px; border: 1px solid rgba(16, 185, 129, 0.3); font-size: 0.9rem; }

/* NOT KARTLARI (AKIŞ) */
.note-card {
    background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--neon-pink);
    padding: 20px; border-radius: 16px; margin-bottom: 15px; position: relative;
}
.note-content { font-size: 1.1rem; line-height: 1.5; margin-bottom: 12px; word-wrap: break-word; }
.note-footer { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }

/* DİL SEKME BUTONLARI */
.lang-tab { padding: 5px 10px; transition: 0.3s; }

/* KATEGORİ MENÜSÜ */
.cat-wrapper { width: 100%; display: flex; align-items: center; gap: 5px; margin-bottom: 15px; }
.cat-menu { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 5px; scrollbar-width: none; }
.cat-item { padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; border-radius: 50px; }

/* YAZMA BUTONU (FAB) */
.fab {
    position: fixed; bottom: 25px; right: 25px;
    width: 55px; height: 55px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: white; text-decoration: none;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.4); z-index: 100;
}

/* REKLAM ALANI */
.ad-space {
    width: 100%; min-height: 50px; 
    background: rgba(255,255,255,0.02); border-radius: 10px; 
    margin-bottom: 20px; overflow: hidden; display: flex; justify-content: center;
}

/* --- MOBİL UYUMLULUK (MEDIA QUERY) --- */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Mobilde kenar boşluğunu azalt */
        align-items: stretch; /* İçeriği ekrana yay */
    }

    .container {
        max-width: 100%; /* Telefondan girince tam ekran kullan */
        width: 100%;
    }

    .logo { font-size: 2rem; margin-top: 5px; } /* Logoyu biraz küçült */

    .card {
        padding: 20px; /* Kart iç boşluğunu azalt */
        border-radius: 20px;
    }

    h1, h2, h3 { font-size: 1.5rem; } /* Başlıkları küçült */

    /* Butonlar mobilde daha kolay basılsın */
    button.btn-main, .btn-main { padding: 14px; font-size: 0.95rem; }

    /* Not kartları mobilde daha kompakt */
    .note-content { font-size: 1rem; }
    
    /* Profil başlığı mobilde taşmasın */
    .profile-header .user-nick { font-size: 1.3rem; }
    
    /* Popup Animasyonu */
    @keyframes pop {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }
    .animate-pop { animation: pop 0.2s ease-in-out; }
}