/* Bu dosya, tüm 7 HTML sayfasının stillerini içerir.
    Genel Stiller, Menü, Kartlar, Tablolar, Rehber Adımları, SSS Akordiyonu.
*/

/* --- 1. Genel Stiller ve Ana Yapı --- */

body {
    background-color: #111827; /* Tailwind gray-900 */
    color: #F3F4F6; /* Tailwind gray-100 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

main {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1.5rem; /* py-12 px-6 */
}

/* Ana Başlık (Tüm sayfalarda ortak) */
.main-title {
    font-size: 2.5rem; /* text-4xl */
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    text-align: center;
}

.main-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: #D1D5DB; /* gray-300 */
    text-align: center;
    margin-bottom: 3rem;
}

/* Footer (Tüm sayfalarda ortak) */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem; /* text-sm */
    color: #6B7280; /* gray-500 */
    border-top: 1px solid #374151; /* border-gray-700 */
}

/* --- 2. Navigasyon Menüsü Stilleri --- */

/* Header (Yapışkan menü kabı) */
.site-header {
    background-color: #1A1A2E;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Navigasyon iç kabı */
.nav-container {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem; /* px-6 */
    display: flex;
    justify-content: space-between;
    height: 4rem; /* h-16 */
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #FFFFFF;
}

/* Navigasyon linkleri */
.nav-links {
    display: flex;
    align-items: baseline;
    gap: 1rem; /* space-x-4 */
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem; /* rounded-md */
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #00D0A9;
    background-color: #374151; /* gray-700 */
}

/* Aktif sayfa linki */
.active-link {
    color: #00D0A9;
    font-weight: 600;
    border-bottom: 2px solid #00D0A9;
    border-radius: 0; /* Aktif linkte yuvarlatmayı kaldır */
}

/* --- 3. index.html Kart Stilleri --- */

.card {
    background-color: #1F2937; /* gray-800 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.5rem; /* p-6 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 208, 169, 0.3), 0 4px 6px -2px rgba(0, 208, 169, 0.05); /* #00D0A9 glow */
}

.card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #D1D5DB; /* gray-300 */
    font-size: 0.875rem; /* text-sm */
    flex-grow: 1; /* Açıklamayı esneterek linki aşağı iter */
    margin-bottom: 1rem;
}

.card-link {
    color: #00D0A9;
    font-weight: 500;
    text-decoration: none;
    align-self: flex-start; /* Linki kartın sol altına sabitler */
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #34D399; /* emerald-400 */
}


/* --- 4. egitim_plani.html (Tablo Stilleri) --- */

.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 0.5rem;
}

.plan-table th,
.plan-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #374151; /* gray-700 */
}

.plan-table th {
    background-color: #1A1A2E;
    color: #00D0A9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-table tbody tr {
    background-color: #1F2937; /* gray-800 */
    transition: background-color 0.3s ease;
}

.plan-table tbody tr:hover {
    background-color: #374151; /* gray-700 */
}

.plan-table td:first-child {
    font-weight: 700;
    color: #FFFFFF;
    width: 10%;
}

.plan-table td:nth-child(2) {
    font-weight: 500;
    color: #E5E7EB; /* gray-200 */
    width: 25%;
}

.topic-link {
    color: #00D0A9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-link:hover {
    color: #34D399;
    text-decoration: underline;
}

/* --- 5. egitim_rehberi.html (Rehber Stilleri) --- */

.rehber-konteyner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* space-y-10 */
}

.rehber-modul {
    background-color: #1F2937; /* gray-800 */
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rehber-modul-baslik {
    font-size: 1.8rem; /* text-3xl */
    font-weight: 700;
    color: #00D0A9;
    border-bottom: 2px solid #374151; /* gray-700 */
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.rehber-konu-baslik {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #E5E7EB; /* gray-200 */
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rehber-adim-liste {
    list-style-type: decimal;
    list-style-position: inside;
    margin-left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
}

.rehber-adim-liste li {
    color: #D1D5DB; /* gray-300 */
}

.rehber-adim-liste li strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* --- 6. bilgi_kartlari.html (Dönen Kart Stilleri) --- */

.kart-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Responsive grid */
@media (min-width: 640px) {
    .kart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .kart-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Kartın 3D alanı */
.kart-konteyner {
    background-color: transparent;
    width: 100%;
    height: 18rem; /* h-72 */
    perspective: 1000px;
    cursor: pointer; /* Tıklanabilir olduğunu belirt */
}

/* Kartın iç yapısı (dönüşü sağlar) */
.kart-ici {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    border-radius: 0.5rem; /* rounded-lg */
}

/* DÜZELTME: :hover kuralı JS ile çakıştığı için kaldırıldı. */
/* JS artık 'click' ile transform'u manuel olarak ayarlıyor. */


/* Ön yüz (kart-yuz) ve Arka yüz (kart-arka) */
.kart-yuz, .kart-arka {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

/* Ön yüz (Başlık) */
.kart-yuz {
    background-color: #1F2937; /* gray-800 */
    color: #FFFFFF;
}

.kart-yuz-ikon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.kart-yuz-baslik {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Arka yüz (Açıklama) */
.kart-arka {
    background-color: #00D0A9; /* Vurgu rengi */
    color: #1A1A2E; /* Koyu metin */
    transform: rotateY(180deg);
}

.kart-arka-baslik {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.kart-arka-aciklama {
    font-size: 0.875rem;
    text-align: left;
}


/* --- 7. infografik.html (Grafik Konteynerları) --- */

.infografik-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .infografik-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.grafik-kart {
    background-color: #1F2937; /* gray-800 */
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Chart.js canvas'ını saran div */
.chart-container {
    position: relative;
    height: 40vh; /* Yükseklik */
    width: 100%;
}

.grafik-baslik {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-align: center;
}

/* Akış Şeması (Timeline) Stili */
.timeline-konteyner {
    grid-column: span 1 / span 1;
}

@media (min-width: 768px) {
    .timeline-konteyner {
        grid-column: span 2 / span 2; /* Tam genişlik */
    }
}

.timeline-liste {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Dikey çizgi */
.timeline-liste::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #374151; /* gray-700 */
}

.timeline-item {
    position: relative;
    padding-left: 3rem; /* Çizginin sağı */
}

/* Nokta */
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(1.5rem - 0.5rem); /* Çizginin ortası */
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px; /* rounded-full */
    background-color: #00D0A9;
    border: 2px solid #1F2937; /* gray-800 */
    z-index: 1;
}

.timeline-gun {
    font-weight: 700;
    color: #00D0A9;
    font-size: 1.1rem;
}

.timeline-modul {
    font-weight: 600;
    color: #FFFFFF;
}

.timeline-konu {
    font-size: 0.875rem;
    color: #D1D5DB; /* gray-300 */
}

/* --- 8. sablon_kutuphanesi.html (Şablon Kartları) --- */

.sablon-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .sablon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sablon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sablon-kart {
    background-color: #1F2937; /* gray-800 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.sablon-kart:hover {
    box-shadow: 0 0 15px rgba(0, 208, 169, 0.5); /* #00D0A9 glow */
}

.sablon-ikon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sablon-baslik {
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.sablon-aciklama {
    font-size: 0.875rem;
    color: #D1D5DB; /* gray-300 */
    margin-bottom: 1rem;
    flex-grow: 1;
}

.sablon-liste {
    list-style-type: decimal;
    list-style-position: inside;
    font-size: 0.875rem;
    color: #B0B8C3; /* gray-400 */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* --- 9. sss_yardim.html (Akordiyon Stilleri) --- */

.sss-konteyner {
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sss-item {
    background-color: #1F2937; /* gray-800 */
    border-radius: 0.5rem;
    overflow: hidden;
}

.sss-soru {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #1F2937;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sss-soru:hover {
    background-color: #374151; /* gray-700 */
}

.sss-ikon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00D0A9;
    transition: transform 0.3s ease;
}

/* Aktif (açık) durum: DÜZELTME - JS artık 'active' sınıfını ekliyor */
/* CSS 'active' sınıfına göre ikonu döndürüyor */
.sss-item.active .sss-ikon {
    transform: rotate(45deg);
}


.sss-cevap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #111827; /* gray-900 */
    padding: 0 1.5rem;
}

.sss-cevap p {
    padding: 1.5rem 0;
    color: #D1D5DB; /* gray-300 */
    border-top: 1px solid #374151; /* gray-700 */
}

