/**
 * IT-Sentralen Announcement Overlay
 * Designprofil: Marine Blå, Inter font, minimalistisk institusjonell stil
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   BLUR OG GRÅTONE PÅ BAKGRUNN
   ======================================== */

html.itsa-active {
    overflow: hidden !important;
}

html.itsa-active body {
    overflow: hidden !important;
}

html.itsa-active body > *:not(#itsa-overlay) {
    filter: blur(8px) grayscale(70%) !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* ========================================
   OVERLAY
   ======================================== */

#itsa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0, 32, 91, 0.6);
    animation: itsaFadeIn 0.6s ease-out;
}

/* ========================================
   MODAL
   ======================================== */

.itsa-modal {
    background: #FFFFFF;
    color: #1a1a2e;
    border-radius: 0.375rem;
    padding: 3rem 2.5rem;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: itsaSlideUp 0.6s ease-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   KOMPONENTER
   ======================================== */

.itsa-logo {
    color: #00205B;
    margin-bottom: 1.5rem;
    animation: itsaFadeInUp 0.6s ease-out 0.1s both;
}

.itsa-title {
    font-size: 2rem;
    font-weight: 600;
    color: #00205B;
    margin: 0 0 2rem 0;
    letter-spacing: -0.025em;
    animation: itsaFadeInUp 0.6s ease-out 0.2s both;
}

.itsa-name-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: itsaFadeInUp 0.6s ease-out 0.3s both;
}

.itsa-old-name,
.itsa-new-name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.itsa-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(219, 30%, 40%);
}

.itsa-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #00205B;
}

.itsa-old-name .itsa-name {
    text-decoration: line-through;
    opacity: 0.6;
}

.itsa-arrow {
    color: #00205B;
    flex-shrink: 0;
}

.itsa-message {
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(219, 30%, 40%);
    margin: 0 0 2rem 0;
    animation: itsaFadeInUp 0.6s ease-out 0.4s both;
}

.itsa-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #00205B;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: itsaFadeInUp 0.6s ease-out 0.5s both;
}

.itsa-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 32, 91, 0.3);
    color: #FFFFFF;
}

.itsa-button:active {
    transform: translateY(0);
}

.itsa-footer-text {
    font-size: 0.875rem;
    color: hsl(219, 30%, 40%);
    margin: 2rem 0 0 0;
    opacity: 0.7;
    animation: itsaFadeInUp 0.6s ease-out 0.6s both;
}

/* ========================================
   ANIMASJONER
   ======================================== */

@keyframes itsaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes itsaSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes itsaFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVT
   ======================================== */

@media (max-width: 640px) {
    .itsa-modal { padding: 2rem 1.5rem; }
    .itsa-title { font-size: 1.5rem; }
    .itsa-name-change { flex-direction: column; gap: 1rem; }
    .itsa-arrow { transform: rotate(90deg); }
    .itsa-name { font-size: 1rem; }
    .itsa-button { width: 100%; justify-content: center; padding: 0.875rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    #itsa-overlay, .itsa-modal, .itsa-logo, .itsa-title,
    .itsa-name-change, .itsa-message,
    .itsa-button, .itsa-footer-text { animation: none; }
    .itsa-button { transition: none; }
}
