@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. TEMEL DEĞİŞKENLER VE RENKLER
   ========================================= */
:root {
    --primary: #2e55e6;
    --primary-dark: #1e3a8a;
    --secondary: #64748b;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --sidebar-bg: #1e293b;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* DARK MODE (GECE MODU) */
body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* TEMEL AYARLAR */
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; padding: 0; transition: background-color 0.3s ease; }
a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

/* =========================================
   2. LAYOUT (İSKELET VE SIDEBAR)
   ========================================= */
.wrapper { display: flex; min-height: 100vh; transition: 0.3s; }

/* Sidebar */
.sidebar {
    width: 260px; background-color: var(--sidebar-bg); color: #fff;
    flex-shrink: 0; display: flex; flex-direction: column;
    height: 100vh; position: sticky; top: 0; z-index: 1000;
    transition: 0.3s;
}
.sidebar-header {
    height: 70px; display: flex; align-items: center; padding: 0 25px;
    font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-menu { list-style: none; padding: 20px 0; margin: 0; flex-grow: 1; }
.sidebar-menu li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 25px;
    color: #94a3b8; transition: 0.3s; border-left: 3px solid transparent; font-size: 14px; font-weight: 500;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: rgba(255,255,255,0.05); color: var(--primary); border-left-color: var(--primary);
}
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

/* Main Content */
.main-content { flex-grow: 1; display: flex; flex-direction: column; width: 100%; overflow-x: hidden; }
.top-bar {
    height: 70px; background: var(--bg-card); display: flex; align-items: center; justify-content: space-between;
    padding: 0 25px; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 900;
    border-bottom: 1px solid var(--border);
}
.content-body { padding: 30px; }

/* =========================================
   3. KARTLAR, FORMLAR VE TABLOLAR
   ========================================= */
.card {
    background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow);
    padding: 25px; margin-bottom: 30px; border: 1px solid var(--border);
}
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border);
}
.card-title, .card h2, .card h3 { font-size: 18px; font-weight: 600; margin: 0; color: var(--text-main); }

/* Form Elemanları */
.form-group { margin-bottom: 15px; }
.form-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--text-light); }
input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    background: var(--bg-body); color: var(--text-main);
    border-radius: 8px; margin-bottom: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 85, 230, 0.1);
}

/* Butonlar */
.btn {
    padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    color: white; background: var(--primary); font-size: 14px; font-weight: 500; transition: 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-danger { background: #ef4444; }
.btn-sm { padding: 6px 12px; font-size: 12px; width: auto; }
.btn-block { width: 100%; }

/* Tablolar */
.table-responsive { overflow-x: auto; }
.custom-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.custom-table th { text-align: left; padding: 15px; background: var(--bg-body); color: var(--text-light); font-size: 12px; text-transform: uppercase; }
.custom-table td { padding: 15px; border-bottom: 1px solid var(--border); color: var(--text-main); font-size: 14px; }

/* =========================================
   4. EĞİTİM KARTLARI VE ROZETLER
   ========================================= */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.course-card {
    background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; position: relative; z-index: 1;
    border: 1px solid var(--border); transition: transform 0.2s;
}
.course-card:hover { transform: translateY(-5px); z-index: 10; }

.course-thumb-wrapper {
    position: relative; width: 100%; height: 180px; overflow: hidden;
    border-top-left-radius: 12px; border-top-right-radius: 12px;
}
.course-thumb { width: 100%; height: 100%; object-fit: cover; }

.course-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.course-title { font-size: 16px; font-weight: 700; margin: 10px 0; color: var(--text-main); }
.course-desc { font-size: 13px; color: var(--text-light); margin-bottom: 15px; line-height: 1.5; }
.badge { background: #eff6ff; color: var(--primary); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; width: fit-content; }



/* ============================
   YENİ HEDİYE ETİKETİ (RESİM ALTI)
   ============================ */

/* Rozetleri yan yana dizen kapsayıcı */
.course-badges-row {
    display: flex;
    justify-content: space-between; /* Biri sola, biri sağa yaslansın */
    align-items: center;
    margin-bottom: 10px; /* Başlıktan uzaklık */
}

/* Mevcut 'Eğitim' rozetinin alt boşluğunu sıfırlayalım */
.badge {
    margin-bottom: 0 !important; 
}

/* Yeni Hediye Etiketi */
.gift-label {
    background-color: #dc2626; /* Canlı Kırmızı */
    color: #ffffff; /* Beyaz Yazı */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
    
    /* Yanıp Sönme Animasyonu */
    animation: blinkRed 1.5s infinite ease-in-out;
}

/* Yanıp Sönme Efekti */
@keyframes blinkRed {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); } /* Hafif soluklaş ve küçül */
    100% { opacity: 1; transform: scale(1); }
}






/* İÇERİK SAYAÇLARI (Video/Dosya Rozetleri) */
.meta-info { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.meta-badge {
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 5px;
}
.meta-badge.video { background: #ffe4e6; color: #db2777; }
.meta-badge.file { background: #fef3c7; color: #d97706; }
.meta-badge.empty { background: var(--bg-body); color: var(--text-light); border: 1px solid var(--border); }

/* FAVORİ BUTONU */
.fav-btn {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.5); color: white;
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; z-index: 20; border:none;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { background: #ef4444; animation: pop 0.3s; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* =========================================
   5. VİDEO OYNATICI (PLAYER) & LİSTELER
   ========================================= */
.player-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 25px; }

.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; background: #000;
    border-radius: 12px; overflow: hidden; margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Sidebar Listeleri (Video/Dosya) */
.sidebar-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 20px;
}
.sidebar-header {
    background: var(--bg-body); padding: 15px;
    border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-main);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }

.list-item {
    padding: 12px 15px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; color: var(--text-main);
    font-size: 14px; transition: 0.2s; border-left: 3px solid transparent;
}
.list-item:hover, .list-item.active {
    background: var(--bg-body); color: var(--primary); border-left-color: var(--primary);
}
.item-icon { color: var(--text-light); }
.list-item:hover .item-icon { color: var(--primary); }

.download-btn {
    margin-left: auto; background: var(--bg-body); width: 30px; height: 30px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--text-light);
}

/* İlerleme Çubuğu (Progress Bar) */
.progress-wrapper { margin-bottom: 15px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 5px; }
.progress-track { width: 100%; height: 6px; background-color: var(--border); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #2e55e6, #60a5fa); border-radius: 10px; transition: width 1s ease; }

/* Tamamlama Butonu */
.btn-complete {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
    border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-complete.incomplete { background: var(--bg-body); border: 1px solid var(--border); color: var(--text-light); }
.btn-complete.completed { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }

/* =========================================
   6. DİĞER BİLEŞENLER (Duyuru, Yorum, Sertifika)
   ========================================= */
/* Duyurular */
.notice-board {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white;
    padding: 20px; border-radius: 12px; margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.notice-title { font-weight: bold; font-size: 16px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }

/* Yorumlar */
.comment-box {
    background: var(--bg-body); padding: 15px; border-radius: 8px;
    margin-bottom: 10px; border: 1px solid var(--border);
}
.comment-user { font-weight: bold; color: var(--primary); font-size: 14px; }
.comment-date { font-size: 11px; color: var(--text-light); float: right; }

/* Dashboard İstatistikleri */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: var(--bg-card); padding: 25px; border-radius: 12px;
    box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border);
}
.stat-info h3 { margin: 0; font-size: 24px; color: var(--text-main); }
.stat-info p { margin: 5px 0 0; color: var(--text-light); font-size: 14px; }
.stat-icon {
    width: 50px; height: 50px; background: #eff6ff; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* Sertifika */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cert-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 10px; box-shadow: var(--shadow);
}
.cert-icon { width: 60px; height: 60px; background: #fef9c3; color: #ca8a04; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 10px; }
.btn-view-cert { width: 100%; padding: 10px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; }

/* Modal & Sertifika Kağıdı */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
.modal-content { background-color: transparent; margin: auto; padding: 0; border: none; width: auto; max-width: 900px; }
.close-modal-btn { position: absolute; top: -40px; right: 0; color: white; font-size: 30px; cursor: pointer; background: none; border: none; }
.certificate-paper { width: 800px; height: 600px; padding: 20px; background: #fff; border: 10px solid #333; position: relative; text-align: center; font-family: 'Times New Roman', serif; color: #333; display: flex; flex-direction: column; justify-content: center; margin: 0 auto; }
.cert-inner-border { border: 5px double #c5a059; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; }
.cert-title { font-size: 48px; font-weight: bold; margin-bottom: 10px; color: #c5a059; }
.cert-name { font-size: 42px; font-weight: bold; border-bottom: 2px solid #333; margin-bottom: 20px; }
.cert-signature { margin-top: 50px; display: flex; justify-content: space-around; width: 100%; }

@media print {
    body * { visibility: hidden; }
    #printableArea, #printableArea * { visibility: visible; }
    #printableArea { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; }
    .modal { background: white; } .no-print { display: none !important; }
}

/* =========================================
   7. MOBİL UYUM (RESPONSIVE)
   ========================================= */
.menu-toggle { display: none; font-size: 24px; background: none; border: none; color: var(--text-main); margin-right: 15px; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -260px; }
    .sidebar.active { left: 0; }
    .menu-toggle { display: block; }
    .content-body { padding: 15px; }
    
    /* Gridleri Tek Sütuna Düşür */
    .course-grid, .player-grid, .stats-grid, .cert-grid {
        grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 15px;
    }
    
    .sidebar-overlay.active { display: block; }
    
    /* Mobil İyileştirmeler */
    .top-bar { padding: 0 15px; height: 60px; }
    .page-header { font-size: 16px; }
    .card-title { font-size: 16px; }
    
    /* Mobilde listeler daha kompakt olsun */
    .sidebar-card { margin-bottom: 15px; }
    .list-item { padding: 10px; font-size: 13px; }
}

/* =========================================
   8. PORTAL / LANDING PAGE (VİTRİN)
   ========================================= */
/* Vitrin Header */
.portal-header {
    background: #fff; height: 80px; display: flex; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.portal-logo { font-size: 24px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }

/* Hero Banner (Büyük Giriş Alanı) */
.hero-section {
    background: linear-gradient(135deg, #2e55e6 0%, #1e3a8a 100%);
    color: white; padding: 120px 0; text-align: center; margin-bottom: 50px;
}
.hero-content h1 { font-size: 48px; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero-content p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 30px auto; }
.btn-light {
    background: white; color: var(--primary); padding: 15px 40px;
    border-radius: 50px; font-weight: 700; font-size: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s;
}
.btn-light:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

/* Vitrin Butonları */
.portal-buttons { display: flex; gap: 10px; margin-top: auto; }
.btn-outline {
    border: 2px solid var(--primary); color: var(--primary); background: transparent;
    padding: 8px 25px; border-radius: 50px; font-weight: 600; transition: 0.3s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* Section Başlıkları */
.section-title { text-align: center; font-size: 32px; color: #1e293b; margin-bottom: 50px; font-weight: 700; }

/* Footer */
.portal-footer { background: #1e293b; color: #94a3b8; padding: 50px 0; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { margin-left: 20px; transition: 0.2s; }
.footer-links a:hover { color: white; }

/* MOBİL DÜZELTMELERİ (PORTAL) */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .portal-buttons { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .portal-footer { padding: 30px 0; }
}



/* =========================================
   9. PREMIUM LANDING PAGE (VİTRİN - YENİ)
   ========================================= */

/* GENEL AYARLAR */
.landing-body { background-color: #f8f9fa; font-family: 'Poppins', sans-serif; color: #334155; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.landing-header {
    background: #fff; height: 80px; display: flex; align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 24px; font-weight: 800; color: #2e55e6; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.btn-header-login {
    border: 2px solid #2e55e6; color: #2e55e6; padding: 8px 25px;
    border-radius: 50px; font-weight: 600; transition: 0.3s; text-decoration: none;
}
.btn-header-login:hover { background: #2e55e6; color: white; }

/* HERO SECTION (BANNER) */
.landing-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white; padding: 100px 0 150px 0; text-align: center;
    position: relative; overflow: hidden;
}
/* Arka plan deseni */
.landing-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.05;
}
.hero-content { position: relative; z-index: 10; }
.hero-title { font-size: 48px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; letter-spacing: -1px; }
.hero-desc { font-size: 18px; opacity: 0.8; max-width: 700px; margin: 0 auto 30px auto; line-height: 1.6; }

/* GÜVEN KUTUCUKLARI (FEATURES) */
.features-bar {
    margin-top: -80px; position: relative; z-index: 20;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; margin-bottom: 80px;
}
.feature-box {
    background: white; padding: 30px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center;
    transition: transform 0.3s;
}
.feature-box:hover { transform: translateY(-10px); }
.feature-icon {
    width: 60px; height: 60px; background: #eff6ff; color: #2e55e6;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 15px auto;
}
.feature-box h4 { margin: 0 0 10px 0; color: #1e293b; }
.feature-box p { margin: 0; font-size: 14px; color: #64748b; }

/* KURSLAR GRID */
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 { font-size: 36px; color: #1e293b; font-weight: 800; margin-bottom: 10px; }
.section-heading p { color: #64748b; }

.vitrin-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px; padding-bottom: 80px;
}

.vitrin-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease;
    border: 1px solid #f1f5f9; display: flex; flex-direction: column;
    height: 100%;
}
.vitrin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vitrin-thumb { height: 220px; overflow: hidden; position: relative; }
.vitrin-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.vitrin-card:hover .vitrin-thumb img { transform: scale(1.1); }

.vitrin-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.vitrin-category {
    font-size: 12px; font-weight: 700; color: #2e55e6; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 10px; display: block;
}
.vitrin-title { font-size: 20px; font-weight: 700; color: #1e293b; margin: 0 0 15px 0; line-height: 1.4; }
.vitrin-text { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

/* BUTONLAR (Senin İstediğin Renkler) */
.vitrin-actions {
    display: flex; gap: 15px; margin-top: auto;
}
.btn-v-login {
    flex: 1; padding: 12px; text-align: center;
    background-color: #2e55e6; /* MAVİ */
    color: white; border-radius: 8px; font-weight: 600; text-decoration: none;
    transition: 0.2s;
}
.btn-v-login:hover { background-color: #1e3a8a; }

.btn-v-buy {
    flex: 1; padding: 12px; text-align: center;
    background-color: #facc15; /* SARI */
    color: #000; border-radius: 8px; font-weight: 700; text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
}
.btn-v-buy:hover { background-color: #eab308; transform: translateY(-2px); }

/* FOOTER */
.landing-footer { background: #1e293b; color: #94a3b8; padding: 60px 0 20px 0; }
.footer-bottom { text-align: center; border-top: 1px solid #334155; margin-top: 40px; padding-top: 20px; font-size: 14px; }

/* MOBİL */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .features-bar { margin-top: 40px; }
    .vitrin-grid { grid-template-columns: 1fr; }
    .vitrin-actions { flex-direction: column; }
}