/* ==========================================================================
   DERS DOSYAM — 2. SINIF GÜNLÜK PLANLAR
   Alternatif tasarım (İngilizce dersi ve yeni Renk Paleti eklenmiş hâli)
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #172033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d8dee8;
    --navy: #1e3a8a;
    --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(rgba(30, 58, 138, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.025) 1px, transparent 1px),
        var(--bg);
    background-size: 28px 28px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Üst Başlık Alanı
   ========================================================================== */

.page-header {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 8px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line-strong);
    text-align: left;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15px;
}

.page-header h1 {
    margin-bottom: 7px;
    color: #111827;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
}

.page-header p {
    max-width: 720px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.quick-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .8);
    color: #596273;
    font-size: 11.5px;
    font-weight: 500;
}

.quick-stats span i {
    color: #3b82f6;
}

/* ==========================================================================
   Ders Izgarası
   ========================================================================== */

.grid-container {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 55px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    flex: 1;
}

/* ==========================================================================
   Kart — Daha düz, daha kurumsal
   ========================================================================== */

.card {
    position: relative;
    min-height: 158px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 42px;
    grid-template-rows: auto 1fr auto;
    column-gap: 17px;
    padding: 21px 20px 19px 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

/* Sol taraftaki renk şeridi */
.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: currentColor;
    opacity: .95;
}

/* Üst bölüm */
.card-top {
    grid-column: 1;
    grid-row: 1 / 4;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
}

.card-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    transition: transform .22s ease;
}

/* "Haftalık" etiketi */
.card-badge {
    position: absolute;
    top: 17px;
    right: 18px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* İçerik */
.card-body {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding-right: 42px;
}

.card-body h2 {
    margin-bottom: 7px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.2px;
    transition: color .2s ease;
}

.card-body p {
    color: #7a8494;
    font-size: 12px;
    line-height: 1.5;
}

/* Alt aksiyon */
.card-footer {
    grid-column: 2 / 4;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 0;
    padding: 11px 0 0;
    border-top: 1px solid #eef1f5;
}

.btn-text {
    color: #697386;
    font-size: 11.5px;
    font-weight: 600;
    transition: color .2s ease;
}

.card-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fafbfc;
    color: #9aa3b2;
    font-size: 11px;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}

/* ==========================================================================
   BRANŞ RENKLERİ
   ========================================================================== */

/* Türkçe */
.theme-blue { color: #8C6D3B; }
.theme-blue .card-icon { background: #F7E7C4; color: #8C6D3B; }
.theme-blue .card-badge { background: #F7E7C4; color: #6E5328; }
.theme-blue:hover { border-color: #E8D19F; box-shadow: 0 12px 30px -8px rgba(140, 109, 59, 0.22); }
.theme-blue:hover .card-body h2,
.theme-blue:hover .btn-text { color: #8C6D3B; }
.theme-blue:hover .card-arrow { background: #8C6D3B; color: #fff; border-color: #8C6D3B; }

/* Matematik */
.theme-indigo { color: #C62828; }
.theme-indigo .card-icon { background: #FFC2C2; color: #C62828; }
.theme-indigo .card-badge { background: #FFC2C2; color: #A71D1D; }
.theme-indigo:hover { border-color: #FFA3A3; box-shadow: 0 12px 30px -8px rgba(198, 40, 40, 0.22); }
.theme-indigo:hover .card-body h2,
.theme-indigo:hover .btn-text { color: #C62828; }
.theme-indigo:hover .card-arrow { background: #C62828; color: #fff; border-color: #C62828; }

/* Hayat Bilgisi */
.theme-emerald { color: #2E7D32; }
.theme-emerald .card-icon { background: #CDECB6; color: #2E7D32; }
.theme-emerald .card-badge { background: #CDECB6; color: #1B5E20; }
.theme-emerald:hover { border-color: #B2DE94; box-shadow: 0 12px 30px -8px rgba(46, 125, 50, 0.22); }
.theme-emerald:hover .card-body h2,
.theme-emerald:hover .btn-text { color: #2E7D32; }
.theme-emerald:hover .card-arrow { background: #2E7D32; color: #fff; border-color: #2E7D32; }

/* İngilizce (YENİ - Pastel Gök Mavisi #B8CDFF) */
.theme-sky { color: #1D4ED8; }
.theme-sky .card-icon { background: #B8CDFF; color: #1D4ED8; }
.theme-sky .card-badge { background: #B8CDFF; color: #1E3A8A; }
.theme-sky:hover { border-color: #93AEEA; box-shadow: 0 12px 30px -8px rgba(29, 78, 216, 0.22); }
.theme-sky:hover .card-body h2,
.theme-sky:hover .btn-text { color: #1D4ED8; }
.theme-sky:hover .card-arrow { background: #1D4ED8; color: #fff; border-color: #1D4ED8; }

/* Beden Eğitimi ve Oyun */
.theme-amber { color: #D85C00; }
.theme-amber .card-icon { background: #FFCE9E; color: #D85C00; }
.theme-amber .card-badge { background: #FFCE9E; color: #B34700; }
.theme-amber:hover { border-color: #FFB770; box-shadow: 0 12px 30px -8px rgba(216, 92, 0, 0.22); }
.theme-amber:hover .card-body h2,
.theme-amber:hover .btn-text { color: #D85C00; }
.theme-amber:hover .card-arrow { background: #D85C00; color: #fff; border-color: #D85C00; }

/* Müzik */
.theme-rose { color: #AD1486; }
.theme-rose .card-icon { background: #F6BFF3; color: #AD1486; }
.theme-rose .card-badge { background: #F6BFF3; color: #850E66; }
.theme-rose:hover { border-color: #EE9EE9; box-shadow: 0 12px 30px -8px rgba(173, 20, 134, 0.22); }
.theme-rose:hover .card-body h2,
.theme-rose:hover .btn-text { color: #AD1486; }
.theme-rose:hover .card-arrow { background: #AD1486; color: #fff; border-color: #AD1486; }

/* Görsel Sanatlar (GÜNCELLENDİ - Pastel Çivit / Mavi Mor #D1C4E9) */
.theme-purple { color: #5B21B6; }
.theme-purple .card-icon { background: #D1C4E9; color: #5B21B6; }
.theme-purple .card-badge { background: #D1C4E9; color: #4C1D95; }
.theme-purple:hover { border-color: #BCAEE0; box-shadow: 0 12px 30px -8px rgba(91, 33, 182, 0.22); }
.theme-purple:hover .card-body h2,
.theme-purple:hover .btn-text { color: #5B21B6; }
.theme-purple:hover .card-arrow { background: #5B21B6; color: #fff; border-color: #5B21B6; }

/* Serbest Etkinlikler */
.theme-violet { color: #334E68; }
.theme-violet .card-icon { background: #D7DFE5; color: #334E68; }
.theme-violet .card-badge { background: #D7DFE5; color: #243B53; }
.theme-violet:hover { border-color: #BAC7D5; box-shadow: 0 12px 30px -8px rgba(51, 78, 104, 0.22); }
.theme-violet:hover .card-body h2,
.theme-violet:hover .btn-text { color: #334E68; }
.theme-violet:hover .card-arrow { background: #334E68; color: #fff; border-color: #334E68; }

/* ==========================================================================
   Hover
   ========================================================================== */

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

.card:hover .card-icon {
    transform: scale(1.06);
}

.card:hover .card-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Mobil
   ========================================================================== */

@media (max-width: 820px) {
    .page-header {
        width: min(100% - 32px, 680px);
        margin-top: 30px;
    }

    .grid-container {
        width: min(100% - 32px, 680px);
        grid-template-columns: 1fr;
        margin-top: 22px;
    }
}

@media (max-width: 520px) {
    .page-header {
        padding-bottom: 22px;
    }

    .page-header h1 {
        font-size: 27px;
    }

    .page-header p {
        font-size: 13px;
    }

    .grid-container {
        width: calc(100% - 24px);
        gap: 12px;
    }

    .card {
        min-height: 145px;
        grid-template-columns: 54px minmax(0, 1fr) 36px;
        column-gap: 13px;
        padding: 17px 15px 16px 17px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .card-body {
        padding-right: 25px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-body p {
        font-size: 11px;
    }

    .card-badge {
        top: 14px;
        right: 13px;
        font-size: 8.5px;
    }

    .quick-stats {
        gap: 6px;
    }

    .quick-stats span {
        font-size: 10.5px;
    }
}