/* ═══════════════════════════════════════════════════
   Mezunlar Page Styles – matches old egitmenler design
   ═══════════════════════════════════════════════════ */

.mezunlar-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: "Mulish", "Rajdhani", sans-serif;
}

/* ─── Region & Dönem Tabs ─── */
.mezunlar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.mezunlar-tab {
    padding: 10px 22px;
    border: 2px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: "Rajdhani", sans-serif;
}

.mezunlar-tab:hover {
    border-color: #007283;
    color: #007283;
}

.mezunlar-tab--active {
    background: #007283;
    border-color: #007283;
    color: #fff;
}

.mezunlar-tab--active:hover {
    background: #005f6e;
    border-color: #005f6e;
    color: #fff;
}

.mezunlar-tabs--donem {
    margin-top: 8px;
}

.mezunlar-tabs--donem .mezunlar-tab {
    padding: 7px 16px;
    font-size: 13px;
}

/* ─── SVG Map Container ─── */
.mezunlar-map-wrap {
    margin-bottom: 20px;
    background: #f0f4f5;
    border-radius: 12px;
    padding: 16px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mezunlar-map {
    display: none;
    width: 100%;
}

.mezunlar-map--active {
    display: block;
}

.mezunlar-svg,
.mezunlar-map__zoom-container svg {
    width: 100%;
    height: auto;
    max-height: 420px;
    display: block;
}

/* Override SimpleMaps default fills on non-interactive paths */
.mezunlar-map__zoom-container svg path:not(.mezunlar-svg__region) {
    fill: #c0cdd0;
    opacity: 0.5;
}

/* SVG region states — override SimpleMaps default fill */
.mezunlar-svg__region {
    fill: #4db6c4 !important;
    stroke: #fff;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.mezunlar-svg__region:hover {
    fill: #18CBE4 !important;
}

/* Disabled regions (no alumni) */
.mezunlar-svg__region--disabled {
    fill: #d5d5d5 !important;
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

/* ─── Zoom Container (pinch-to-zoom) ─── */
.mezunlar-map__zoom-container {
    overflow: hidden;
    touch-action: none;
    will-change: transform;
    transform-origin: center center;
}

/* ─── Selected locations: green highlight ─── */
.mezunlar-svg__region--active {
    fill: #2e7d32 !important;
}

.mezunlar-svg__region--active:hover {
    fill: #1b5e20 !important;
}

/* ─── Location Pill Badges ─── */
.mezunlar-location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    min-height: 0;
}

.mezunlar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f7fa;
    color: #003342;
    border-radius: 999px;
    padding: 6px 12px 6px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Rajdhani", sans-serif;
    animation: mezunlar-pill-in 0.2s ease;
}

@keyframes mezunlar-pill-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.mezunlar-pill__text {
    white-space: nowrap;
}

.mezunlar-pill__remove {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 114, 131, 0.15);
    color: #007283;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.mezunlar-pill__remove:hover {
    background: rgba(0, 114, 131, 0.3);
}

/* ─── Clear All Button ─── */
.mezunlar-clear-all {
    align-items: center;
    gap: 6px;
    margin: 0 auto 16px;
    padding: 8px 20px;
    border: 2px solid #e57373;
    border-radius: 999px;
    background: #fff;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Rajdhani", sans-serif;
    transition: all 0.2s ease;
}

.mezunlar-clear-all:hover {
    background: #ffebee;
    border-color: #c62828;
}

/* ─── Dönem Toggle Tabs (multi-select style) ─── */
.mezunlar-tab--toggle.mezunlar-tab--active {
    background: #007283;
    border-color: #007283;
    color: #fff;
}

/* ─── Load More Button ─── */
.mezunlar-load-more-wrap {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 16px;
}

.mezunlar-load-more {
    padding: 12px 40px;
    border: 2px solid #007283;
    border-radius: 999px;
    background: #fff;
    color: #007283;
    font-size: 15px;
    font-weight: 700;
    font-family: "Rajdhani", sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mezunlar-load-more:hover {
    background: #007283;
    color: #fff;
}

/* ─── No Results Warning ─── */
.mezunlar-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    margin-bottom: 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    color: #795548;
    font-size: 14px;
    font-weight: 500;
}

.mezunlar-no-results svg {
    flex-shrink: 0;
    color: #f9a825;
}

/* ─── Results Count ─── */
.mezunlar-count {
    text-align: center;
    font-size: 14px;
    color: #4D5B63;
    margin-bottom: 20px;
    font-family: "Mulish", sans-serif;
}

.mezunlar-count__num {
    font-weight: 700;
    color: #007283;
}

/* ─── Alumni Grid ─── */
.mezunlar-grid-wrap {
    position: relative;
    min-height: 100px;
}

.mezunlar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: opacity 0.25s ease;
}

.mezunlar-grid--loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ─── Loading Spinner ─── */
.mezunlar-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.mezunlar-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top-color: #007283;
    border-radius: 50%;
    animation: mezunlar-spin 0.7s linear infinite;
}

@keyframes mezunlar-spin {
    to { transform: rotate(360deg); }
}

/* ─── Alumni Card (matches old egitmenler design) ─── */
.mezun-card {
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,51,66,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    padding-bottom: 0;
}

.mezun-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,51,66,0.15);
}

/* Card image */
.mezun-card__img-link {
    display: block;
    text-decoration: none;
}

.mezun-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    margin: 12px 12px 0;
    border-radius: 10px;
}

.mezun-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.mezun-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    aspect-ratio: 1;
}

.mezun-card__placeholder svg {
    width: 64px;
    height: 64px;
}

/* Yoga logo icon – overlapping between image and body */
.mezun-card__logo {
    width: 90px;
    height: 90px;
    margin: -45px auto 0;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(33,123,143,0.11);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.mezun-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Card body */
.mezun-card__body {
    padding: 12px 24px 28px;
}

.mezun-card__name,
h2.mezun-card__name {
    font-family: "Rajdhani", sans-serif;
    font-size: 36px !important;
    font-weight: 600;
    color: #003342;
    margin: 0 0 4px;
    line-height: 1.2;
    text-decoration: none;
}

.mezun-card__profession {
    font-family: "Mulish", sans-serif;
    font-size: 16px;
    color: #4D5B63;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* "Hakkında" link */
.mezun-card__link-wrap {
    display: flex;
    justify-content: center;
}

.mezun-card__link {
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #007283;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid #18CBE4;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mezun-card__link:hover {
    color: #18CBE4;
    border-color: #007283;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .mezunlar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .mezunlar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mezunlar-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    .mezunlar-tabs--donem .mezunlar-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    .mezunlar-svg,
    .mezunlar-map__zoom-container svg {
        max-height: 280px;
    }
    .mezunlar-pill {
        font-size: 12px;
        padding: 5px 10px 5px 14px;
    }
    .mezun-card__name {
        font-size: 16px;
    }
    .mezun-card__logo {
        width: 70px;
        height: 70px;
        margin-top: -35px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .mezunlar-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .mezunlar-tabs {
        gap: 6px;
    }
    .mezunlar-tab {
        padding: 7px 12px;
        font-size: 12px;
    }
}
