/* Shared public auth header navigation (index, login, notices, manual) */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header.show {
    opacity: 1;
    transform: translateY(0);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8ecf1;
    overflow: hidden;
    padding: 3px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h4 {
    color: #1e3c72;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.logo-text p {
    color: #666;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

.public-auth-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

.public-auth-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pub-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pub-nav-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.pub-nav-btn.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
    cursor: default;
    pointer-events: none;
}

.pub-nav-btn--website {
    background: linear-gradient(180deg, #2a5298, #1e3c72);
    color: #fff !important;
    border-color: #1a3366;
}

.pub-nav-btn--notice {
    background: linear-gradient(180deg, #e04555, #c82333);
    color: #fff !important;
    border-color: #a71d2a;
    animation: pubNavPulse 2s ease-in-out infinite;
}

.pub-nav-btn--manual {
    background: linear-gradient(180deg, #ff922b, #e8590c);
    color: #fff !important;
    border-color: #d9480f;
}

.pub-nav-btn--student {
    background: linear-gradient(180deg, #339af0, #1c7ed6);
    color: #fff !important;
    border-color: #1864ab;
}

.pub-nav-btn--swars {
    background: linear-gradient(180deg, #7048e8, #5f3dc4);
    color: #fff !important;
    border-color: #4c2f9e;
}

.pub-nav-btn--staff {
    background: linear-gradient(180deg, #495057, #343a40);
    color: #fff !important;
    border-color: #212529;
}

.pub-nav-label-short {
    display: none;
}

@keyframes pubNavPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    }
}

@media (max-width: 992px) {
    .public-auth-header-inner {
        flex-wrap: wrap;
    }

    .public-auth-nav {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .public-auth-header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0 14px;
    }

    .public-auth-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .pub-nav-btn {
        width: 100%;
        padding: 8px 8px;
        font-size: 0.7rem;
    }

    .pub-nav-label-full {
        display: none;
    }

    .pub-nav-label-short {
        display: inline;
    }
}

@media (max-width: 380px) {
    .pub-nav-btn i {
        font-size: 0.85rem;
    }
}
