/* News page add-on styles — complements layout.css */

/* Headings to match About tone */
h2 {
    font-family: 'MB Corpo S Title';
    text-align: left;
    font-size: 2em;
    color: whitesmoke;
    justify-self: center;
}

.news-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

/* Hero / General */
.news-hero {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 2rem;
    align-items: start;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.75rem;
}

.news-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1rem;
    font-weight: 700;
    color: rgb(65,190,234);
    margin-bottom: .35rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideDown 1s ease forwards;
}

.news-title {
    font-family: 'MB Corpo S Title';
    font-size: 2.1rem;
    color: whitesmoke;
    margin-bottom: .5rem;
    background: linear-gradient(to right, whitesmoke 20%, rgb(65,190,234) 40%, whitesmoke 60%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite;
}

.news-body {
    color: #e6e6e6;
    line-height: 1.6;
}

/* General cards */
.gen-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gen-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 1rem;
}

    .gen-card h4 {
        font-family: 'MB Corpo S Title';
        color: whitesmoke;
        margin-bottom: .35rem;
    }

.gen-stat {
    font-size: 1.8rem;
    color: whitesmoke;
    margin-bottom: .25rem;
}

.gen-note {
    color: #d6d6d6;
    font-size: .95rem;
}

.news-list {
    color: #e6e6e6;
    line-height: 1.6;
    padding-left: 1rem;
}

/* Divider */
.news-divider {
    height: 1px;
    width: 100%;
    margin: 1.75rem 0;
    background: linear-gradient(90deg, rgba(65,190,234,0) 0%, rgba(65,190,234,.7) 25%, rgba(65,190,234,.7) 75%, rgba(65,190,234,0) 100%);
}

/* Sections */
.news-section {
    padding: .25rem 0;
}

.section-head {
    margin-bottom: .75rem;
}

.section-title {
    font-family: 'MB Corpo S Title';
    font-size: 1.6rem;
    color: whitesmoke;
}

.section-sub {
    color: #dcdcdc;
}

/* Reports */
.report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.report-card {
    display: grid;
    grid-template-rows: 180px auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    overflow: hidden;
}

.report-shot {
    background: rgba(0,0,0,0.35);
    display: grid;
    place-items: center;
}

    .report-shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.report-meta {
    padding: .75rem;
    display: grid;
    gap: .25rem;
}

    .report-meta h4 {
        color: whitesmoke;
        font-family: 'MB Corpo S Title';
    }

    .report-meta p {
        color: #e6e6e6;
    }

.btn-link {
    justify-self: start;
    margin-top: .25rem;
    text-decoration: none;
    color: rgb(65,190,234);
    border: 1px solid rgba(65,190,234,.5);
    padding: .35rem .6rem;
    border-radius: 8px;
}

    .btn-link:hover {
        background: rgba(65,190,234,.15);
    }

/* Apps */
.apps-wrap {
    display: grid;
    gap: .75rem;
}

.app-hub {
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    padding: .6rem .9rem;
    border-radius: 10px;
}

    .app-hub:hover {
        background: rgba(255,255,255,0.12);
    }

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.app-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: .8rem .9rem;
}

    .app-card h4 {
        color: whitesmoke;
        font-family: 'MB Corpo S Title';
    }

    .app-card p {
        color: #e6e6e6;
    }

/* Most used reports */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.usage-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: .8rem;
}

    .usage-card h4 {
        color: whitesmoke;
        font-family: 'MB Corpo S Title';
        margin-bottom: .4rem;
    }

.usage-bar {
    height: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .35rem;
}

    .usage-bar span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, rgb(65,190,234), rgba(65,190,234,.5));
        width: 0;
        animation: fillBar 1.2s ease forwards;
    }

@keyframes fillBar {
    to {
        width: var(--to, 60%);
    }
}

.usage-note {
    color: #dcdcdc;
}

/* DIGI */
.digi-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 1rem;
    align-items: start;
}

.btn-idea {
    display: inline-block;
    text-decoration: none;
    color: black;
    background: rgb(65,190,234);
    padding: .7rem 1rem;
    border-radius: 10px;
    text-align: center;
}

    .btn-idea:hover {
        filter: brightness(1.1);
    }

/* Animations reused from About */
@keyframes fadeSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .news-hero {
        grid-template-columns: 1fr;
    }

    .gen-cards {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }

    .usage-grid {
        grid-template-columns: 1fr 1fr;
    }

    .digi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .report-grid, .usage-grid, .app-grid {
        grid-template-columns: 1fr;
    }
}

/* ========= Apps with Status, Windows & Updates ========= */

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.app-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: .9rem;
    display: grid;
    gap: .5rem;
}

.app-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

    .app-head h4 {
        color: whitesmoke;
        font-family: 'MB Corpo S Title';
        font-size: 1.15rem;
        margin: 0;
    }

.status {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .25rem .5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status--maintenance {
    color: #2b1f00;
    background: #ffcf66; /* amber */
    border-color: rgba(0,0,0,.12);
}

.status--update {
    color: #082233;
    background: #95d6ff; /* light blue */
    border-color: rgba(0,0,0,.12);
}

.status--ok {
    color: #062a13;
    background: #79e2a7; /* green */
    border-color: rgba(0,0,0,.12);
}

.app-body {
    display: grid;
    gap: .35rem;
}

.app-detail, .app-update {
    color: #e6e6e6;
    line-height: 1.55;
    margin: 0;
}

    .app-detail strong {
        color: whitesmoke;
    }

    .app-update em {
        color: #cfcfcf;
    }

.app-links {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.btn-ghost {
    color: rgb(65,190,234);
    border-color: rgba(65,190,234,.35);
    background: transparent;
}

    .btn-ghost:hover {
        background: rgba(65,190,234,.12);
    }

/* Make times easy to scan */
time {
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 1100px) {
    .app-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== AI @ 566 (Tech) ===== */
.ai-tech-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.25rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.ai-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
}

/* Soft edge blend using a mask so the image melts into the card */
.ai-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* soft fade on the right edge (for LTR) */
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}

/* Decorative badge over the image */
.ai-badge {
    position: absolute;
    left: .65rem;
    bottom: .65rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: .3rem .55rem;
    font-size: .85rem;
    letter-spacing: .02em;
}

/* Text column */
.ai-text {
    display: grid;
    gap: .5rem;
}

.ai-title {
    font-family: 'MB Corpo S Title';
    color: whitesmoke;
    font-size: 1.35rem;
    margin: 0;
}

/* Links */
.ai-links {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Fallback when mask-image not supported */
@supports not ((mask-image: linear-gradient(black, transparent)) or (-webkit-mask-image: linear-gradient(black, transparent))) {
    .ai-img {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .ai-tech-grid {
        grid-template-columns: 1fr;
    }
    /* soften top instead of right when stacked */
    .ai-img {
        -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(180deg, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
    }
}
/* ===== Feedback / Recognition ===== */
.fb-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.25rem;
    align-items: start;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 1rem;
}

.fb-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
}

    .fb-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* gentle right-edge fade to blend toward the text column */
        -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(90deg, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
    }

.fb-badge {
    position: absolute;
    left: .6rem;
    bottom: .6rem;
    padding: .3rem .55rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    color: #082233;
    background: #95d6ff; /* light blue highlight */
    border: 1px solid rgba(0,0,0,.15);
}

.fb-content {
    display: grid;
    gap: .5rem;
}

.fb-title {
    margin: 0;
    font-family: 'MB Corpo S Title';
    color: whitesmoke;
    font-size: 1.25rem;
}

.fb-quote {
    margin: 0;
    padding-left: .85rem;
    border-left: 3px solid rgb(65,190,234);
    color: #e6f6ff;
    font-style: italic;
}

.fb-list {
    margin-top: .25rem;
}

.fb-meta {
    color: #d6d6d6;
    font-size: .92rem;
    margin-top: .25rem;
}

/* Fallback when masks unsupported */
@supports not ((mask-image: linear-gradient(black, transparent)) or (-webkit-mask-image: linear-gradient(black, transparent))) {
    .fb-media img {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .fb-card {
        grid-template-columns: 1fr;
    }

    .fb-media img {
        -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(180deg, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    }
}
/* Digi@566 logo reveal */
.digi-head {
    text-align: center;
}

.digi-logo {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 0.5rem auto;
    /* start hidden */
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity .6s ease, transform .6s ease;
    filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.4)); /* optional glow */
}

    /* becomes visible + starts float once revealed */
    .digi-logo.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        animation: floatPulse 5s ease-in-out infinite;
    }

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}
