/**
 * KATODER CMS - Ana Stil Dosyası
 * Merkezi CSS değişkenleri, temel stiller ve ortak bileşenler
 * Antrasit Tema
 */

/* ==========================================
   CSS DEĞİŞKENLERİ - ANTRASİT TEMA
   ========================================== */
:root {
    /* Antrasit Ana Renkler */
    --primary: #2d2d2d;
    --primary-dark: #1a1a1a;
    --secondary: #363636;
    --charcoal: #4a4a4a;
    --graphite: #5a5a5a;

    /* Canlı Turuncu Accent */
    --accent: #ff8c00;
    --accent-hover: #ff9f1c;
    --accent-light: #ffa733;
    --accent-glow: rgba(255, 140, 0, 0.3);

    /* Metin Renkleri */
    --text-dark: #2d2d2d;
    --text-muted: #6b6b6b;
    --text-light: #8a8a8a;

    /* Arka Plan Renkleri */
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #2d2d2d;
    --bg-darker: #1a1a1a;

    /* Kenar Renkleri */
    --border-light: #e0e0e0;
    --border-medium: #c0c0c0;

    /* Gradient'ler - Antrasit Tema */
    --gradient-primary: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #ff8c00 0%, #ff9f1c 100%);
    --gradient-charcoal: linear-gradient(135deg, #363636 0%, #4a4a4a 100%);

    /* İkon Gradient'leri - Canlı Renkler */
    --gradient-orange: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    --gradient-teal: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --gradient-coral: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    --gradient-purple: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);

    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 8px 25px rgba(255, 140, 0, 0.35);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Geçişler */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Font */
    --font-primary: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ==========================================
   TEMEL STİLLER
   ========================================== */
body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* ==========================================
   TİPOGRAFİ
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================
   SAYFA BAŞLIĞI (HERO)
   ========================================== */
.page-hero {
    background: var(--gradient-primary);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb {
    background: transparent;
    margin-bottom: 1rem;
}

.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb-item.active {
    color: #fff;
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   KARTLAR
   ========================================== */
.card-modern {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-modern .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-modern .card-body {
    padding: 1.5rem;
}

.card-modern .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* İçerik Kartı */
.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

/* ==========================================
   BUTONLAR
   ========================================== */
.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    color: #fff;
    background: linear-gradient(135deg, #ff9f1c 0%, #ff8c00 100%);
}

.btn-primary-dark {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-primary-dark:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #000;
}

/* ==========================================
   FORMLAR
   ========================================== */
.form-control-modern,
.form-select-modern {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: var(--bg-light);
}

.form-control-modern:focus,
.form-select-modern:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    background: var(--bg-white);
}

.form-control-modern::placeholder {
    color: var(--text-light);
}

.form-label-modern {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.form-label-modern .required {
    color: #ef4444;
}

/* ==========================================
   ALERTLER
   ========================================== */
.alert-modern {
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-modern.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-modern.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-modern.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-modern.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.alert-modern i {
    font-size: 1.5rem;
}

/* ==========================================
   BADGEler
   ========================================== */
.badge-accent {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.badge-primary {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* ==========================================
   SOSYAL MEDYA LİNKLERİ
   ========================================== */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================
   SAĞ SIDEBAR
   ========================================== */
.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

/* ==========================================
   LİSTE ÖĞELERİ
   ========================================== */
.list-item-hover {
    display: flex;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    margin-bottom: 0.5rem;
    background: transparent;
}

.list-item-hover:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

/* ==========================================
   PAGİNASYON
   ========================================== */
.pagination-modern .page-link {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin: 0 4px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination-modern .page-link:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.pagination-modern .page-item.active .page-link {
    background: var(--accent);
    color: #000;
}

/* ==========================================
   İKON KUTULARI
   ========================================== */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: #fff;
}

.icon-box.icon-gradient-purple {
    background: var(--gradient-purple);
}

.icon-box.icon-gradient-pink {
    background: var(--gradient-pink);
}

.icon-box.icon-gradient-green {
    background: var(--gradient-green);
}

.icon-box.icon-gradient-blue {
    background: var(--gradient-blue);
}

.icon-box.icon-gradient-accent {
    background: var(--gradient-accent);
}

/* ==========================================
   ACCORDİON
   ========================================== */
.accordion-modern .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-modern .accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
}

.accordion-modern .accordion-button:not(.collapsed) {
    color: var(--text-dark);
    background: var(--bg-light);
    box-shadow: none;
}

.accordion-modern .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-light);
}

.accordion-modern .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================
   ANİMASYONLAR
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animasyon gecikmeleri */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* ==========================================
   RESPONSİVE
   ========================================== */
@media (max-width: 991px) {
    .page-hero {
        padding: 80px 0 60px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .content-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 60px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}