/* Mezun Bilgi Sistemi — GSÜ AKTS Tasarım Dili üzerine eklenen bileşenler.
   Kurallar tasarım diliyle aynı: köşe 0, gölge yok, ayrım çizgiyle, renk yalnız token.
   Yalnız _LayoutLanding (herkese açık sayfalar) ve _LayoutAuth (hesap ekranları) yükler. */

/* ---------- Metronic tabanıyla uyum ---------- */
/* Metronic html yazı boyutunu 12–13px'e çeker; tasarım dili 16px tabanla çalışır. */
html.gsu-root { font-size: 16px !important; }
body.gsu-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--gsu-white);
    color: var(--gsu-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
}
.gsu-site .gsu-page { flex: 1 0 auto; width: 100%; }
/* Kısa sayfalarda (hata sayfaları gibi) alt bilgi ekranın altında kalsın */
.gsu-site .gsu-page > #gsu-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.gsu-site h1, .gsu-site h2, .gsu-site h3, .gsu-site h4 { color: inherit; }
.gsu-site [hidden] { display: none !important; }
.gsu-site .scrolltop { border-radius: 0; background-color: var(--gsu-ink); }
.gsu-site .scrolltop:hover { background-color: var(--gsu-red); }
.swal2-popup, .swal2-popup .btn { border-radius: 0 !important; font-family: var(--font-sans); }

/* İçeriğe geç bağlantısı: yalnız klavye odağında görünür */
.gsu-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--gsu-ink);
    color: var(--gsu-white);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
}
.gsu-skip:focus { top: 12px; color: var(--gsu-white); }

@media (prefers-reduced-motion: reduce) {
    .gsu-site *, .gsu-site *::before, .gsu-site *::after { transition: none !important; animation: none !important; }
    .gsu-card:hover, .m-post:hover { transform: none; }
}

/* ---------- Başlık ---------- */
.gsu-nav a.on { color: var(--gsu-red); box-shadow: inset 0 -2px 0 var(--gsu-red); padding-bottom: 9px; margin-bottom: -11px; }
.gsu-nav a.on:hover { text-decoration: none; }
.gsu-burger .ic { width: 22px; height: 22px; }
.gsu-hsearch .gsu-btn, .gsu-hsearch .gsu-btn-o { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 991.98px) {
    .gsu-header.acik .gsu-nav a.on { box-shadow: none; padding-bottom: 12px; margin-bottom: 0; }
    .gsu-header.acik .gsu-hsearch { justify-content: flex-start; }
}

/* Hero rakam şeridi */
/* Sütun sayısı gösterilen istatistik sayısına göre (bileşen --m-stats-cols verir) */
.m-stats { display: grid; grid-template-columns: repeat(var(--m-stats-cols, 4), minmax(0, 1fr)); }
@media (max-width: 991.98px) { .m-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-stats .gsu-stat:nth-child(-n+2) { border-bottom: 1px solid var(--on-dark-20); } }

/* ---------- Izgaralar ---------- */
.m-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.m-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.m-split { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }
.m-side-layout { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; align-items: start; }
.m-detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.m-gold-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: center; }
.m-content-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.m-foot-grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 24px; }
@media (max-width: 1199.98px) {
    .m-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-content-aside { grid-template-columns: minmax(0, 1fr); }
    .m-content-aside > :last-child { max-width: 420px; }
}
@media (max-width: 991.98px) {
    .m-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-split, .m-side-layout, .m-detail, .m-gold-grid { grid-template-columns: minmax(0, 1fr); }
    .m-gold-grid { gap: 32px; }
    .m-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 575.98px) {
    .m-grid-4, .m-grid-3, .m-grid-2, .m-foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Kayıt kartı (duyuru / haber / etkinlik) ---------- */
.m-post { display: flex; flex-direction: column; height: 100%; border: 1.5px solid var(--gsu-line); background: var(--gsu-white); color: inherit; transition: .18s ease; }
.m-post:hover { border-color: var(--gsu-red); transform: translateY(-2px); color: inherit; text-decoration: none; }
.m-post .gsu-photo { aspect-ratio: 16 / 9; }
.m-post-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.m-post-t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--gsu-ink); overflow-wrap: anywhere; }
.m-post:hover .m-post-t { color: var(--gsu-red); }
.m-post-d { font-size: 14px; line-height: 1.55; color: var(--gsu-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-post-f { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--gsu-red); display: inline-flex; align-items: center; gap: 8px; }
.m-post-lg .m-post-t { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.m-post-lg .m-post-b { padding: 22px 24px 24px; }

/* Görseli olmayan kayıt için amblemli yer tutucu */
.m-ph { aspect-ratio: 16 / 9; background: var(--gsu-ground); display: flex; align-items: center; justify-content: center; border-bottom: 1.5px solid var(--gsu-line); }
.m-ph img { height: 64px; width: auto; }
.m-row .m-ph, .m-event .m-ph { border-bottom: 0; }
.m-row .m-ph img, .m-event .m-ph img { height: 40px; }

/* Kayıt üst satırı: tür + tarih */
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gsu-muted); }
.m-type { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gsu-red); }

/* Sade liste satırı */
.m-list { background: var(--gsu-white); border: 1.5px solid var(--gsu-line); padding: 22px; }
.m-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gsu-line); color: inherit; }
.m-row:first-child { padding-top: 0; }
.m-row:last-child { border-bottom: 0; padding-bottom: 0; }
.m-row:hover { color: inherit; text-decoration: none; }
.m-row:hover .m-post-t { color: var(--gsu-red); }
.m-row > .gsu-photo, .m-row > .m-ph { width: 120px; flex: none; aspect-ratio: 4 / 3; }
@media (max-width: 575.98px) { .m-row > .gsu-photo, .m-row > .m-ph { width: 88px; } }

/* Tarih kutusu: gün üstte, ay koyu şeritte */
.m-date { flex: none; width: 64px; border: 1.5px solid var(--gsu-ink); background: var(--gsu-white); text-align: center; }
.m-date b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; padding: 6px 0 2px; color: var(--gsu-ink); }
.m-date span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--gsu-ink); color: var(--gsu-white); padding: 3px 0; }

/* Yaklaşan etkinlik satırı */
.m-event { display: grid; grid-template-columns: 64px 240px minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1.5px solid var(--gsu-line); background: var(--gsu-white); padding: 18px; color: inherit; transition: .18s ease; }
.m-event:hover { border-color: var(--gsu-red); color: inherit; text-decoration: none; }
.m-event:hover .m-post-t { color: var(--gsu-red); }
.m-event .gsu-photo, .m-event .m-ph { aspect-ratio: 16 / 9; }
.m-event-t { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 991.98px) {
    .m-event { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .m-event > .gsu-photo, .m-event > .m-ph, .m-event > .gsu-btn-o { display: none; }
    .m-event-t { font-size: 18px; }
}
/* Kartta saat satırı: başlıktan ayrı, kartın altına yaslı, ince çizgiyle ayrılmış */
.m-post .m-facts { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gsu-line); font-weight: 500; color: var(--gsu-muted); }
.m-post .m-post-b > .d-flex:first-child { margin-bottom: 8px; }
.m-facts { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; font-weight: 600; color: var(--gsu-ink); }
.m-facts span { display: inline-flex; align-items: center; gap: 6px; }
.m-facts .ic { color: var(--gsu-red); }


/* Numaralı adımlar */
.m-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.m-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.m-steps li b { display: block; font-weight: 700; color: var(--gsu-ink); }
.m-steps li .d { display: block; color: var(--gsu-muted); font-size: 14px; }
.m-step-n { flex: none; width: 32px; height: 32px; border: 2px solid var(--gsu-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.gsu-gold .gsu-kicker { color: var(--gsu-red-dark); }
.gsu-gold .m-steps { margin-top: 26px; }
.gsu-gold .gsu-h2.m-gold-h { font-size: clamp(22px, 2.4vw, 28px); margin: 8px 0 10px; }

/* Başlık ve paragraf öğeleri (h2/h3/p) Bootstrap boşluklarını taşımasın */
.m-post-t, .m-post-d, .m-box .gsu-card-t { margin: 0; }
.m-date { display: block; }
.m-lead { font-size: 17px; line-height: 1.6; color: var(--gsu-ink); font-weight: 500; margin: 0 0 22px; text-wrap: pretty; }
.m-table-white { background: var(--gsu-white); }

/* İçerik sayfası yardımcıları */
.m-meta-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-meta-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) {
    .m-meta-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-meta-4 > div:nth-child(2) { border-right: 0; }
    .m-meta-4 > div:nth-child(3) { padding-left: 0; }
    .m-meta-3 { grid-template-columns: minmax(0, 1fr); }
    .m-meta-3 > div { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--gsu-line); }
}
.m-box { background: var(--gsu-white); border: 1.5px solid var(--gsu-line); padding: 22px; }
.m-box .gsu-card-t { margin-top: 0; }
.m-box .gsu-link { margin-top: 10px; }
.m-article-photo { display: block; margin-bottom: 24px; }
.m-copy { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.m-empty { margin-top: 8px; }
.m-note-row { margin-top: 24px; background: var(--gsu-white); }
.gsu-sec-ground .gsu-card { background: var(--gsu-white); }
.gsu-card .gsu-link { margin-top: 12px; }
.m-contact-v { font-size: 18px; font-weight: 700; color: var(--gsu-ink); margin-top: 6px; overflow-wrap: anywhere; }

/* ---------- Hata sayfaları (404 / 500) ---------- */
.m-hata-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gsu-line); font-size: 14px; font-weight: 600; }
.m-hata-links a { color: var(--gsu-ink); }
.m-hata-links a:hover { color: var(--gsu-red); }
.gsu-hata-ref code { user-select: all; overflow-wrap: anywhere; }
.gsu-hata button.gsu-btn-o { cursor: pointer; font-family: inherit; }
@media (max-width: 575.98px) { .gsu-hata .gsu-btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- Form alanları (hesap ekranları) ---------- */
.m-field { display: flex; flex-direction: column; gap: 6px; }
.m-field label { font-size: 13.5px; font-weight: 600; color: var(--gsu-ink); margin: 0; }
/* Not: gsu-line beyaz üzerinde 1.3:1 kalır; giriş kutusu kenarı 3:1 için gsu-top-ink kullanılır. */
.m-input { width: 100%; border: 1.5px solid var(--gsu-top-ink); background: var(--gsu-white); color: var(--gsu-ink); font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 0; min-height: 48px; }
.m-input:focus { border-color: var(--gsu-red); outline: 2px solid var(--gsu-red); outline-offset: 2px; }
.m-pass { position: relative; }
.m-pass .m-input { padding-right: 52px; }
.m-pass-btn { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 46px; border: 0; background: transparent; color: var(--gsu-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.m-pass-btn:hover { color: var(--gsu-red); }
.m-pass-btn i { font-size: 20px; color: inherit; }
.m-help { font-size: 12.5px; line-height: 1.5; color: var(--gsu-muted); }
.m-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.m-meter > div { height: 4px; background: var(--gsu-line); }
.m-meter > div.active { background: var(--gsu-ink); }
.m-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; margin: 0; }
.m-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gsu-red); flex: none; }
.m-legend { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gsu-muted); display: flex; align-items: center; gap: 12px; margin: 4px 0 0; }
.m-legend::after { content: ""; flex: 1; height: 1px; background: var(--gsu-line); }
.m-btn-block { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.gsu-btn-o.m-btn-block { border: 1.5px solid var(--gsu-ink); font-size: 14.5px; padding: 12px 20px; }
.m-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--gsu-muted); }
.m-or::before, .m-or::after { content: ""; flex: 1; height: 1px; background: var(--gsu-line); }
.m-small-link { font-size: 13px; font-weight: 600; }
.m-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 575.98px) { .m-form-grid { grid-template-columns: minmax(0, 1fr); } }
/* FormValidation iletileri */
.m-auth-form .fv-plugins-message-container .invalid-feedback,
.m-auth-form .fv-plugins-message-container { font-size: 12.5px; color: var(--gsu-red); margin-top: 2px; }
.m-auth-form .alert { border-radius: 0; margin: 0; }

/* ---------- Hesap ekranı düzeni ---------- */
.m-auth { display: grid; grid-template-columns: 5fr 7fr; min-height: 100vh; width: 100%; }
.m-auth-side { position: relative; overflow: hidden; background: var(--gsu-ink); color: var(--gsu-white); }
.m-auth-side .gsu-hero-shade { background: linear-gradient(180deg, var(--ink-shade-95) 0%, var(--ink-shade-74) 55%, var(--ink-shade-38) 100%); }
.m-auth-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 56px; }
.m-auth-brand { display: flex; align-items: center; gap: 14px; color: var(--gsu-white); }
.m-auth-brand:hover { color: var(--gsu-white); text-decoration: none; }
.m-auth-brand img { height: 54px; width: auto; }
.m-auth-brand .gsu-brand-txt { border-left-color: var(--on-dark-25); }
.m-auth-brand .gsu-brand-sys { color: var(--gsu-gold); }
.m-auth-h { font-size: 38px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 18px 0 0; color: var(--gsu-white); }
.m-auth-list { list-style: none; margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid var(--on-dark-20); display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--on-dark-82); }
.m-auth-list li { display: flex; gap: 10px; align-items: center; }
.m-auth-list .ic { color: var(--gsu-gold); }
.m-auth-list .m-step-n { border-color: var(--on-dark-45); color: var(--gsu-white); }
.m-auth-side a.m-out { color: var(--on-dark-72); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.m-auth-side a.m-out:hover { color: var(--gsu-white); }
.m-auth-main { display: flex; flex-direction: column; padding: 32px 56px; background: var(--gsu-white); min-width: 0; }
.m-auth-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; }
.m-auth-bar a.back { color: var(--gsu-ink); display: inline-flex; gap: 8px; align-items: center; }
.m-auth-bar a.back:hover { color: var(--gsu-red); text-decoration: none; }
.m-auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.m-auth-form form { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.m-auth-form form.m-wide { max-width: 580px; }
.m-auth-form h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 0; line-height: 1.1; }
.m-auth-sub { font-size: 15px; color: var(--gsu-muted); margin: 0; }
.m-auth-foot { font-size: 12.5px; color: var(--gsu-muted); text-align: center; }
.m-lang { display: flex; gap: 2px; }
.m-lang a { padding: 4px 10px; text-transform: uppercase; color: var(--gsu-top-ink); font-size: 12.5px; }
.m-lang a.on { background: var(--gsu-red); color: var(--gsu-white); }
.m-lang a:hover { text-decoration: none; color: var(--gsu-red); }
.m-lang a.on:hover { color: var(--gsu-white); }
.m-auth-mobile-brand { display: none; }
@media (max-width: 991.98px) {
    .m-auth { grid-template-columns: minmax(0, 1fr); }
    .m-auth-side { display: none; }
    .m-auth-main { padding: 0 16px 24px; }
    .m-auth-mobile-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: 10px 16px; border-bottom: 2px solid var(--gsu-ink); }
    .m-auth-mobile-brand .gsu-brand img { height: 40px; }
    .m-auth-bar { padding-top: 14px; }
    .m-auth-form { align-items: flex-start; padding-top: 24px; }
    .m-auth-form h1 { font-size: 28px; }
}
