/* frontend.css */

/* --- TİPOGRAFİ VE GENEL --- */
.page-content {
    font-family: ui-sans-serif, system-ui, sans-serif;
    line-height: 1.7;
    color: #334155;
}

.page-content h1 { font-size: 2.5rem; font-weight: 800; margin: 1.5rem 0 1rem; color: #0f172a; line-height: 1.2; }
.page-content h2 { font-size: 2rem; font-weight: 700; margin: 1.5rem 0 1rem; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; }
.page-content h3 { font-size: 1.5rem; font-weight: 600; margin: 1.2rem 0 0.8rem; color: #334155; }
.page-content p { margin-bottom: 1rem; }
.page-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content blockquote { border-left: 4px solid #3b82f6; padding: 1rem; margin: 1.5rem 0; font-style: italic; background: #f8fafc; border-radius: 0 0.5rem 0.5rem 0; }
.page-content a { color: #2563eb; text-decoration: underline; }

/* Butonlar (Editörden gelen) */
.pt-render-btn { text-decoration: none !important; display: inline-block; transition: all 0.2s; }
.pt-render-btn:hover { transform: translateY(-1px); }

/* --- GALERİ GRID SİSTEMİ --- */
.pt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}
@media (min-width: 768px) {
    .pt-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.pt-gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}
.pt-gallery-item:hover { transform: scale(1.02); z-index: 10; }
.pt-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- EKİP KARTLARI --- */
.team-grid { margin: 2rem 0; display: grid; gap: 1.5rem; }
.team-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.team-img-wrapper {
    width: 120px; height: 120px; margin: 0 auto 1rem;
    border-radius: 50%; overflow: hidden; border: 3px solid #f1f5f9;
}
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* --- MEDYA VE KARTLAR --- */
.media-wrapper { max-width: 100%; display: inline-block; position: relative; }
.embed-responsive { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 0.5rem; aspect-ratio: 16/9; }
.embed-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.embed-overlay { display: none; } /* Frontend'de overlay olmasın, videoya tıklanabilsin */

/* Esnek Kartlar */
.portaze-card-flex { display: flex; flex-direction: column; gap: 2rem; margin: 2rem 0; }
@media (min-width: 768px) { .portaze-card-flex { flex-direction: row; align-items: center; } }
.flex-fill-content { flex: 1; }

/* --- LIGHTBOX (JS İLE ÇALIŞACAK) --- */
#pt-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
#pt-lightbox.active { display: flex; opacity: 1; }
#pt-lightbox img { max-width: 90%; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.pt-lb-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
.pt-lb-prev, .pt-lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: white; font-size: 30px; cursor: pointer; padding: 20px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
}
.pt-lb-prev:hover, .pt-lb-next:hover { background: rgba(255,255,255,0.3); }
.pt-lb-prev { left: 20px; }
.pt-lb-next { right: 20px; }