:root {
    --primary: #6366f1;
    --primary-bright: #818cf8;
    --bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigasyon Barı */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-bright);
}

.nav-links a.active {
    color: var(--text-main);
}

/* Arka Plan Glow Efekti */
.glow-bg {
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(80px);
    z-index: -1;
}

/* Container & Layout */
.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Elemanları (Login/Register/Input) */
.input-wrapper, .auth-form {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.auth-form {
    flex-direction: column;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.auth-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    padding: 10px;
}

/* Butonlar */
button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    background: var(--primary-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Kartlar ve History */
.result-grid {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 18px;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.section h3 {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--primary-bright);
    margin-bottom: 12px;
}

/* Loading Spinner */
.loading {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Mesajları */
.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--error); color: var(--error); }
.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid var(--success); color: var(--success); }

/* Responsive */
@media (max-width: 600px) {
    .nav-bar { padding: 15px 20px; }
    .input-wrapper { flex-direction: column; padding: 15px; }
    button { width: 100%; }
}