/* STACK PROJECT - FINAL STYLE.CSS */

:root {
    --bg-color: #09090b;
    --card-bg: #18181b;
    --border-color: #27272a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 30px 20px; }

/* --- DASHBOARD BİLEŞENLERİ --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

h2, h3 { margin-top: 0; font-weight: 600; letter-spacing: -0.5px; }
h2 { font-size: 1.8rem; margin-bottom: 5px; }
h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }

.form-group { margin-bottom: 15px; }
label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
    width: 100%; background: #000; border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; color: #fff; font-size: 0.95rem; transition: 0.2s all; font-family: inherit; margin-bottom: 0;
}

.file-upload-wrapper { position: relative; width: 100%; margin-bottom: 5px; }
.file-upload-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.file-upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #000; border: 2px dashed var(--border-color); border-radius: 8px; padding: 20px; color: var(--text-secondary); font-size: 0.9rem; transition: 0.2s all; text-align: center; }
.file-upload-wrapper:hover .file-upload-label { border-color: var(--accent); color: #fff; background: rgba(99, 102, 241, 0.05); }

select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 40px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
textarea { resize: vertical; min-height: 100px; }
.color-picker-wrapper { display: flex; align-items: center; gap: 10px; background: #000; padding: 8px; border: 1px solid var(--border-color); border-radius: 8px; }
input[type="color"] { background: none; border: none; width: 40px; height: 35px; cursor: pointer; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; font-size: 0.95rem; transition: 0.2s; width: 100%; gap: 8px; color: #fff; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--border-color); width: auto; padding: 6px 12px; font-size: 0.85rem; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); width: auto; }
.btn-outline:hover { background: var(--border-color); }

.header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 350px 1fr; gap: 25px; }
.left-col { width: 100%; } .right-col { width: 100%; }
.avatar-preview { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; display: block; border: 3px solid var(--border-color); }
.link-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); padding: 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; transition: 0.2s; }
.link-item:hover { border-color: var(--text-secondary); background: rgba(255,255,255,0.05); }
.link-title { font-weight: 600; display: block; font-size: 1rem; }
.link-url { font-size: 0.8rem; color: var(--text-secondary); text-decoration: none; display: block; margin-top: 2px;}
.link-url:hover { color: var(--accent); }

/* --- LOGO & GİRİŞ --- */
.logo-img { height: 40px; width: auto; display: block; }
.auth-logo { height: 60px; margin-bottom: 20px; }
.auth-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: radial-gradient(circle at top left, #1e1b4b, #09090b 60%); }
.auth-card { width: 100%; max-width: 420px; background: rgba(24, 24, 27, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; }
.auth-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.auth-desc { color: var(--text-secondary); margin-bottom: 30px; font-size: 0.95rem; }
.auth-input-group { margin-bottom: 15px; text-align: left; }
.auth-footer { margin-top: 25px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* --- ANA SAYFA YAPI --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; margin-bottom: 40px; }
.hero-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px 100px; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin: 0 0 20px 0; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mockup-card { background: rgba(24, 24, 27, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 20px; width: 300px; margin: 0 auto; box-shadow: 0 0 50px rgba(99, 102, 241, 0.2); transform: rotateX(10deg) rotateY(-10deg); animation: float 6s ease-in-out infinite; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--border-color); }
.feature-box { background: rgba(255,255,255,0.02); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); }
@keyframes float { 0% { transform: translateY(0px) rotateX(10deg) rotateY(-10deg); } 50% { transform: translateY(-20px) rotateX(10deg) rotateY(-10deg); } 100% { transform: translateY(0px) rotateX(10deg) rotateY(-10deg); } }

/* --- FOOTER --- */
.main-footer { display: flex; justify-content: space-between; align-items: center; padding: 60px 0; margin-top: 80px; border-top: 1px solid var(--border-color); }
.footer-left { max-width: 300px; text-align: left; }
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 10px; }
.footer-right { display: flex; gap: 15px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: 12px; color: #fff; font-size: 1.5rem; text-decoration: none; transition: 0.3s; }
.social-btn:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3); }

/* --- PROFİL SAYFASI --- */
.profile-container { width: 100%; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; }
.glass-card { width: 100%; max-width: 450px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(16px); padding: 40px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); text-align: center; position: relative; }
.p-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, 0.15); margin-bottom: 15px; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.p-username { font-size: 1.6rem; font-weight: 700; margin: 0; color: #fff; }
.p-bio { color: #d4d4d8; font-size: 0.95rem; margin-top: 10px; margin-bottom: 30px; line-height: 1.6; white-space: pre-line; }
.p-btn { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; padding: 16px; margin-bottom: 12px; border-radius: 12px; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.05); font-weight: 600; font-size: 1rem; }
.p-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .header-bar { flex-direction: column; gap: 15px; text-align: center; }
    .header-actions { justify-content: center; width: 100%; }
    form[style*="display: flex"] { flex-direction: column; }
    .btn { width: 100%; }
    .hero-title { font-size: 2.5rem; }
    .main-footer { flex-direction: column; text-align: center; gap: 30px; }
    .footer-left { text-align: center; margin: 0 auto; }
}

/* --- YENİ PROFESYONEL İSTATİSTİK TASARIMI --- */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 80px;
    padding: 60px 20px;
}

.stat-box {
    background: #111;
    border: 1px solid #222;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s all;
}

/* Alt tarafa ince neon çizgi */
.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: #333;
    background: #131313;
}

.stat-box:hover::after {
    transform: scaleX(1);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1); /* Accent renginin saydam hali */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 1.8rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums; /* Sayılar oynama yapmaz */
}

.stat-title {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}