/* rehber_ogretmen.php sayfasina ait stiller. <head> icinde yuklenir. */
/* ORTAK REHBER STİLLERİ */
.guide-wrapper {
    min-height: 80vh;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    background: #0f0f13; /* Koyu modern arkaplan */
}

/* Print Footer Logo */
.print-footer-logo {
    display: none;
}

/* Guide Logo Styles */
.guide-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    background: transparent !important;
}
.guide-logo .logo-img {
    height: 50px;
    width: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.guide-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
}
.guide-logo .logo-text span {
    color: #ff4757 !important;
    text-decoration: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

/* Background Animation */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    border-radius: 50%;
    animation: floatAnimation 15s infinite alternate ease-in-out;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: #ff4757;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: #ff6b81;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.bg-shape-3 {
    width: 250px;
    height: 250px;
    background: #e84118;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 18s;
}

@keyframes floatAnimation {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.guide-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 2.5rem;
}

.guide-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.guide-title .highlight-teacher {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Premium Intro Text Box */
.premium-intro-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 50px auto;
}

.intro-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
}

.premium-intro {
    position: relative;
    z-index: 1;
    padding: 45px;
    border-radius: 24px;
    background: rgba(20, 24, 33, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    overflow: hidden;
}

.premium-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #ff4757, #ff6b81);
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 71, 87, 0.2);
    text-transform: uppercase;
}

.intro-heading {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 18px;
    letter-spacing: -0.5px;
}

.heading-icon {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.6rem;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.intro-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 300;
}

.intro-content strong {
    color: #fff;
    font-weight: 600;
}

.intro-content em {
    color: #ff6b81;
    font-style: normal;
    font-weight: 500;
}

.premium-highlight {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}

@media print {
    .premium-intro-wrapper {
        margin: 20px 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .intro-glow { display: none; }
    .premium-intro {
        background: #1e1e23 !important;
        border: 1px solid rgba(255, 71, 87, 0.3) !important;
        box-shadow: none !important;
        padding: 30px !important;
        border-radius: 20px !important;
    }
    .intro-heading { font-size: 1.8rem !important; margin-bottom: 15px !important; }
    .premium-highlight {
        border-color: rgba(255, 71, 87, 0.3) !important;
    }
}

.tab-content-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.9), rgba(20, 20, 25, 0.95));
    border: 1px solid rgba(255, 71, 87, 0.1);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.guide-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 71, 87, 0.5);
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(255, 107, 129, 0.25));
    color: #ff4757;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
    flex-shrink: 0;
}

.card-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.card-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.guide-link {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.guide-link:hover {
    color: #ff6b81;
    text-decoration: underline;
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px dashed rgba(255, 71, 87, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-top: 15px;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-placeholder:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.3);
}

.empty-placeholder-content {
    display: none; 
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.empty-placeholder-content i {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .guide-title {
        font-size: 2rem;
    }
    .guide-card {
        padding: 20px;
    }
}

.print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 71, 87, 0.4);
}

@page {
    margin: 0; /* Removes browser default headers and footers */
}

@media print {
    html, body {
        background: #0f0f13 !important;
        color: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-size: 22px !important;
        min-height: 100vh !important;
        height: auto !important;
    }
    .bg-shape, .print-btn, header, footer, .main-nav, .mobile-bottom-nav, .sidebar-mobile-btn, .sidebar-mobile-overlay, .admin-sidebar {
        display: none !important;
    }
    .guide-wrapper {
        min-height: auto;
        padding: 10mm 15mm !important;
        background: #0f0f13 !important;
        overflow: visible !important;
    }
    .tab-content-container {
        overflow: visible !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .guide-grid {
        display: block !important;
        gap: 0 !important;
    }
    .guide-card {
        page-break-inside: avoid;
        page-break-before: always;
        break-inside: avoid;
        break-before: page;
        display: block !important;
        background: #1e1e23 !important;
        border: 1px solid rgba(255, 71, 87, 0.3) !important;
        margin: 0 auto 15px auto !important; 
        position: relative !important;
        top: 35mm !important; /* Dikey ortalama hilesi: sayfa başında margin silinmesine karşı */
        padding: 20px !important;
        border-radius: 20px !important;
    }
    .guide-card:first-child {
        page-break-before: auto !important;
        break-before: auto !important;
        margin-top: 10px !important;
        top: 0 !important; /* İlk kartta aşağı kaydırma yok */
    }
    .print-footer-logo {
        display: flex !important;
        position: fixed;
        bottom: 5mm;
        left: 0;
        right: 0;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .print-footer-logo .guide-logo {
        margin-bottom: 0 !important;
    }
    .print-footer-logo .logo-img {
        height: 30px !important;
    }
    .print-footer-logo .logo-text {
        font-size: 1.5rem !important;
    }
    .guide-header {
        margin-bottom: 15px !important;
    }
    .guide-header .guide-logo {
        margin-bottom: 10px !important;
    }
    .premium-intro-wrapper {
        page-break-inside: avoid;
        margin-bottom: 15px !important;
        padding: 20px !important;
    }
    .premium-intro {
        padding: 20px !important;
    }
    .intro-heading {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }
    .intro-content p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    .image-placeholder img {
        max-height: 55mm !important;
        width: auto !important;
        object-fit: contain;
    }
    .guide-title {
        color: white !important;
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }
    .guide-subtitle {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .card-title {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }
    .card-desc {
        font-size: 22px !important;
        line-height: 1.6 !important;
    }
    .step-number {
        font-size: 18px !important;
    }
    .highlight-teacher {
        -webkit-text-fill-color: #ff4757 !important;
        color: #ff4757 !important;
    }
    .guide-link {
        color: #ff4757 !important;
        text-decoration: underline !important;
    }
}
