:root {
    --bg-dark: #1a1c20;
    --surface-dark: #25282e;
    --border-dark: #3a3e45;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a2a6;
    --accent-color: #00aeff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow: hidden; /* Ana gövdede kaydırmayı engelle */
}

/* Yeni Ana Yapı */
.main-content, .sidebar {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.header h1 {
    font-weight: 600;
}

.header nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.header nav a:hover {
    font-weight: 600;
    transform: scale(1.1);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface-dark);
    border-radius: 1.25rem; /* Daha yuvarlak kenarlar */
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px); /* Safari desteği */
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }


@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.auth-card h3 {
    margin-bottom: 1.5rem;
}

#login-form, #user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

#login-form input {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    outline: none;
    transition: background 0.3s ease;
}

#login-form input:focus {
    background: var(--surface-dark);
    border-color: var(--accent-color);
}

#login-form input::placeholder {
    color: var(--text-secondary);
}

.btn-auth {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-auth.secondary {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
}

/* İçerik Fikirleri Kartı */
.content-ideas-card h3 {
    margin-bottom: 1rem;
}

.content-ideas-card ul {
    list-style: none;
}

.content-ideas-card li {
    margin-bottom: 0.8rem;
}

.content-ideas-card a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.content-ideas-card a:hover {
    color: var(--accent-color);
}

.btn-refresh {
    background: var(--accent-color);
    color: var(--bg-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-refresh:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Analiz Kartı */
.details-link {
    display: block;
    text-align: right;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
}

/* Arka Plan Animasyonları */
.circle1, .circle2 {
    background: linear-gradient(to right, rgba(0, 174, 255, 0.1), rgba(0, 174, 255, 0.05));
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: move 25s linear infinite;
}

.circle1 {
    width: 20rem;
    height: 20rem;
    top: 5%;
    left: 10%;
}

.circle2 {
    width: 15rem;
    height: 15rem;
    bottom: 5%;
    right: 10%;
    animation-delay: 5s;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    25% { transform: translate(100px, 50px); }
    50% { transform: translate(50px, 100px); }
    75% { transform: translate(-50px, 50px); }
    100% { transform: translate(0, 0); }
}

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    display: none; /* Varsayılan olarak gizli */
}

.modal-content {
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.privacy-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}

.privacy-check a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Yan Menü (Sidebar) Stilleri */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px; /* Daraltılmış genişlik */
    background: var(--surface-dark);
    border-right: 1px solid var(--border-dark);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px; /* Genişletilmiş genişlik */
}

.sidebar-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding: 1rem 0;
}

.sidebar-nav {
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1.2rem 25px; /* İkonlar için hizalama */
    font-size: 1.5rem; /* İkon boyutu */
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 174, 255, 0.1);
}

.nav-link span {
    margin-left: 25px;
    font-size: 1rem; /* Metin boyutu */
}

.sidebar-footer {
    padding-bottom: 1rem;
}

/* Ana İçerik Alanı Stilleri */
.main-content {
    margin-left: 80px; /* Daraltılmış menü genişliği kadar boşluk */
    width: calc(100% - 80px);
    padding: 2rem 3rem;
    overflow-y: auto; /* Sadece ana içerik alanında kaydırma */
    height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sidebar:hover ~ .main-content {
    margin-left: 250px; /* Genişletilmiş menü genişliği kadar boşluk */
    width: calc(100% - 250px);
}

.content-section {
    display: none; /* Varsayılan olarak tüm bölümler gizli */
    animation: fadeIn 0.5s ease-out forwards;
}

.content-section.active {
    display: block; /* Sadece aktif olan bölüm görünür */
}

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* Ayarlar Kartı Stilleri */
.settings-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-primary);
}
.settings-card input {
    all: unset; /* Tarayıcı stillerini sıfırla */
    background: var(--bg-dark);
    border: 2px solid var(--border-dark);
    border-radius: 2rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    box-sizing: border-box; /* padding'in genişliği etkilememesi için */
}

.settings-card input:focus {
    background: var(--surface-dark);
    border-color: var(--accent-color) !important;
}

/* Detaylı Kart Stilleri */
.stat-card {
    padding: 1.5rem;
}

.stat-card .stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.stat-card .stat-title {
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 600;
}

.stat-card .stat-change {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.stat-change.positive {
    color: #4caf50;
}

.stat-change.negative {
    color: #f44336;
}

.idea-item {
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 0;
}

.idea-item:last-child {
    border-bottom: none;
}

.idea-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.idea-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.idea-meta .tag {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
    font-weight: 600;
}
