/* style.css - AI Agency Full Theme */
:root {
    --bg-color: #0f172a; /* Koyu Lacivert */
    --card-bg: #1e293b; /* Koyu Gri Panel */
    --text-color: #f1f5f9;
    --accent-color: #3b82f6; /* Mavi */
    --accent-hover: #2563eb;
    --text-muted: #94a3b8;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- GENEL ELEMENTLER --- */
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* Giriş Ekranı & Landing Page Butonları */
.btn-login {
    background-color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    color: white !important;
}
.login-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}
.login-btn:hover { background-color: var(--accent-hover); }

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* --- FORM ELEMENTLERİ (Giriş ve Panel İçin) --- */
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #020617;
    color: white;
    outline: none;
    font-size: 1rem;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent-color);
}

/* --- LOGIN & REGISTER SAYFASI --- */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.login-box {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.login-box h2 { text-align: center; margin-bottom: 1.5rem; color: white; }

/* --- DASHBOARD (PANEL) YAPISI --- */
.dashboard-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* --- STRATEJİK ÖNERİ KUTULARI (AIDA) --- */
.suggestion-card {
    background-color: rgba(255, 255, 255, 0.03); /* Çok hafif transparan arka plan */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Mouse üzerine gelince */
.suggestion-card:hover {
    background-color: rgba(59, 130, 246, 0.1); /* Hafif neon mavi (Tailwind blue-500) */
    border-color: #3b82f6 !important;
    transform: translateY(-3px); /* Hafif yukarı kalkar */
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.suggestion-card:hover .hover-icon {
    display: block !important; /* "Kullan" yazısını göster */
}

.suggestion-card p {
    color: #94a3b8; /* Okunabilir gri metin (slate-400) */
}

.suggestion-card:hover p {
    color: #fff; /* Hoverda metin parlasın */
}

/* Sol Menü (Sidebar) */
.sidebar {
    width: var(--sidebar-width);
    background-color: #111827;
    border-right: 1px solid #334155;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    z-index: 100;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
}

.welcome-user {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.welcome-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.username-display {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.nav-links li a {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    font-weight: 500;
    border-radius: 8px;
}

.nav-links li a:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
}

.nav-links li a.active-btn {
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-footer a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.settings-link {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
}

.settings-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.logout-link {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Main Container (wraps header + content) */
.main-container {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

/* Sticky Header */
.top-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    padding: 0.75rem 2.5rem;
    z-index: 40;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Business Dropdown - Left Side */
.header-business-dropdown {
    position: relative;
}

.business-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
}

.business-toggle:hover {
    opacity: 0.8;
}

.business-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.business-name {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 600;
}

.business-toggle i {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.business-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 250px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
}

.business-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #334155;
}

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

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.dropdown-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.dropdown-item.add-new {
    color: #60a5fa;
    font-weight: 500;
    border-top: 1px solid #334155;
}

.dropdown-item.add-new:hover {
    background: rgba(59, 130, 246, 0.2);
}

.dropdown-item i {
    font-size: 0.875rem;
    width: 1rem;
    text-align: center;
}

/* Balance - Right Side */
.header-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-balance i {
    font-size: 1.25rem;
    color: #fbbf24;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.balance-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.balance-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credit-amount {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 700;
}

.plan-badge {
    font-size: 0.7rem;
    color: #e2e8f0;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Notification - Right Side */
.header-notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-notification:hover i {
    color: #60a5fa;
}

.header-notification i {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.125rem 0.35rem;
    border-radius: 9999px;
    min-width: 1rem;
    text-align: center;
    line-height: 1;
}

/* Sağ Ana İçerik */
.main-content {
    padding: 2rem 3rem;
    background-color: var(--bg-color);
    min-height: calc(100vh - 60px);
}

/* --- LANDING PAGE (Ana Sayfa) --- */
header {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 50;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--accent-color); }
.hero {
    text-align: center;
    padding: 8rem 1rem;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%);
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.services { padding: 4rem 10%; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid #334155; }

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 1rem 5px;
    }
    .sidebar-logo { font-size: 0.7rem; }
    .nav-links li a { font-size: 0.8rem; text-align: center; padding: 10px 5px; }
    .main-content { margin-left: 70px; width: calc(100% - 70px); padding: 1.5rem; }
    .content-grid { grid-template-columns: 1fr !important; }
}