/* /site/docs/stylesheets/extra.css */

/* 1. Glassmorphism Header */
.md-header {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. Modern Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--md-primary-fg-color);
    border-radius: 4px;
}

/* 3. Animated Cards for Categories */
.md-typeset .grid.cards > ul > li {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 12px;
    background: var(--md-default-bg-color--lighter);
}

.md-typeset .grid.cards > ul > li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--md-accent-fg-color);
}

/* 4. Table Styling */
.md-typeset table:not([class]) {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 5. Hero Banner Typography (useremo questa classe nell'indexer) */
.hero-text {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 1rem;
    background: linear-gradient(
        135deg,
        var(--md-primary-fg-color),
        var(--md-accent-fg-color)
    );
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    color: white !important;
    font-weight: 800;
    font-size: 2.5rem;
    margin-top: 0;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- ARTICLE HERO HEADER --- */
.article-hero {
    background: linear-gradient(135deg, var(--md-primary-fg-color), #2d2b55);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* Effetto di sfondo decorativo (opzionale) */
.article-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
    );
    opacity: 0.5;
    pointer-events: none;
}

.article-hero h1 {
    color: white !important;
    font-weight: 800;
    font-size: 2.2rem;
    margin: 1rem 0 !important;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 1.5rem;
}

.hero-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-date {
    display: flex;
    align-items: center;
    gap: 5px;
}
