/* INSTRUKTOR.CSS - Style specyficzne dla modułu instruktorów (Lista i Szczegóły) */

/* ========================================= */
/* === 1. LISTA INSTRUKTORÓW             === */
/* ========================================= */

.instructor-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* było 0.75em; */ 
}

.instructor-row {
    width: 22.5em;   
    height: 4em;     
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;     
    padding: 0 0.75em 0 0.75em;
    background-color: var(--bg-surface-2); /*var(--bg-surface);*/
	border-bottom: 0.0625em solid var(--border-color);
    border-radius: 0; /* Narożniki proste */
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.instructor-row:hover {
   filter: brightness(0.85);
}

/* --- Avatar (Lista) --- */
.inst-avatar {
    width: 3em;
    height: 3em;
    background-color: var(--text-muted);
    border-radius: 50%; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-secondary);
    border: 0.0625em solid var(--border-color);
}
.inst-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- Dane (Lista) --- */
.inst-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3; 
    overflow: hidden; 
}

.inst-title {
    font-size: 0.7em; 
    color: var(--text-muted); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0.1em;
}

.inst-name {
    font-size: 1.1em; 
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    padding-bottom: 0.1em;
}

/* --- Status (Lista) --- */
.inst-status-wrapper {
	display: flex; align-items: center;
	border-radius: 999px;	}

.inst-status-tag {
    display: inline-block;
    padding: 0.15em 0.6em; 
    border-radius: 999px;
    font-size: 0.7em;      
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Kolory Statusów */
.status-obecny .inst-status-wrapper { background-color: var(--success-bg); color: var(--success-text); }
.status-byly   .inst-status-wrapper{ background-color: var(--bg-surface); color: var(--text-muted); border: 0.0625em solid var(--border-color); }
.status-przyjezdny .inst-status-wrapper{ background-color: var(--secondary-brand-bg); color: var(--secondary-brand-text); }

/* --- Paski Stanu (Lista) --- */


/* Stan: ON */
/*.row-on {} */

/* Stan: OFF */
.row-off { opacity: 0.4; }


/* ========================================= */
/* === 2. KARTA SZCZEGÓŁÓW               === */
/* ========================================= */

.detail-card {
    width: 22.5em; /* Sztywna szerokość */
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface);
    border: 0.0625em solid var(--border-color);
    border-radius: 0; /* Narożniki proste */
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* --- Zdjęcie --- */
.detail-photo-wrapper {
    width: 100%;
    height: 20em;
    background-color: var(--bg-surface-2);
    position: relative;
    border-bottom: 0.0625em solid var(--border-color);
}

.detail-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Header (Meta pod zdjęciem) --- */
.detail-header {
    padding: 1.5em;
    text-align: center;
    position: relative;
	border-bottom: 0.0625em solid var(--border-color);
}

.detail-id {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 0.75em;
    color: var(--text-muted);
    font-family: monospace;
}

.detail-title {
    display: block;
    font-size: 0.8em;
    color: var(--primary-main2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
	margin-top: 0.5em;
}

.detail-name {
    font-size: 1.75em;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 0.75em;
}

/* --- Kontakt --- */
.detail-contact {
    background-color: var(--bg-surface-2);
    padding: 1em 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    border-bottom: 0.0625em solid var(--border-color);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.75em;
    color: var(--text-secondary);
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-row:hover {
    color: var(--primary-main2);
}

.contact-row svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: var(--text-icon);
}


/* --- Opis HTML (Prose - override dla karty) --- */
.detail-body {
    padding: 1.5em;
}

/* Zawężamy style .prose tylko do .detail-body, aby nie psuć globalnego .prose */
.detail-body .prose {
    color: var(--text-main);
    font-size: 0.95em;
    line-height: 1.6;
}

.detail-body .prose p { margin-bottom: 1em; margin-top: 0; }
.detail-body .prose strong { font-weight: 700; color: var(--text-main); }
.detail-body .prose ul { margin-bottom: 1em; padding-left: 1.2em; }
.detail-body .prose li { margin-bottom: 0.25em; list-style-type: disc; }
.detail-body .prose li::marker { color: var(--primary-main); }
.detail-body .prose h3 { 
    font-size: 1.1em; 
    font-weight: 800; 
    margin-top: 1.5em; 
    margin-bottom: 0.5em; 
    color: var(--text-main);
}
.detail-body .prose a { color: var(--secondary-brand); text-decoration: underline; }