/**
 * ZEDIS Design System - Official Ministry Header (T.C. ÇŞİDB)
 */

/* 1. Top Official Ministry Accent Line */
.ministry-accent-line {
    height: 4px;
    background-color: var(--ministry-red);
    width: 100%;
}

/* 2. Minimalist & Prestigious Sticky Header */
.ministry-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ministry-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ministry-brand-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
}

.ministry-logo-box {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ministry-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ministry-title-col {
    display: flex;
    flex-direction: column;
}

.ministry-main-title {
    font-weight: 900;
    color: var(--ministry-red);
    font-size: 0.8125rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ministry-sub-title {
    font-weight: 700;
    color: rgba(185, 28, 28, 0.85);
    font-size: 0.6875rem;
    letter-spacing: normal;
    margin-top: 2px;
}

/* Right Link: ALO 181 */
.alo-181 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
}

.alo-181:hover {
    color: var(--ministry-red);
    background-color: var(--ministry-red-light);
}

.alo-181 svg {
    width: 1rem;
    height: 1rem;
    color: var(--ministry-red);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ministry-header-inner {
        padding: 0 0.75rem;
        height: 3.75rem;
        gap: 0.5rem;
    }
    .ministry-brand-link {
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }
    .ministry-logo-box {
        width: 2.25rem;
        height: 2.25rem;
        flex-shrink: 0;
    }
    .ministry-title-col {
        min-width: 0;
    }
    .ministry-main-title {
        font-size: 0.625rem;
        line-height: 1.15;
    }
    .ministry-sub-title {
        font-size: 0.5625rem;
        margin-top: 1px;
    }
    .alo-181 {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        flex-shrink: 0;
        gap: 0.25rem;
    }
    .alo-181 svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

@media (max-width: 400px) {
    .ministry-sub-title {
        display: none;
    }
    .alo-181 span {
        display: none;
    }
    .alo-181 {
        padding: 0.375rem;
    }
}
