@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===================== KURUMSAL KTÜN RENK PALETİ ===================== */
:root {
    --primary-color: #b52525;
    --secondary-color: #111111;
    --accent-color: #dc2626; 
    --text-dark: #222222;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.98); 
    --glass-border: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08); 
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.text-secondary-color {
    color: var(--secondary-color) !important;
}

.nav-link, .btn, .card-premium, .sidebar-link {
    transition: all 0.25s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, .navy-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary-color); /* Başlıklar artık siyah */
}

/* ===================== HEADER & NAVIGATION ===================== */
.navbar {
    background: #ffffff;
    border-bottom: 3px solid var(--primary-color); /* Kırmızı alt çizgi */
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

    .navbar.scrolled {
        padding: 0.4rem 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
    }

.hanging-brand {
    position: relative;
    z-index: 1040;
    transition: all 0.4s ease;
}

.brand-logo {
    max-height: 70px; /* Sarkan logo devasa olmasın diye küçültüldü */
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .brand-logo {
    max-height: 50px;
}

.brand-text {
    transition: all 0.4s ease;
}

.navbar.scrolled .brand-text {
    transform: scale(0.95);
}

.brand-name {
    color: var(--secondary-color); /* Siyah üniveriste adı */
    font-size: 1.25rem;
    font-weight: 800;
}

.navbar.scrolled .brand-name {
    font-size: 1.15rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.navbar.scrolled .brand-tagline {
    font-size: 0.75rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 0.4rem; /* Daha keskin hatlar */
    font-size: 0.95rem;
}

    .nav-link:hover {
        background-color: #f1f5f9;
        color: var(--primary-color) !important;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(190, 0, 0, 0.06);
    }

/* ===================== CARDS & COMPONENTS ===================== */
.card-premium {
    background: white;
    border: 1px solid #eaeaea; /* Daha belirgin sınır */
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

    .card-premium:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(190, 0, 0, 0.15);
    }

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(190, 0, 0, 0.08); /* Kırmızı arka plan */
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===================== BUTTONS ===================== */
.btn-premium-primary {
    background-color: var(--primary-color); /* Kırmızı buton */
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(190, 0, 0, 0.2);
}

    .btn-premium-primary:hover {
        background-color: var(--secondary-color); /* Üzerine gelince siyah */
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        color: white;
    }

.btn-premium-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

    .btn-premium-outline:hover {
        background-color: var(--secondary-color);
        color: white;
    }

/* ===================== FOOTER ===================== */
.footer-premium {
    background: var(--secondary-color); /* Tam siyah */
    background-image: none !important; /* Grid çizgisi yasağı */
    border-top: 4px solid var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: white;
    }

/* ===================== ADMIN SIDEBAR ===================== */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #111111; /* Admin menüsü artık kurumsal siyah */
    border-right: 1px solid #222;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

    .admin-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .admin-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.15);
        border-radius: 4px;
    }

.admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
    background: var(--bg-light);
    min-width: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

    .sidebar-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
        border-left-color: var(--text-muted);
        transform: translateX(4px);
    }

    .sidebar-link.active {
        color: #fff;
        background: rgba(190, 0, 0, 0.15);
        border-left-color: var(--primary-color); /* Aktif menü KTÜN kırmızısı */
        font-weight: 600;
    }

    .sidebar-link i {
        width: 20px;
        text-align: center;
        font-size: 1rem;
        opacity: 0.8;
    }

    .sidebar-link.active i,
    .sidebar-link:hover i {
        opacity: 1;
        color: #ffffff;
    }

/* ===================== BREADCRUMBS ===================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
        padding: 1rem 0;
    }

        .admin-sidebar nav {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            padding: 0 0.5rem;
        }

    .sidebar-link {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 0.8rem;
    }

        .sidebar-link.active {
            border-bottom-color: var(--primary-color);
            border-left: none;
        }

        .sidebar-link:hover {
            transform: none;
        }

    .admin-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        display: block !important;
        max-height: 40px;
    }

    .brand-name {
        font-size: 0.95rem !important;
    }

    .brand-tagline {
        font-size: 0.65rem !important;
    }
}
