/* IT Operations Portal — Welcome Page Styles */
/* Shared nav/auth/tokens are in nav.css */
@import url('nav.css');

/* ── Hero Strip ── */
.portal-hero {
    position: relative;
    background: var(--dark-blue);
    overflow: hidden;
    padding: 2.25rem 0;
}

.portal-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('/assets/patterns/Primaris_TrapeziodPattern_White_RGB.png');
    background-size: 520px auto;
    background-repeat: repeat;
    opacity: 0.055;
    pointer-events: none;
}

.portal-hero-content {
    position: relative;
    z-index: 1;
}

.portal-hero-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.5rem;
}

.portal-hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.portal-hero-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    max-width: 480px;
    line-height: 1.55;
}

/* ── Main Content ── */
.portal-main {
    min-height: calc(100vh - 56px);
    padding: 2rem 0 4rem;
}

/* ── Shared Container ── */
.portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ── Service Sections ── */
.service-section {
    margin-bottom: 2.5rem;
}

.service-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.15rem;
    line-height: 1.4;
}

/* ── Service Tiles Grid ── */
.service-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

/* ── Individual Tile ── */
.tile {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.15rem 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.tile:hover {
    box-shadow: 0 6px 24px rgba(56,89,120,0.3);
    transform: translateY(-2px);
}

.tile--coming-soon {
    cursor: default;
    opacity: 0.55;
}

.tile--coming-soon:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transform: none;
}

/* ── Tile Icon — coloured circles ── */
.tile-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tile:hover .tile-icon {
    transform: scale(1.08);
}

.tile-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tile-icon--blue {
    background: #eaf1f8;
    color: var(--dark-blue);
}

.tile-icon--teal {
    background: #e4f4f5;
    color: var(--teal);
}

.tile-icon--purple {
    background: #f4e8ef;
    color: var(--purple);
}

.tile-icon--green {
    background: #f0f4e2;
    color: #6a7a1f;
}

.tile-icon--gold {
    background: #fdf3e0;
    color: #b8832e;
}

.tile-icon--sharepoint {
    background: #e8f0f8;
    color: #0078d4;
}

.tile-icon--muted {
    background: #f3f4f6;
    color: var(--text-light);
}

/* ── Tile Body ── */
.tile-body {
    flex: 1;
    min-width: 0;
}

.tile-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.tile-desc {
    font-size: 0.78rem;
    color: var(--text-mid);
    line-height: 1.5;
    font-weight: 400;
}

/* ── Tile Arrow ── */
.tile-arrow {
    width: 16px;
    min-width: 16px;
    color: var(--text-light);
    margin-top: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.tile-arrow svg {
    width: 14px;
    height: 14px;
    display: block;
}

.tile:hover .tile-arrow {
    color: var(--dark-blue);
    transform: translateX(2px);
}

.tile-arrow--external svg {
    width: 13px;
    height: 13px;
}

/* ── Coming Soon Badge ── */
.tile-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray);
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px 8px;
}

/* ── Outage Notification Banner ── */
.outage-banner[hidden] {
    display: none !important;
}

.outage-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbf0;
    border: 1px solid #f5e6c8;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    animation: outage-fade-in 0.4s ease;
}

@keyframes outage-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.outage-banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--gold);
    margin-top: 2px;
}

.outage-banner-icon svg {
    width: 100%;
    height: 100%;
}

.outage-banner-heading {
    font-weight: 700;
    font-size: 15px;
    color: #8a6320;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.outage-banner-item {
    margin-bottom: 6px;
}

.outage-banner-item:last-child {
    margin-bottom: 0;
}

.outage-banner-item strong {
    font-size: 14px;
    color: var(--text-dark);
}

.outage-banner-item p {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 2px;
    line-height: 1.5;
}

/* ── Welcome Responsive ── */
@media (max-width: 900px) {
    .service-tiles {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .portal-container {
        padding: 0 1.25rem;
    }

    .portal-hero {
        padding: 1.75rem 0;
    }

    .portal-hero-title {
        font-size: 1.45rem;
    }

    .service-tiles {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .portal-hero-sub {
        display: none;
    }

    .service-tiles {
        grid-template-columns: 1fr;
    }
}
