/* ===== FeCatolica - Estilos Comuns ===== */
:root {
    --cor-primaria: #1a4f89;
    --cor-secundaria: #2c7a2c;
    --cor-texto-liturgico: #333;
    --cor-fundo-liturgico: #f7fbff;
    --cor-accent: #c9a84c;
    --transition-speed: 0.25s;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, #f0f6fb 50%, #eef7f1 100%);
    margin: 0;
    padding: 0;
    color: #333;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(10px, 3vw, 24px);
    width: 100%;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(20,40,80,0.08);
    padding: clamp(12px, 3vw, 22px);
    margin-bottom: clamp(12px, 2.5vw, 20px);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

header h1 {
    margin: 0 0 6px 0;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    text-align: center;
}

header p.lead {
    margin: 0;
    color: #555;
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

/* ===== Menu / Navbar ===== */
.menu-container {
    text-align: center;
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.menu-logo {
    max-width: min(300px, 60vw);
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
    display: none;
    background: none;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    margin: 0 auto;
    transition: all 0.2s;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger-btn:hover { background: #f0f0f0; }

.navbar {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 0;
}

.navbar a, .navbar .dropdown > .dropdown-toggle {
    text-decoration: none;
    color: #000;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-block;
    min-height: 44px;
    line-height: 1.4;
}

.navbar a:hover, .navbar .dropdown > .dropdown-toggle:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    padding: 6px 0;
}

.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
    color: #000;
}

/* Nested dropdown (novenas by month) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    transform: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    content: " ▸";
    font-size: 0.8em;
}

/* ===== Accordion ===== */
.accordion-panel {
    margin-bottom: 20px;
}

.accordion-tab {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}

.accordion-header {
    background: #f5f5f5;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #eaeaea;
}

.accordion-header::after {
    content: "▸";
    transition: transform 0.2s;
}

.accordion-header.active::after {
    transform: rotate(90deg);
}

.accordion-content {
    display: none;
    padding: 14px 16px;
    background: #fff;
}

.accordion-content pre {
    white-space: pre-line;
    font-family: inherit;
    margin: 0;
    line-height: 1.6;
}

/* ===== Section Titles ===== */
.section-title {
    font-weight: bold;
    margin-top: 12px;
    color: #1a4f89;
}

/* ===== Mural ===== */
.mural-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mural-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #333;
}

.mural-form input[type="text"],
.mural-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
    box-sizing: border-box;
}

.mural-form textarea {
    resize: vertical;
    min-height: 80px;
}

.intencao-card {
    background: #fff;
    border-left: 4px solid var(--cor-primaria, #6f42c1);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.intencao-nome {
    font-weight: bold;
    color: var(--cor-primaria, #6f42c1);
    font-size: 0.95rem;
}

.intencao-data {
    font-size: 0.8rem;
    color: #999;
    float: right;
}

.intencao-texto {
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mural-titulo {
    text-align: center;
    margin-bottom: 20px;
}

.mural-contador {
    font-size: 0.85rem;
    color: #888;
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
    background: var(--cor-primaria, #6f42c1);
    color: #fff;
}

/* ===== Layout ===== */
.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.tutorial-step {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tutorial-step img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid #ccc;
    object-fit: cover;
}

.tutorial-step p {
    margin: 0;
    line-height: 1.4;
}

/* ===== Top Controls (Liturgia/Quaresma) ===== */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: start;
}

.info-grid dt {
    font-weight: bold;
    color: #555;
}

.info-grid dd {
    margin: 0;
}

/* ===== Hero Card ===== */
.hero-card {
    background: linear-gradient(135deg, #1a4f89 0%, #2c7a2c 100%);
    color: white;
    border-radius: 16px;
    padding: clamp(16px, 4vw, 28px) clamp(14px, 3vw, 24px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-card header h1 {
    color: white;
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-card .lead {
    color: rgba(255,255,255,0.9);
    font-size: clamp(0.88rem, 2.5vw, 1.05rem);
}

.hero-card .muted {
    color: rgba(255,255,255,0.8);
    font-size: clamp(0.82rem, 2vw, 0.92rem);
}

/* ===== Collapsible Sections ===== */
.collapsible-section {
    border: none;
}

.collapsible-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.2s;
}

.collapsible-toggle:hover {
    color: var(--cor-primaria);
}

.toggle-icon {
    font-size: 0.9rem;
    color: #999;
    transition: transform 0.2s;
}

.collapsible-body {
    padding: 14px 0;
}

/* ===== Mystery Buttons ===== */
.mystery-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.mystery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mystery-btn small {
    display: block;
    font-weight: 400;
    color: #888;
    font-size: 0.78rem;
    margin-top: 2px;
}

.mystery-btn-active {
    background: var(--cor-primaria);
    color: white;
    border-color: var(--cor-primaria);
}

.mystery-btn-active small {
    color: rgba(255,255,255,0.8);
}

.mystery-btn-today {
    box-shadow: 0 0 0 3px rgba(26,79,137,0.3);
}

/* ===== Beads Card & Header ===== */
.beads-card {
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(20,40,80,0.07);
    padding: 24px 20px;
}

.beads-header {
    text-align: center;
    margin-bottom: 16px;
}

.beads-header h2 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.beads-header .muted {
    font-size: 0.88rem;
}

/* ===== Beads Legend ===== */
.beads-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: #f0f4f8;
    border-radius: 10px;
    border: 1px solid #e4e8ee;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* ===== Rosary Beads ===== */
.rosary-bead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2.5px solid #c8cdd3;
    background: linear-gradient(145deg, #ffffff 0%, #eef1f5 100%);
    color: #555;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    user-select: none;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.rosary-bead::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 25%;
    width: 50%;
    height: 35%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.rosary-bead:hover:not(.clicked) {
    transform: scale(1.18);
    border-color: #888;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.rosary-bead:active:not(.clicked) {
    transform: scale(0.92);
}

.rosary-bead.clicked {
    transform: scale(0.93);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), 0 0 8px rgba(0,0,0,0.08);
    border-width: 2px;
}

.rosary-bead.clicked::after {
    display: none;
}

@keyframes beadPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(0.93); }
}

/* ===== Decade Sections ===== */
.decade-section {
    margin-bottom: 16px;
    padding: 18px 16px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}

.decade-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.decade-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
}

.decade-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #2a6ab5 100%);
    color: white;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(26,79,137,0.25);
}

.decade-virtue {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
    padding-left: 4px;
}

.beads-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    background: linear-gradient(180deg, #f8fafc 0%, #f2f5f8 100%);
    border-radius: 10px;
    border: 1px dashed #dfe3e8;
}

/* ===== Progress Area ===== */
.beads-progress-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f6fb 0%, #eef7f1 100%);
    border-radius: 14px;
    border: 1px solid #dfe8df;
}

/* Progress Ring (SVG) */
.progress-ring-wrap {
    position: relative;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e0e4ea;
    stroke-width: 7;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--cor-primaria);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 238.76;
    stroke-dashoffset: 238.76;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cor-primaria);
}

/* Progress Details */
.progress-details {
    text-align: center;
    flex: 1;
    max-width: 260px;
}

.progress-count {
    font-size: 0.92rem;
    color: #555;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.progress-bar-linear {
    margin-bottom: 12px;
}

.progress-bar-track {
    background: #d8dde5;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    border-radius: 8px;
    transition: width 0.4s ease;
}

.btn-reset {
    padding: 8px 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    background: white;
    color: #555;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
    background: #f0f6fb;
}

.beads-complete {
    color: var(--cor-secundaria);
    font-size: 1rem;
}

/* ===== Bible References & Virtues ===== */
.bible-ref {
    font-size: 0.88rem;
    color: var(--cor-primaria);
    font-weight: 600;
    margin-bottom: 6px;
}

.mystery-virtue {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
}

/* ===== Muted Text ===== */
.muted {
    color: #777;
    font-size: 0.92rem;
}

/* ===== Exame de Consciência ===== */
.exame-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}

.exame-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}

.exame-item:hover {
    background: #f5f5f5;
}

.exame-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--cor-primaria);
    flex-shrink: 0;
}

/* ===== Home Page Cards ===== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: clamp(10px, 2.5vw, 18px);
    margin-top: 16px;
}

.home-card {
    background: white;
    border-radius: 14px;
    padding: clamp(16px, 3vw, 24px) clamp(14px, 2.5vw, 20px);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #eee;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border-color: var(--cor-primaria);
}

/* Remove hover transform on touch */
@media (hover: none) {
    .home-card:hover { transform: none; }
}

.home-card-icon {
    font-size: clamp(2rem, 6vw, 2.6rem);
    margin-bottom: 10px;
    display: block;
}

.home-card h3 {
    margin: 0 0 6px 0;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--cor-primaria);
}

.home-card p {
    margin: 0;
    color: #666;
    font-size: clamp(0.82rem, 2vw, 0.9rem);
    line-height: 1.4;
}

/* ===== Daily Info Banner ===== */
.daily-banner {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    border-radius: 12px;
    padding: clamp(12px, 3vw, 18px) clamp(14px, 3vw, 24px);
    text-align: center;
    border: 1px solid #f0d9a0;
    margin-bottom: 20px;
}

.daily-banner h2 {
    margin: 0 0 8px 0;
    color: #8B6914;
    font-size: clamp(1.05rem, 3vw, 1.3rem);
}

.daily-banner p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* ===== Footer Improvements ===== */
.footer-prayer {
    background: linear-gradient(135deg, #f0f6fb 0%, #eef7f1 100%);
    border-radius: 10px;
    padding: 14px 20px;
    margin: 16px auto;
    max-width: 500px;
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid #e0e8e0;
}

/* ===== Badge Month ===== */
.badge-month {
    background: var(--cor-primaria);
    color: white;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-block;
}

/* ===== Responsive ===== */

/* --- Desktop large (>1200px) --- */
@media (min-width: 1200px) {
    .container { max-width: 1200px; }
    .home-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* --- Tablet (601-920px) --- */
@media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }
    .dropdown-submenu > .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 16px;
    }
    .home-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .info-grid { grid-template-columns: 1fr; gap: 6px; }
    .beads-progress-area { flex-direction: column; gap: 14px; padding: 16px 12px; }
    .progress-details { max-width: 100%; }
}

/* --- Mobile (<=768px) - Hamburger menu --- */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    .navbar {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-top: 10px;
        padding: 0;
        width: 100%;
    }
    .navbar.open {
        display: flex;
    }
    .navbar a, .navbar .dropdown > .dropdown-toggle {
        display: block;
        text-align: center;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 0.95rem;
        min-height: 48px;
        line-height: 1.6;
    }
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        width: 100%;
        border-radius: 8px;
        margin-top: 4px;
    }
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        box-shadow: none;
        padding-left: 16px;
    }
    .mystery-btn { min-width: 100%; padding: 12px 14px; font-size: 0.9rem; }
    .decade-section { padding: 12px 10px; }
    .beads-row { gap: 5px; padding: 8px 4px; }
    .beads-card { padding: 14px 10px; }
    .beads-legend { gap: 8px; padding: 8px 10px; font-size: 0.8rem; }
    .legend-item { font-size: 0.75rem; }
    .novena-day-tracker { gap: 8px; }
    .day-dot { width: 36px; height: 36px; font-size: 0.8rem; }
    .top-controls { flex-direction: column; align-items: stretch; }
    .top-controls input, .top-controls select { width: 100%; }
    .saint-of-day .saint-name { font-size: 1.1rem; }
    .footer-prayer { margin: 12px 8px; padding: 12px 14px; }
    blockquote { margin-left: 0; margin-right: 0; padding: 10px 14px; }
    .reading-block { padding: 10px 12px; }
    .intencao-card-modern { padding: 14px 12px; }
    .btn-primary { min-height: 44px; padding: 10px 20px; }
    .btn-share { min-height: 44px; }
    .btn-pray { min-height: 44px; padding: 8px 16px; }
    .mural-form { padding: 14px; }
    .mural-form input[type="text"],
    .mural-form textarea { font-size: 16px; /* prevents iOS zoom */ }
    textarea, input[type="text"], input[type="date"], select { font-size: 16px; }
}

/* --- Small mobile (<=480px) --- */
@media (max-width: 480px) {
    .home-grid { grid-template-columns: 1fr; gap: 10px; }
    .home-card { padding: 14px 12px; }
    .home-card-icon { font-size: 1.8rem; margin-bottom: 6px; }
    .badge-month { padding: 4px 10px; font-size: 0.78rem; }
    .beads-progress-area { padding: 12px 8px; }
    .daily-banner { padding: 10px 12px; }
    .lectio-timer { flex-direction: column; gap: 8px; }
    .diary-entry { padding: 12px 10px; }
    .intencao-header { flex-direction: column; align-items: flex-start; }
}

/* ===== Mega-Menu ===== */
.mega-menu {
    width: min(96vw, 950px);
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap;
    padding: 16px 8px;
    max-height: 82vh;
    overflow-y: auto;
}

.dropdown:hover > .mega-menu,
.dropdown.open > .mega-menu {
    display: flex !important;
}

.mega-col {
    flex: 1;
    border-right: 1px solid #edf0f4;
    padding: 4px 10px;
    min-width: 0;
}

.mega-col:last-child { border-right: none; }

.mega-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cor-primaria);
    padding: 2px 0 7px;
    margin-bottom: 3px;
    border-bottom: 2px solid var(--cor-accent);
    white-space: nowrap;
}

.mega-col a {
    display: block;
    padding: 4px 0;
    color: #444;
    font-size: 0.82rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-col a:hover {
    color: var(--cor-primaria);
    background: transparent !important;
}

/* Regular large dropdowns: scrollable so they don't overflow viewport */
/* Exclude dropdowns with nested submenus — overflow:auto clips position:absolute children */
.dropdown-menu:not(.mega-menu):not(.has-submenus) {
    max-height: 75vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-height: none !important;
        flex-direction: column !important;
    }
    .mega-col {
        border-right: none;
        border-bottom: 1px solid #edf0f4;
        padding: 8px 16px;
    }
    .mega-col:last-child { border-bottom: none; }
    .mega-col a {
        white-space: normal;
        padding: 6px 0;
        font-size: 0.9rem;
    }
    .mega-title { white-space: normal; }
    .dropdown-menu:not(.mega-menu):not(.has-submenus) { max-height: none; overflow-y: visible; }
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.loading-spinner span {
    color: #888;
    font-size: 0.92rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e4ea;
    border-top-color: var(--cor-primaria);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Fade-in Animation ===== */
.fade-in {
    animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll to Top Button ===== */
.btn-scroll-top {
    position: fixed;
    bottom: 80px;
    left: 14px;
    z-index: 9997;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--cor-primaria);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.btn-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.btn-scroll-top:hover {
    transform: scale(1.12);
}

/* ===== Share Button ===== */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 2px solid var(--cor-primaria);
    border-radius: 10px;
    background: white;
    color: var(--cor-primaria);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share:hover {
    background: var(--cor-primaria);
    color: white;
    box-shadow: 0 4px 12px rgba(26,79,137,0.3);
}

/* ===== Liturgy Color Badge ===== */
.liturgy-color-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    border: 1px solid #e0e0e0;
}

.liturgy-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}

/* ===== Input Date ===== */
.input-date {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.input-date:focus {
    border-color: var(--cor-primaria);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,79,137,0.15);
}

/* ===== Reading Blocks (Liturgia) ===== */
.reading-block {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafbfd;
    border-radius: 10px;
    border-left: 3px solid var(--cor-primaria);
}

.reading-ref {
    color: var(--cor-primaria);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 8px;
}

.reading-text {
    line-height: 1.7;
    color: #444;
}

.psalm-refrain {
    font-style: italic;
    color: var(--cor-secundaria);
    margin: 8px 0;
    padding: 8px 14px;
    border-left: 3px solid var(--cor-secundaria);
    background: #f0f8f0;
    border-radius: 0 6px 6px 0;
}

/* ===== Novena Day Tracker ===== */
.novena-day-tracker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.day-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #d0d5dd;
    background: white;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    transition: all 0.3s;
    position: relative;
}

.day-dot.completed {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    border-color: var(--cor-secundaria);
    color: white;
    box-shadow: 0 2px 8px rgba(44,122,44,0.3);
}

.day-dot.current {
    border-color: #f0ad4e;
    box-shadow: 0 0 0 3px rgba(240,173,78,0.3);
    color: #f0ad4e;
    animation: pulseDay 1.5s ease infinite;
}

@keyframes pulseDay {
    0%, 100% { box-shadow: 0 0 0 3px rgba(240,173,78,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(240,173,78,0.15); }
}

/* ===== Mural Modern Cards ===== */
.intencao-card-modern {
    padding: 18px 20px;
    margin-bottom: 14px;
    border-left: 4px solid var(--cor-primaria);
}

.intencao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.intencao-nome-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--cor-primaria), #2a6ab5);
    color: white;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.intencao-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e8e8e8;
}

.btn-pray {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #888;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-pray:hover {
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
    background: #f0f6fb;
}

.btn-pray.prayed {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
    cursor: default;
}

/* ===== Messages ===== */
.msg-success {
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-weight: 600;
}

.msg-error {
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    font-weight: 600;
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cor-primaria);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    z-index: 99999;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Santo do Dia ===== */
.saint-of-day {
    text-align: center;
    padding: 20px;
}

.saint-of-day h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--cor-primaria);
}

.saint-of-day .saint-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
}

.saint-of-day .saint-desc {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Reminder Banner ===== */
.reminder-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.reminder-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.reminder-banner h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #2c7a2c;
}

.reminder-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
}

/* ========================= VIA-SACRA ========================= */
.via-sacra-progress {
    background: #e0e0e0;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin: 10px 0;
}
.via-sacra-progress-fill {
    background: linear-gradient(90deg, #8b0000, #c9a84c);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
}
.via-sacra-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.via-sacra-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}
.via-sacra-dot.active {
    background: #8b0000;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(139,0,0,0.4);
}
.via-sacra-dot.completed {
    background: #c9a84c;
    color: #fff;
}

/* ========================= LECTIO DIVINA ========================= */
.lectio-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.lectio-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}
.lectio-step.active {
    opacity: 1;
    transform: scale(1.1);
}
.lectio-step.completed {
    opacity: 1;
}
.lectio-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s;
}
.lectio-step.active .lectio-step-num {
    background: #1a4f89;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,79,137,0.4);
}
.lectio-step.completed .lectio-step-num {
    background: #2e7d32;
    color: #fff;
}
.lectio-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}
.lectio-step.active .lectio-step-label {
    color: #1a4f89;
}
.lectio-step-arrow {
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 700;
}
.lectio-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.timer-display {
    font-size: 2rem;
    font-weight: 700;
    font-family: monospace;
    color: #1a4f89;
    min-width: 80px;
}

/* ========================= CALENDÁRIO LITÚRGICO ========================= */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-header-cell {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 4px;
    color: #1a4f89;
    background: #f0f4f8;
    border-radius: 4px;
}
.cal-cell {
    min-height: 60px;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
}
.cal-cell:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
}
.cal-cell.empty {
    border: none;
    cursor: default;
}
.cal-cell.empty:hover {
    background: none;
    transform: none;
}
.cal-cell.cal-today {
    background: #e3f2fd;
    border-color: #1a4f89;
    font-weight: 700;
}
.cal-cell.cal-feast {
    background: #faf8f4;
}
.cal-day-num {
    font-weight: 600;
    font-size: 0.9rem;
}
.cal-feast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.cal-feast-name {
    font-size: 0.6rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
}
.cal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}
.cal-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #555;
}

/* ========================= DIÁRIO ESPIRITUAL ========================= */
.diary-entry {
    background: #faf8f4;
    border-left: 4px solid #c9a84c;
    border-radius: 0 12px 12px 0;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.diary-entry:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.diary-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f4f8;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.diary-tag:hover {
    background: #e3f2fd;
}
.diary-tag input[type="checkbox"] {
    margin: 0;
}

/* ========================= RESPONSIVO EXTRAS ========================= */
@media (max-width: 768px) {
    .cal-cell {
        min-height: 44px;
        font-size: 0.72rem;
        padding: 3px;
    }
    .cal-feast-name {
        display: none;
    }
    .cal-header-cell {
        font-size: 0.72rem;
        padding: 5px 2px;
    }
    .via-sacra-dot {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .lectio-step-arrow {
        display: none;
    }
    .timer-display {
        font-size: 1.6rem;
    }
    .diary-entry {
        padding: 12px 10px;
    }
    .cal-grid {
        gap: 1px;
    }
    .cal-legend {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cal-cell {
        min-height: 36px;
        font-size: 0.65rem;
    }
    .via-sacra-dot {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
    .timer-display {
        font-size: 1.3rem;
    }
    .lectio-step {
        min-width: auto;
    }
}

/* ========================= CALENDÁRIO — INDICADORES ========================= */
.cal-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-top: 1px;
}
.cal-ind {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.cal-cell.cal-quaresma {
    border-left: 2px solid #6a0dad;
}
.cal-cell.cal-novena {
    border-right: 2px solid #e67e22;
}
.cal-detail-item {
    padding: 10px 12px;
    border-left: 4px solid #999;
    border-radius: 0 8px 8px 0;
    margin: 6px 0;
    background: #faf8f4;
}
.cal-detail-item .badge-cat {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    margin-top: 4px;
}
.cal-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
}
.cal-filter-bar label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    background: #f0f4f8;
    transition: background 0.2s;
}
.cal-filter-bar label:hover {
    background: #e3f2fd;
}
.cal-gcal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-weight: 600;
}
.cal-gcal-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
}
.cal-gcal-btn svg {
    width: 20px;
    height: 20px;
}
@media (max-width: 768px) {
    .cal-ind { width: 5px; height: 5px; }
    .cal-indicators { gap: 1px; }
}

/* ========================= BREADCRUMB ========================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}
.breadcrumb a {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--cor-secundaria);
    text-decoration: underline;
}
.breadcrumb .sep {
    color: #ccc;
    font-size: 0.75rem;
}

/* ========================= SEARCH BAR (GLOBAL) ========================= */
.global-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    margin: 0 auto;
    padding: 6px 14px;
    background: #f0f4f8;
    border: 1px solid #dde2e8;
    border-radius: 24px;
    transition: all 0.25s;
}
.global-search-bar:focus-within {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(26,79,137,0.12);
    background: #fff;
}
.global-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    flex: 1;
    min-width: 0;
    color: #333;
}
.global-search-bar .search-icon {
    color: #999;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ========================= FILTER BUTTONS ========================= */
.salmo-filter {
    padding: 6px 16px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.salmo-filter:hover {
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
    background: #f0f6fb;
}
.salmo-filter.active {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}

/* ========================= BADGE TEMA ========================= */
.badge-tema {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--cor-primaria), #2a6ab5);
    color: #fff;
}

/* ========================= VISITED RECENTLY ========================= */
.recent-visits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.recent-chip:hover {
    background: #e3f2fd;
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
}

/* ========================= READING TIME BADGE ========================= */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    margin-top: 4px;
}

/* ========================= FOCUS VISIBLE (Keyboard Nav) ========================= */
:focus-visible {
    outline: 3px solid rgba(26,79,137,0.5);
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid rgba(26,79,137,0.5);
    outline-offset: 2px;
}

/* ========================= PAGE ENTER ANIMATION ========================= */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.container {
    animation: pageEnter 0.35s ease-out;
}

/* ========================= PULSATING LIVE DOT ========================= */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: livePulse 1.5s ease infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(40,167,69,0); }
}

/* ========================= CARD HOVER GLOW ========================= */
.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(26,79,137,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.home-card {
    position: relative;
    overflow: hidden;
}
.home-card:hover::before {
    opacity: 1;
}

/* ========================= STATISTICS MINI CARD ========================= */
.stat-card {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #f0f6fb 0%, #eef7f1 100%);
    border-radius: 12px;
    border: 1px solid #e0e8e0;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cor-primaria);
    line-height: 1;
}
.stat-label {
    font-size: 0.82rem;
    color: #777;
    margin-top: 4px;
}

/* ========================= READING PROGRESS BAR ========================= */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
    z-index: 9999;
    transition: width 0.15s linear;
    border-radius: 0 2px 2px 0;
}

/* ========================= FAVORITE BUTTON ========================= */
.btn-favorite {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--cor-accent);
    background: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    line-height: 1;
}
.btn-favorite:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-favorite.is-favorite {
    background: var(--cor-accent);
    color: #fff;
    border-color: var(--cor-accent);
}
.btn-favorite.is-favorite:hover {
    background: #b8972e;
}

/* ========================= FAVORITES CHIPS ========================= */
.fav-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #f0d48a;
    border-radius: 20px;
    color: #5a4800;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.fav-chip:hover {
    background: linear-gradient(135deg, #fff3cd, #ffe9a0);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(201,168,76,0.25);
}

/* ========================= TOAST NOTIFICATION ========================= */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================= SCROLL ANIMATIONS ========================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= KEYBOARD HINT ========================= */
.kbd-hint {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    color: #555;
    vertical-align: middle;
    margin-left: 4px;
}

/* ========================= RESPONSIVE EXTRAS ========================= */
@media (max-width: 768px) {
    .global-search-bar {
        max-width: 100%;
        margin-top: 10px;
    }
    .breadcrumb { padding: 8px 10px; font-size: 0.8rem; }
    .salmo-filter { padding: 5px 12px; font-size: 0.8rem; }
    .btn-favorite { bottom: 70px; right: 12px; width: 40px; height: 40px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .global-search-bar { padding: 5px 10px; }
    .recent-chip { padding: 5px 10px; font-size: 0.8rem; }
    .fav-chip { padding: 5px 10px; font-size: 0.8rem; }
}
