/**
 * Haliloğulları Soy Ağacı - Beyaz Şeffaf Uzay Teması
 */

/* ===== GENEL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Beyaz-Şeffaf Renk Paleti */
    --primary-color: #ffffff;
    --secondary-color: rgba(255, 255, 255, 0.9);
    --accent-color: rgba(255, 255, 255, 0.7);
    
    /* Arka Plan (Uzay Karanlığı) */
    --bg-space: #000000;
    --bg-deep-space: #0a0a0a;
    
    /* Glassmorphism Beyaz */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.05);
    
    /* Yazı Renkleri */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Diğer Renkler */
    --success-color: #4ade80;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    
    /* Sabitler */
    --sidebar-width: 280px;
    --mobile-bottom-bar-height: 70px;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-space);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== UZAY ARKA PLAN ANIMASYONU (GELİŞTİRİLMİŞ) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    z-index: 0;
    animation: spaceShift 25s ease-in-out infinite;
}

@keyframes spaceShift {
    0% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 0.7;
        transform: scale(1.1) rotate(2deg);
    }
    66% { 
        opacity: 0.8;
        transform: scale(1.05) rotate(-2deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Yıldızlar Animasyonu (GELİŞTİRİLMİŞ) */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    animation: starsMove 60s linear infinite;
}

@keyframes starsMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5);
    }
}

/* Parıltı efekti (GELİŞTİRİLMİŞ) */
.glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: float 20s ease-in-out infinite;
    filter: blur(60px);
}

.glow-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.glow-2 {
    bottom: 15%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(60px, -40px) scale(1.15);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, 30px) scale(1.1);
        opacity: 0.7;
    }
}

/* Yıldızlar Animasyonu */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Parıltı efekti */
.glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: float 15s ease-in-out infinite;
}

.glow-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.glow-2 {
    bottom: 20%;
    right: 15%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.6;
    }
}

/* ===== SCROLLBAR (Beyaz) ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ===== SOL SIDEBAR (Desktop) ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Sidebar Menü */
.sidebar-menu {
    padding: 30px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--glass-bg-hover);
    transition: var(--transition);
    z-index: -1;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    color: var(--text-primary);
    border-left-color: var(--primary-color);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.menu-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 50px;
    min-height: 100vh;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 50px;
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.page-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    transition: var(--transition);
    opacity: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.6rem;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: var(--success-color);
    color: #000;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.5);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: 35px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 40px 30px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }
    
    /* Sidebar'ı gizle */
    .sidebar {
        display: none;
    }
    
    /* Main content tam genişlik */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px calc(var(--mobile-bottom-bar-height) + 20px);
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 25px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* ===== MOBİL ALT BAR ===== */
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--mobile-bottom-bar-height);
        background: var(--glass-bg);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
    }
    
    .bottom-bar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition);
        border-radius: 10px;
    }
    
    .bottom-bar-item:hover,
    .bottom-bar-item.active {
        background: var(--glass-bg-hover);
        color: var(--text-primary);
    }
    
    .bottom-bar-item i {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    .bottom-bar-item span {
        font-size: 0.7rem;
        font-weight: 500;
    }
}

/* Desktop'ta mobil barı gizle */
@media (min-width: 769px) {
    .mobile-bottom-bar {
        display: none;
    }
}

/* ===== METEOR YAĞMURU (İSTEĞE BAĞLI) ===== */
.meteor {
    position: fixed;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: meteorFall linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

@keyframes meteorFall {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-45deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(300px) translateY(300px) rotate(-45deg);
    }
}