/**
 * Norse Comic Theme - Stile B/W Fumetto Anni 70
 * Mantiene font runici per titoli, immagini originali a colori
 */

:root {
    --comic-bg: #f5f0e6;
    --comic-paper: #fff;
    --comic-border: #000;
    --comic-text: #1a1a1a;
    --comic-muted: #666;
    --comic-accent: #333;
    --norse-red: #cc0000;
}

.norse-library h1,
.norse-library h2,
.norse-library h3,
.norse-library h4,
.norse-library h5,
.norse-library h6,
.norse-library .h5 {
    color: var(--norse-red);
}

.norse-library .card-header h1,
.norse-library .card-header h2,
.norse-library .card-header h3,
.norse-library .card-header h4,
.norse-library .card-header h5,
.norse-library .card-header h6,
.norse-library .card-header .h5,
.norse-library .magazine-card-small h5,
.norse-library .magazine-card-medium h5,
.norse-library .magazine-card-overlay h5,
.norse-library .rune-reggenza-card h5,
.norse-library .page-banner-overlay h5,
.biblioteca-norrena .card-header h1,
.biblioteca-norrena .card-header h2,
.biblioteca-norrena .card-header h3,
.biblioteca-norrena .card-header h4,
.biblioteca-norrena .card-header h5,
.biblioteca-norrena .card-header h6,
.rune-section .card-header h1,
.rune-section .card-header h2,
.rune-section .card-header h3,
.rune-section .card-header h4,
.rune-section .card-header h5,
.rune-section .card-header h6,
.norse-content .card-header h1,
.norse-content .card-header h2,
.norse-content .card-header h3,
.norse-content .card-header h4,
.norse-content .card-header h5,
.norse-content .card-header h6 {
    color: #fff !important;
}

.norse-comic-page {
    background: var(--comic-bg);
    min-height: 100vh;
}

.norse-comic-header {
    background: var(--comic-paper);
    border-bottom: 4px solid var(--comic-border);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.norse-comic-title {
    color: var(--comic-border);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #ccc;
    margin: 0;
}

.norse-comic-subtitle {
    color: var(--comic-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-style: italic;
}

.norse-comic-card {
    background: var(--comic-paper);
    border: 3px solid var(--comic-border);
    border-radius: 0;
    box-shadow: 5px 5px 0 var(--comic-border);
    transition: all 0.2s ease;
    overflow: hidden;
}

.norse-comic-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--comic-border);
}

.norse-comic-card .card-title {
    color: var(--comic-border);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.norse-comic-card .card-text {
    color: var(--comic-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.norse-comic-card .card-body {
    padding: 1rem;
    border-top: 2px solid var(--comic-border);
}

.norse-comic-widget {
    background: var(--comic-paper);
    border: 3px solid var(--comic-border);
    box-shadow: 4px 4px 0 var(--comic-border);
    margin-bottom: 1rem;
}

.norse-comic-widget-header {
    background: var(--comic-border);
    color: var(--comic-paper);
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.norse-comic-widget-body {
    padding: 1rem;
    text-align: center;
}

.norse-comic-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.norse-comic-breadcrumb a {
    color: var(--comic-border);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.norse-comic-breadcrumb a:hover {
    border-bottom-color: var(--comic-border);
}

.norse-comic-breadcrumb .active {
    color: var(--comic-muted);
}

.btn-norse-comic {
    background: var(--comic-border);
    border: 2px solid var(--comic-border);
    color: var(--comic-paper);
    padding: 0.5rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-norse-comic:hover {
    background: var(--comic-paper);
    color: var(--comic-border);
}

.btn-outline-norse-comic {
    background: transparent;
    border: 2px solid var(--comic-border);
    color: var(--comic-border);
    padding: 0.5rem 1rem;
    font-weight: 700;
}

.btn-outline-norse-comic:hover {
    background: var(--comic-border);
    color: var(--comic-paper);
}

.norse-comic-badge {
    background: var(--comic-paper);
    color: var(--comic-border);
    border: 2px solid var(--comic-border);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.norse-comic-section-title {
    color: var(--comic-border);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 3px solid var(--comic-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.norse-comic-content-card {
    background: var(--comic-paper);
    border: 3px solid var(--comic-border);
    box-shadow: 5px 5px 0 var(--comic-border);
}

.norse-comic-content-card .card-header {
    background: var(--comic-border);
    color: var(--comic-paper);
    border-bottom: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
}

.norse-comic-content-card .card-body {
    color: var(--comic-text);
    line-height: 1.8;
    padding: 1.5rem;
}

.norse-comic-filter-card {
    background: var(--comic-paper);
    border: 2px dashed var(--comic-border);
    padding: 1rem;
}

.norse-comic-rune-card {
    background: var(--comic-paper);
    border: 2px solid var(--comic-border);
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.norse-comic-rune-card:hover {
    box-shadow: 3px 3px 0 var(--comic-border);
    transform: translate(-1px, -1px);
}

.norse-comic-rune-card a {
    color: var(--comic-border);
    text-decoration: none;
    font-weight: 600;
}

.norse-comic-rune-card a:hover {
    text-decoration: underline;
}

.rune-glyph-comic {
    font-size: 4rem;
    line-height: 1;
    color: var(--comic-border);
    text-shadow: 2px 2px 0 #ccc;
}

.rune-glyph-comic.large {
    font-size: 8rem;
}

.norse-comic-list-item {
    background: var(--comic-paper);
    border: 2px solid var(--comic-border);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    display: block;
    color: var(--comic-text);
    text-decoration: none;
}

.norse-comic-list-item:hover {
    box-shadow: 3px 3px 0 var(--comic-border);
    transform: translate(-2px, -2px);
    color: var(--comic-text);
    text-decoration: none;
}

.norse-comic-list-item h6 {
    color: var(--comic-border);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.norse-comic-list-item small {
    color: var(--comic-muted);
}

.norse-comic-image-frame {
    border: 3px solid var(--comic-border);
    box-shadow: 4px 4px 0 var(--comic-border);
    overflow: hidden;
}

.norse-comic-input {
    border: 2px solid var(--comic-border);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
}

.norse-comic-input:focus {
    border-color: var(--comic-border);
    box-shadow: 3px 3px 0 var(--comic-border);
    outline: none;
}

.norse-comic-select {
    border: 2px solid var(--comic-border);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    background: var(--comic-paper);
}

.norse-comic-nav-link {
    color: var(--comic-border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
}

.norse-comic-nav-link:hover,
.norse-comic-nav-link.active {
    background: var(--comic-border);
    color: var(--comic-paper);
}

.norse-comic-pagination .page-link {
    border: 2px solid var(--comic-border);
    color: var(--comic-border);
    font-weight: 700;
    border-radius: 0;
    margin: 0 2px;
}

.norse-comic-pagination .page-item.active .page-link {
    background: var(--comic-border);
    color: var(--comic-paper);
    border-color: var(--comic-border);
}

.norse-comic-pagination .page-link:hover {
    background: var(--comic-accent);
    color: var(--comic-paper);
}

/* =====================================================
   COMPONENTI CONDIVISI - Biblioteca Norrena / Rune
   Classi usate in runes.html e view_rune.html
   ===================================================== */

/* Pulsanti runa - stile fumetto B/N */
.btn-rune {
    background: #000;
    border: 2px solid #000;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
}
.btn-rune:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}
.btn-outline-rune {
    border: 2px solid #000;
    color: #000;
    background: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
}
.btn-outline-rune:hover {
    background: #000;
    color: #fff;
}

/* Badge runa */
.badge-rune {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    font-weight: 700;
    text-transform: uppercase;
}

/* Sidebar card rune - header rosso nordico */
.rune-sidebar-card {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 5px 5px 0 #000;
}
.rune-sidebar-card .card-header {
    background: #cc0000;
    border-bottom: 3px solid #cc0000;
    color: #fff;
}
.rune-sidebar-card .card-header h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

/* Miniatura immagine sidebar */
.rune-sidebar-image {
    background: #f5f5f5;
    border-radius: 0;
    border: 2px solid #000;
    padding: 8px;
    max-width: 120px;
    margin: 0 auto;
    box-shadow: 2px 2px 0 #000;
}

/* Contenitore immagine runa */
.rune-image-container {
    background: #f5f5f5;
    border-radius: 0;
    border: 2px solid #000;
    padding: 12px;
    box-shadow: 3px 3px 0 #000;
}

/* Card runa nell'archivio */
.rune-card {
    background: #fff !important;
    border: 3px solid #000 !important;
    border-radius: 0;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.2s ease;
}
.rune-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #000;
}
.rune-card .card-title {
    color: #cc0000 !important;
    font-weight: 800;
    text-transform: uppercase;
}
.rune-card .card-text {
    color: #1a1a1a !important;
    line-height: 1.5;
}
.rune-card .reggenza-badge {
    background: #000;
}

/* Filtri archivio rune */
.rune-filter-card {
    background: #f5f5f5;
    border: 2px dashed #000;
    border-radius: 0;
}

/* Header pagina archivio rune */
.rune-theme-header {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 2rem;
    box-shadow: 5px 5px 0 #000;
    text-align: center;
}
.rune-theme-header h1 {
    color: #000;
    text-shadow: 3px 3px 0 #ccc;
    font-weight: 900;
    text-transform: uppercase;
}
.rune-theme-header .lead {
    color: #333;
}

/* Paginazione nella sezione norrena */
.norse-library .pagination .page-link {
    background: #fff;
    border-color: #000;
    color: #000;
    font-weight: 700;
    border-radius: 0;
}
.norse-library .pagination .page-link:hover {
    background: #333;
    border-color: #000;
    color: #fff;
}
.norse-library .pagination .page-item.active .page-link {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* ======================================================
   Banner Libro: Rune Talismani e Sigilli
   Widget promozionale verticale — Biblioteca Norrena
   ====================================================== */
.libro-rune-banner {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.libro-rune-banner-header {
    background: #000;
    padding: 7px 12px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}
.libro-rune-hero-img {
    width: 100%;
    display: block;
    max-height: 280px;
    object-fit: cover;
    object-position: top;
    border-bottom: 2px solid #000;
}
.libro-rune-cover-wrap {
    padding: 12px 16px 6px;
    display: flex;
    justify-content: center;
}
.libro-rune-cover-img {
    width: 68%;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    display: block;
}
.libro-rune-title-block {
    padding: 8px 14px 10px;
    text-align: center;
    border-bottom: 2px solid #000;
}
.libro-rune-authors {
    font-size: 0.6rem;
    color: #555;
    font-style: italic;
    margin: 0 0 3px 0;
    letter-spacing: 0.04em;
}
.libro-rune-book-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 3px 0;
    line-height: 1.25;
}
.libro-rune-sub {
    font-size: 0.59rem;
    color: #cc0000;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.libro-rune-claim {
    padding: 10px 14px;
    font-size: 0.71rem;
    color: #333;
    line-height: 1.55;
    font-style: italic;
    border-bottom: 2px solid #000;
    background: #fafafa;
}
.libro-rune-cta {
    padding: 12px 14px;
    text-align: center;
    background: #fff;
}
.libro-rune-btn-amazon {
    display: block;
    background: #000;
    color: #fff !important;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none !important;
    border: 2px solid #000;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
}
.libro-rune-btn-amazon:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff !important;
}
