/* 
    HYZSOFT - Eğitim Dökümanları Ortak Stil Dosyası
    Tüm rehber ve endeks sayfalarında bu dosya kullanılır.
*/

:root {
    /* Renk Paleti */
    --primary: #0085FE;
    --primary-dark: #083e7c;
    --secondary: #1a1a2e;
    --dark-slate: #0f172a;
    --bg: #f8fbff;
    --card-bg: #ffffff;
    --text: #334155;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.4);
    --syntax-bg: #1e293b;
    --syntax-text: #e2e8f0;
}

/* --- Global Davranışlar --- */
html {
    scroll-behavior: smooth;
}

/* --- Animasyon Motoru (Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.4, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Temel Sınıflar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* --- Ortak Header --- */
.doc-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark-slate) 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.doc-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.doc-header p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* --- Layout --- */
.doc-container {
    max-width: 1000px;
    margin: -40px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.doc-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

h2 {
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--secondary);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
}

h2 i { font-size: 1.4rem; color: var(--primary); }

h2:first-child {
    margin-top: 0;
}

h3 {
    margin: 30px 0 15px;
    color: var(--primary);
    font-size: 1.4rem;
}

p { margin-bottom: 20px; }

/* --- Doküman Listesi (index.html için) --- */
.doc-list {
    list-style: none;
    margin-top: 30px;
}

.doc-item {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
}

.doc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 133, 254, 0.1);
    border-color: var(--primary);
}

.doc-link {
    display: flex;
    align-items: center;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 133, 254, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.doc-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

/* --- Kod ve Açıklama Bölümleri --- */
.code-block {
    background: var(--syntax-bg);
    color: var(--syntax-text);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    font-family: 'Fira Code', monospace;
    background: rgba(0,133,254,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.95em;
}

.highlight-box {
    background: #fff9db;
    border-left: 5px solid #fcc419;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.demo-area {
    background: #f1f5f9;
    padding: 40px;
    border-radius: 15px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

/* --- Demo Alanları ve Gridler --- */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.demo-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 133, 254, 0.1);
    border-color: var(--primary);
}

.grid-container {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

@media (min-width: 992px) {
    .grid-container-8 { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 991px) {
    .grid-container-8 { grid-template-columns: repeat(4, 1fr); }
}

.grid-item {
    background: white;
    border: 1px solid #ddd;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
}

/* --- Offset Frame (Çerçeve) --- */
.frame-wrapper {
    position: relative;
    width: 200px;
    height: 150px;
    z-index: 1;
}

.content-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.shadow-frame {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 12px;
    z-index: 1;
    transform: translate(15px, 15px);
    transition: all 0.3s ease;
}

.frame-wrapper:hover .shadow-frame {
    transform: translate(20px, 20px);
    opacity: 0.2;
}

/* --- Haber Kartları --- */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.news-content { padding: 25px; }
.news-date { font-size: 0.8rem; color: #94a3b8; margin-bottom: 10px; display: block; }
.news-title { font-family: 'Montserrat'; font-size: 1.15rem; color: var(--secondary); margin-bottom: 12px; line-height: 1.4; }
.news-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 0; }

.view-all-btn {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 133, 254, 0.2);
}

/* --- Navigasyon Bileşenleri --- */
.nav-example {
    background: white;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links-demo { display: flex; list-style: none; gap: 20px; }
.nav-links-demo a { 
    text-decoration: none; color: var(--secondary); font-weight: 600; padding: 5px 0; position: relative; transition: 0.3s;
}

.nav-links-demo a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s;
}

.nav-links-demo a:hover::after, .nav-links-demo a.active::after { width: 100%; }
.nav-links-demo a:hover, .nav-links-demo a.active { color: var(--primary); }

.nav-btn-demo {
    background: var(--primary); color: white; padding: 8px 18px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: 0.3s;
}
.nav-btn-demo:hover { background: var(--primary-dark); transform: scale(1.05); }
/* --- Yardımcı Sınıflar (Bootstrap Bağımsızlığı İçin) --- */
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.w-100 { width: 100% !important; }

/* --- Paket & Fiyatlandırma Tabloları (3'lü Ferah Dizilim & Ana Renkler) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kutu yan yana */
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 133, 254, 0.12);
    z-index: 2;
}

.featured-badge {
    background: var(--primary);
    color: white;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    padding: 35px 25px 20px;
}

.pricing-plan-name {
    font-family: 'Montserrat';
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.savings-badge {
    display: inline-block;
    background: rgba(0, 133, 254, 0.08);
    color: var(--primary);
    border: 1px solid rgba(0, 133, 254, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
}

.current-price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.current-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-btn {
    display: block;
    background: var(--primary);
    color: white;
    padding: 12px;
    margin: 5px 30px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.pricing-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 133, 254, 0.2);
}

.features-list {
    list-style: none;
    padding: 0 25px 40px;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.features-list li:last-child { border-bottom: none; }

.text-highlight { color: var(--primary); font-weight: 700; }
.text-important { color: var(--secondary); font-weight: 700; }

.pricing-footer-logos {
    background: #f8fafc;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
}

.pricing-footer-logos i {
    font-size: 1.1rem;
    color: var(--secondary);
    opacity: 0.5;
}


/* --- Spesifik Tasarım Bileşenleri --- */

/* Hero Section (Önizleme Alanı) */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(8, 62, 124, 0.85) 0%, rgba(8, 62, 124, 0.6) 50%, rgba(8, 62, 124, 0.85) 100%),
                url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center bottom;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Butonlar */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Blob / Yumurta Tasarımı --- */
.blob-base {
    width: 150px;
    height: 150px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: all 0.5s ease;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    box-shadow: 0 10px 30px rgba(0, 133, 254, 0.2);
}

@keyframes morph {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    33% { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; }
    66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.blob-morph { animation: morph 8s linear infinite; }

.blob-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--secondary);
}

.blob-gradient {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.blob-lg { width: 220px; height: 220px; font-size: 1.5rem; }
.blob-sm { width: 80px; height: 80px; font-size: 0.9rem; }

/* Dashed Line SVG */
.dashed-line-svg {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 100px;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: 0;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 133, 254, 0.1);
}

.btn-back:hover { 
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 133, 254, 0.2);
}

.btn-back i {
    font-size: 1.1rem;
}
