@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Neon Colors */
    --accent-cyan: #00f2fe;
    --accent-purple: #4facfe;
    --accent-pink: #f093fb;
    --accent-glow: rgba(0, 242, 254, 0.5);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-neon: 0 0 15px var(--accent-glow);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(240, 147, 251, 0.15), transparent 25%);
    background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 12px;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Layout container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 16px;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    color: #fff;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Auth Cards */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.auth-card .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-links {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--accent-purple);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Home Grid */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--bg-glass);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    .hero-text h1 { font-size: 2.5rem; }
}

/* Global Page Loader */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}
#global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
#global-loader .spinner {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
#global-loader .loader-text {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navbar Mobile Optimizasyon */
    .navbar {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .nav-links::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: var(--border-glass);
        border-radius: 4px;
    }

    /* Genel Düzen (Dashboard vb.) */
    .home-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    /* İlerleme Çubukları Mobilde Düzgün Dursun */
    .progress-box {
        margin-bottom: 10px;
    }
}
