/* ═══════════════════════════════════════════════════════════════════════════
   MUSEO DELLE VOCI ARTIFICIALI
   Footer Component — Expandable Site Footer
   ═══════════════════════════════════════════════════════════════════════════

   Structure:
   .site-footer
   ├── .site-footer__expanded
   │   └── .site-footer__content
   │       ├── .site-footer__brand
   │       │   ├── .site-footer__brand-mark
   │       │   │   ├── .site-footer__symbol
   │       │   │   └── .site-footer__title
   │       │   └── .site-footer__legal
   │       └── .site-footer__column (×4)
   │           ├── h4
   │           └── a (links)
   └── .site-footer__bar
       ├── .site-footer__copyright
       └── .site-footer__toggle

   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   FOOTER CONTAINER
   ═══════════════════════════════════════════ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-modal, 500);
}

/* ═══════════════════════════════════════════
   FOOTER BAR — Always Visible
   ═══════════════════════════════════════════ */
.site-footer__bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    padding: 0.75rem 2rem;

    background: rgba(10, 10, 10, 0.85);
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* GPU acceleration for better scroll performance */
    will-change: transform;
    transform: translateZ(0);

    cursor: pointer;
    transition: all 0.3s ease;
}

.site-footer__bar:hover {
    background: rgba(10, 10, 10, 0.95);
    border-top-color: rgba(201, 162, 39, 0.4);
}

.site-footer__copyright {
    font-family: var(--font-body, 'Cormorant Garamond', serif);
    font-size: 0.75rem;
    color: rgba(245, 245, 245, 0.7);
    letter-spacing: 0.05em;
}

.site-footer__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.7rem;
    color: var(--accent, #c9a227);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__toggle svg {
    transition: transform 0.3s ease;
}

.site-footer.expanded .site-footer__toggle svg {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════
   EXPANDED CONTENT
   ═══════════════════════════════════════════ */
.site-footer__expanded {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.95);
    transition: max-height 0.4s ease;
}

.site-footer.expanded .site-footer__expanded {
    max-height: 300px;
}

.site-footer__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr 0.9fr;
    gap: 2rem;
    padding: 2rem 4rem;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
}

/* ═══════════════════════════════════════════
   BRAND SECTION
   ═══════════════════════════════════════════ */
.site-footer__brand {
    padding-right: 2rem;
    border-right: 1px solid rgba(201, 162, 39, 0.08);
}

.site-footer__brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.site-footer__symbol {
    font-size: 1.5rem;
    color: var(--accent, #c9a227);
    opacity: 0.8;
}

.site-footer__title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer__legal {
    font-family: var(--font-body, 'Cormorant Garamond', serif);
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* ═══════════════════════════════════════════
   NAVIGATION COLUMNS
   ═══════════════════════════════════════════ */
.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer__column h4 {
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent, #c9a227);
    margin-bottom: 1rem;
}

.site-footer__column a {
    display: block;
    color: rgba(245, 245, 245, 0.7);
    text-decoration: none;
    font-family: var(--font-body, 'Cormorant Garamond', serif);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.site-footer__column a:hover {
    color: var(--accent, #c9a227);
}

/* ═══════════════════════════════════════════
   ARCHIVI SECTION
   ═══════════════════════════════════════════ */
.site-footer__archivi a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-footer__archivi svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.site-footer__archivi a:hover svg {
    opacity: 1;
}

/* Locked items */
.site-footer__archivi-locked {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.site-footer__archivi-locked:hover {
    color: inherit !important;
}

.site-footer__lock-icon {
    width: 10px;
    height: 10px;
    margin-left: 0.3rem;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Large Tablet
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .site-footer__content {
        grid-template-columns: 1.5fr repeat(4, 1fr);
        gap: 1.5rem;
        padding: 2rem 2.5rem;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .site-footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        padding: 1.5rem 2rem;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
        border-right: none;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
    .site-footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-footer__column {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(201, 162, 39, 0.05);
    }

    .site-footer__column:last-child {
        border-bottom: none;
    }

    .site-footer__bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════════
   UTILITY — No Animation (Accessibility)
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .site-footer__expanded {
        transition: none;
    }

    .site-footer__toggle svg {
        transition: none;
    }
}
