/* AcademyICO SEM Platform - Custom Styles */

:root {
    --primary: #9333ea; /* Mor (primary) */
    --primary-dark: #7e22ce;
    --primary-light: #a855f7;
    --secondary: #6366f1; /* Indigo */
    --success: #10b981; /* Yeşil */
    --danger: #ef4444; /* Kırmızı */
    --warning: #f59e0b; /* Amber */
    --info: #3b82f6; /* Mavi */
    --light: #f3f4f6;
    --dark: #1f2937;
    --bs-border-radius: 0.75rem;
}

/* Genel Stillendirmeler */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

.text-purple {
    color: var(--primary);
}

.bg-purple {
    background-color: var(--primary);
}

/* Butonlar */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
}

.navbar-light .navbar-nav .nav-link {
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link.active, 
.navbar-light .navbar-nav .nav-link:hover {
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--primary);
}

/* Hero bölümü */
.hero-section {
    position: relative;
    background: linear-gradient(to right, #6026cc, var(--primary));
    color: white;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-section .background-shape {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    filter: blur(70px);
}

.hero-section .background-shape-1 {
    top: -100px;
    right: -100px;
}

.hero-section .background-shape-2 {
    bottom: -150px;
    left: -150px;
}

.hero-title {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Arama Kutusu */
.search-form {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-form .form-control {
    height: 60px;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-form .btn {
    height: 60px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Kategori Kartları */
.category-card {
    border-radius: var(--bs-border-radius);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.category-icon i {
    font-size: 2rem;
}

/* Kurs Kartları */
.course-card {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 200px;
    object-fit: cover;
}

.badge-pill {
    border-radius: 50rem;
    padding: 0.5em 1em;
    font-weight: 500;
}

/* Admin Panel */
.admin-sidebar {
    min-height: 100vh;
    background-color: #fff;
    border-right: 1px solid #e2e8f0;
}

.admin-sidebar .nav-link {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--primary);
}

.admin-sidebar .nav-link.active {
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
}

.admin-topbar {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.stat-card {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.stat-card .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Duyarlı (Responsive) tasarım düzenlemeleri */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
}

/* Yardımcı sınıflar */
.hover-opacity:hover {
    opacity: 0.8;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    width: 60px;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-hover:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}