/**
 * zeyram — Özel CSS
 * Tailwind CDN üzerine ek stiller
 */

/* =====================================================
   ROOT DEĞİŞKENLER
   ===================================================== */
:root {
    --brand-orange:    #3b82f6;
    --brand-orange-dk: #2563eb;
    --brand-dark:      #1a1a1a;
    --brand-cream:     #f8f6f0;
    --transition:      0.2s ease;
}

/* =====================================================
   GENEL
   ===================================================== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
}

/* Scroll bar özelleştirme */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand-orange); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-orange-dk); }

/* Seçim rengi */
::selection { background: var(--brand-orange); color: #fff; }

/* =====================================================
   NAVIGASYON
   ===================================================== */
.nav-link {
    position: relative;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    width: 0; height: 2px;
    background: var(--brand-orange);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* =====================================================
   BUTONLAR
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.btn-primary:hover {
    background: var(--brand-orange-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 700;
    border: 2px solid var(--brand-dark);
    border-radius: 0.75rem;
    transition: all var(--transition);
}
.btn-secondary:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* =====================================================
   İSTATİSTİK KARTLARI
   ===================================================== */
.stat-card {
    background: #eff6ff;
}
html.dark .stat-card,
.dark .stat-card {
    background: rgba(30, 58, 138, 0.30) !important;
    border: 1px solid rgba(30, 58, 138, 0.40) !important;
}
html.dark .stat-card:hover,
.dark .stat-card:hover {
    background: rgba(30, 58, 138, 0.45) !important;
}

/* =====================================================
   KARTLAR
   ===================================================== */
.card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    border-color: rgba(59,130,246,.25);
}

/* =====================================================
   FORMLAR
   ===================================================== */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-input.error { border-color: #ef4444; }

/* =====================================================
   BADGE / ROZET
   ===================================================== */
.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.6;
}
.badge-orange  { background: rgba(59,130,246,.15); color: var(--brand-orange); }
.badge-green   { background: #d1fae5; color: #065f46; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: #f3f4f6; color: #6b7280; }
.badge-blue    { background: #dbeafe; color: #1d4ed8; }

/* =====================================================
   HERO
   ===================================================== */
.hero-gradient {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #2d2d2d 60%, #1a1a2e 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle, rgba(59,130,246,.12) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* =====================================================
   KURS KARTLARI — line-clamp
   ===================================================== */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* =====================================================
   STICKY SOSYAL MEDYA ÇUBUĞU
   ===================================================== */
.social-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.social-bar a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    overflow: hidden;
    width: 42px;
    transition: width var(--transition), border-radius var(--transition);
    white-space: nowrap;
    border-radius: 0 0.5rem 0.5rem 0;
}
.social-bar a:hover { width: 120px; border-radius: 0 0.75rem 0.75rem 0; }
.social-bar a svg { width: 18px; height: 18px; flex-shrink: 0; margin-right: 0.5rem; }

/* =====================================================
   BACK TO TOP
   ===================================================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(59,130,246,.4);
    cursor: pointer;
    transition: opacity .3s, transform .3s;
}
#back-to-top.opacity-0 { opacity: 0; transform: translateY(8px); }
#back-to-top:hover { transform: translateY(-3px); }

/* =====================================================
   WHATSAPP BUTONU
   ===================================================== */
.wa-btn-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid #25d366;
    animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* =====================================================
   PROGRESS BAR (sayfa yükleme)
   ===================================================== */
#page-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--brand-orange);
    z-index: 9999;
    transition: width .3s ease;
}

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    transition: all var(--transition);
}
.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: rgba(59,130,246,.15);
    color: var(--brand-orange);
}
.admin-sidebar-link.active { font-weight: 700; }

/* =====================================================
   TABLOlar
   ===================================================== */
.data-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.data-table td { font-size: 0.875rem; color: #374151; }
.data-table tr:hover td { background: #fafafa; }

/* =====================================================
   ÇEREZ BANNER ANİMASYON
   ===================================================== */
#cookie-banner {
    animation: slideUp .5s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* =====================================================
   MEDYA SORGULARI
   ===================================================== */
@media (max-width: 768px) {
    .social-bar { display: none; }
    #back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
}

/* =====================================================
   YAZDIRMA
   ===================================================== */
@media print {
    .no-print, nav, footer, .social-bar, #back-to-top, #cookie-banner { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}
