/* ==========================================================
   YKS 2027 Kişisel Çalışma Programı - Temel Tasarım & Düzen
   ========================================================== */

:root {
    /* Renk Paleti - Sade, Minimalist, Premium */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    --bg-subtle: #f1f5f9;
    --bg-muted: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f8fafc;

    --border-subtle: #e2e8f0;
    --border-focus: #3b82f6;

    /* Zarif Vurgu Renkleri */
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-subtle: #eff6ff;

    --accent-green: #10b981;
    --accent-green-subtle: #ecfdf5;

    --accent-amber: #f59e0b;
    --accent-amber-subtle: #fffbeb;

    --accent-purple: #8b5cf6;
    --accent-purple-subtle: #f5f3ff;

    --accent-danger: #ef4444;
    --accent-danger-subtle: #fef2f2;

    /* Tipografi */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Boşluklar & Yarıçaplar */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    --sidebar-width: 215px;
    --transition-fast: 0.15s ease;
}

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ----------------------------------------------------
   UYGULAMA DÜZENİ (APP SHELL)
   ---------------------------------------------------- */
.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Kenar Çubuğu (Sidebar) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transition: transform var(--transition-fast);
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    color: #ffffff;
    background-color: var(--bg-sidebar-hover);
}

.nav-item.active {
    color: #ffffff;
    background-color: rgba(59, 130, 246, 0.15);
    font-weight: 600;
    border-left: 3px solid #3b82f6;
}

.nav-item svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cloud-status-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.status-dot.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.status-dot.syncing {
    background-color: var(--accent-warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
    animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Ana İçerik Alanı (Main Content Area) */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    width: calc(100% - var(--sidebar-width));
}

/* Üst Başlık (Header) */
.top-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.page-headline {
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    background-color: var(--accent-blue-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    margin-top: 0.2rem;
    width: fit-content;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Mod Değiştirici (Mode Switcher) */
.mode-toggle-group {
    background-color: var(--bg-subtle);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    display: flex;
    border: 1px solid var(--border-subtle);
}

.mode-btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn.active {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.mode-btn svg {
    width: 16px;
    height: 16px;
}

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

/* ----------------------------------------------------
   GÖRÜNÜM ALANI (VIEW CONTAINERS)
   ---------------------------------------------------- */
.view-container {
    padding: 2rem;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

#view-schedule.view-container {
    max-width: 100%;
    padding: 1.5rem 1.5rem;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

/* Sayfa Başlığı ve Filtreler Barı */
.view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.toolbar-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
