/* ============================================================
   HR sayfaları özel stilleri
   (HrComponent, CodeComponent ve üst bar dil seçici)
   ============================================================ */

/* ---------- Dil seçici (MainLayout üst bar) ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.lang-switch button {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.lang-switch button:hover {
    color: #fff;
}

.lang-switch button.active {
    background: #fff;
    color: #004a8d;
}

/* ---------- CodeComponent (SMS doğrulama kutuları) ---------- */
.code-boxes {
    display: flex;
    justify-content: center;
    gap: clamp(.4rem, 2vw, .7rem);
    width: 100%;
    margin: .25rem 0;
}

.code-box {
    flex: 0 0 46px;
    width: 46px;
}

.code-box input {
    text-align: center !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #12263f !important;
    padding: .8rem 0 !important;
    caret-color: #0072db;
}

.code-box .mud-input-outlined-border {
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.code-box .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    box-shadow: 0 0 0 4px rgba(0, 114, 219, .14);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tarayıcı için counter'ı gizler */
input[type=number] {
    -moz-appearance: textfield;
}

/* ---------- SMS doğrulama dialogları ---------- */
.sms-dialog {
    border-radius: 20px !important;
    overflow: hidden;
    max-width: 420px;
}

.sms-dialog .mud-dialog-content {
    padding: 0 !important;
    margin: 0 !important;
}

.sms-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #00335f 0%, #004a8d 55%, #0072db 100%);
    padding: 1.6rem 1.5rem 2.4rem;
    text-align: center;
}

.sms-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.sms-banner img {
    position: relative;
    z-index: 1;
    height: 34px;
}

.sms-body {
    padding: 0 1.5rem 1.25rem;
    text-align: center;
}

.sms-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: -28px auto .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0a5bb5;
    box-shadow: 0 8px 20px -6px rgba(2, 42, 84, .35);
    position: relative;
    z-index: 2;
}

.sms-title {
    font-weight: 700 !important;
    color: #12263f;
}

.sms-sub {
    color: #5b6b7b !important;
    max-width: 300px;
    margin: .3rem auto 1.1rem !important;
}

.sms-form {
    text-align: left;
    margin-top: .25rem;
}

.sms-code-label {
    display: block;
    text-align: center;
    color: #5b6b7b;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin: 1rem 0 .35rem;
}

.sms-timer {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: #eef4fb;
    color: #0a5bb5;
    font-weight: 700;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.sms-timer.sms-timer-low {
    background: #fdecea;
    color: #c62828;
}

.sms-dialog .mud-dialog-actions {
    padding: .25rem 1.5rem 1.4rem;
    gap: .5rem;
}

.sms-btn-cancel {
    color: #5b6b7b !important;
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

.sms-btn-cancel:hover {
    background: rgba(18, 38, 63, .06) !important;
}

/* ---------- HrComponent: sayfa iskeleti ---------- */
.hr-page {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Hero ---------- */
.hr-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #00335f 0%, #004a8d 45%, #0072db 100%);
    padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.25rem, 4vw, 3rem);
    box-shadow: 0 20px 45px -18px rgba(0, 58, 112, .45);
}

.hr-hero-overlap {
    padding-bottom: 6.5rem;
}

.hr-hero::before,
.hr-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hr-hero::before {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
}

.hr-hero::after {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -100px;
    background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
}

.hr-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .3;
    background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.hr-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    animation: hr-fade-up .6s ease both;
}

.hr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .95rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.hr-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 .9rem;
}

.hr-hero p {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.88);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

@keyframes hr-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Gömülü form alanı ---------- */
.hr-embed {
    position: relative;
    z-index: 2;
    margin-top: -5rem;
    padding: 0 clamp(.25rem, 2vw, 1.5rem);
}

.hr-embed .mud-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px -12px rgba(2, 42, 84, .18) !important;
}

/* ---------- Bölüm başlıkları ---------- */
.hr-section-head {
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hr-eyebrow {
    display: inline-block;
    color: #0a5bb5;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hr-section-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #12263f;
    margin: .35rem 0 .5rem;
}

.hr-section-sub {
    color: #5b6b7b;
    font-size: .95rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Başvuru kartları ---------- */
.hr-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.hr-option-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 18px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hr-option-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004a8d, #0091ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.hr-option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px -14px rgba(0, 74, 141, .25);
    border-color: transparent;
}

.hr-option-card:hover::before {
    transform: scaleX(1);
}

.hr-option-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8f2fd, #d3e6fa);
    color: #0a5bb5;
    margin-bottom: .9rem;
}

.hr-option-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #12263f;
    margin: 0;
}

.hr-option-card p {
    color: #5b6b7b;
    font-size: .9rem;
    line-height: 1.55;
    margin: .45rem 0 1.15rem;
    flex-grow: 1;
}

.hr-btn {
    background: linear-gradient(135deg, #004a8d, #0072db) !important;
    color: #fff !important;
    border-radius: 10px !important;
    text-transform: none !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 18px -8px rgba(0, 74, 141, .55) !important;
}

.hr-btn:hover {
    filter: brightness(1.08);
}

/* ---------- Başvuru süreci ---------- */
.hr-process {
    background: linear-gradient(180deg, #f4f8fc, #eef4fa);
    border: 1px solid #e6edf5;
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2.5rem);
}

.hr-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hr-step {
    position: relative;
    text-align: center;
    padding: 0 .5rem;
}

.hr-step-no {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004a8d, #0072db);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 0 0 6px rgba(0, 114, 219, .12), 0 10px 20px -8px rgba(0, 74, 141, .5);
}

.hr-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 44px);
    width: calc(100% - 88px);
    border-top: 2px dashed #b9d2ea;
}

.hr-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #12263f;
    margin: 0 0 .35rem;
}

.hr-step p {
    color: #5b6b7b;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Bakım sayfası ---------- */
.maintenance-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: auto;
    background: radial-gradient(circle at top left, rgba(17, 76, 140, 0.10), transparent 30%), radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.10), transparent 25%), linear-gradient(135deg, #f7f9fc 0%, #eef3f9 100%);
}

.maintenance-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .18;
    pointer-events: none;
}

/* Üst/alt padding: sabit header (48px) ve alt bar (48px) sayfanın üzerine bindiği için boşluk bırakılır */
.maintenance-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 84px;
}

.fill-container {
    width: 100%;
}

.maintenance-card {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(15, 35, 65, 0.10);
    border: 1px solid rgba(255,255,255,0.7);
    min-height: clamp(520px, 78vh, 760px);
    display: flex;
}

.fill-grid {
    width: 100%;
    margin: 0;
}

.left-side {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-side {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b06b00;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    margin-bottom: 22px;
    width: fit-content;
}

.maintenance-title {
    font-weight: 800;
    line-height: 1.15;
    color: #17375e;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.maintenance-subtitle {
    color: #5f6f82;
    line-height: 1.75;
    margin-bottom: 28px;
}

.info-box {
    border-radius: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #0f3d72 0%, #1e5faa 100%);
    color: white;
    box-shadow: 0 14px 35px rgba(18, 62, 115, 0.22);
    margin-bottom: 24px;
}

.info-box-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    opacity: .92;
    margin-bottom: 8px;
}

.info-box-date {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.maintenance-text {
    color: #516173;
    line-height: 1.7;
    margin-bottom: 28px;
}

.button-row {
    margin-bottom: 8px;
}

.home-btn {
    min-width: 220px;
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(25, 87, 160, 0.22);
}

.image-panel {
    width: 100%;
    min-height: 420px;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 35, 65, 0.12);
    background: radial-gradient(circle at top, rgba(255,255,255,0.20), transparent 35%), linear-gradient(135deg, #0f3d72 0%, #1c568f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.maintenance-image {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.22));
}

@media (max-width: 960px) {
    .maintenance-shell {
        padding: 64px 12px 72px;
        align-items: stretch;
    }

    .maintenance-card {
        min-height: auto;
        border-radius: 20px;
    }

    .left-side {
        padding: 28px 22px 20px 22px;
    }

    .right-side {
        padding: 0 22px 22px 22px;
    }

    .maintenance-title {
        font-size: 2rem !important;
    }

    .maintenance-subtitle {
        margin-bottom: 22px;
    }

    .info-box {
        margin-bottom: 20px;
    }

    .info-box-date {
        font-size: 1.45rem;
    }

    .home-btn {
        width: 100%;
        min-width: unset;
    }

    .image-panel {
        min-height: 260px;
    }

    .maintenance-image {
        max-height: 220px;
    }
}

@media (max-width: 600px) {
    .maintenance-shell {
        padding: 60px 10px 68px;
    }

    .left-side {
        padding: 22px 18px 18px 18px;
    }

    .right-side {
        padding: 0 18px 18px 18px;
    }

    .maintenance-title {
        font-size: 1.7rem !important;
    }

    .maintenance-subtitle,
    .maintenance-text {
        font-size: 0.95rem;
    }

    .info-box {
        padding: 18px;
        border-radius: 16px;
    }

    .image-panel {
        min-height: 220px;
        border-radius: 16px;
    }

    .maintenance-image {
        max-height: 180px;
    }
}

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
    .hr-hero-overlap {
        padding-bottom: 5.5rem;
    }

    .hr-embed {
        margin-top: -4rem;
        padding: 0;
    }

    .hr-steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hr-step:not(:last-child)::after {
        display: none;
    }

    .hr-btn {
        width: 100%;
    }
}
