/* ═══════════════════════════════════════════════════
   TKDK Üye Portalı - Ek CSS
   Ana sayfa entegrasyonu ve responsive iyileştirmeler
═══════════════════════════════════════════════════ */

/* WordPress body class'larıyla çakışmayı önle */
body.page-template-member-portal,
body.page-template-member-login {
    background: #f0f4f8;
    margin: 0;
    padding: 0;
}

body.page-template-member-portal .site-header,
body.page-template-member-portal header,
body.page-template-member-portal #masthead,
body.page-template-member-login .site-header,
body.page-template-member-login header,
body.page-template-member-login #masthead {
    display: none !important;
}

body.page-template-member-portal .site-footer,
body.page-template-member-portal footer,
body.page-template-member-portal #colophon,
body.page-template-member-login .site-footer,
body.page-template-member-login footer,
body.page-template-member-login #colophon {
    display: none !important;
}

body.page-template-member-portal .site-content,
body.page-template-member-portal #content,
body.page-template-member-portal main,
body.page-template-member-login .site-content,
body.page-template-member-login #content,
body.page-template-member-login main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Portal içindeki entry-header'ı gizle */
body.page-template-member-portal .entry-header,
body.page-template-member-portal .page-header,
body.page-template-member-login .entry-header {
    display: none !important;
}

/* Giriş formu body arka planı */
body.page-template-member-login {
    background: linear-gradient(135deg, #0d3b66 0%, #1a5a9a 50%, #1e8449 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil tab scroll */
@media (max-width: 600px) {
    .portal-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .portal-tabs::-webkit-scrollbar { display: none; }

    .portal-body { padding: 0 12px; }

    .p-card-body { padding: 14px 16px; }
    .p-card-header { padding: 14px 16px; }

    .course-card { padding: 14px; }

    /* İki sütunlu grid mobilde tek sütuna */
    .portal-body [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .portal-body [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Animasyonlar */
.tab-pane {
    animation: portalFadeIn .3s ease;
}
@keyframes portalFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll to top butonu */
.portal-scroll-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: #0d3b66; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(13,59,102,.35);
    opacity: 0; transition: opacity .3s;
    border: none; z-index: 999;
}
.portal-scroll-top.visible { opacity: 1; }

/* Print stili */
@media print {
    .portal-topbar,
    .portal-hero,
    .portal-tabs,
    .portal-scroll-top,
    .p-btn,
    button { display: none !important; }

    .portal-body { margin: 0; }
    .p-card { box-shadow: none; border: 1px solid #e0e0e0; }
}
