/* ==============================================================================
   IOSF — SISTEMA SAGRADO DE TEMAS: SAUIL (LIGHT) & MĒNA (DARK)
   Cores Premium Modernas, Tipografia Sagrada e Harmonia Canônica
   Tradição Visigótica: Sauil (☀️ Sol / Claridade) e Mēna (🌙 Lua / Vigília)
   ============================================================================== */

/* ---------- 1. Variáveis e Tokens de Design do Modo Claro (Sauil) ---------- */
html[data-theme="light"],
body.theme-light {
    --iosf-bg: #F8F6F0 !important;
    --iosf-bg-primary: #F8F6F0 !important;
    --iosf-bg-deep: #EFECE3 !important;
    --iosf-bg-secondary: #F2EFE7 !important;
    --iosf-bg-surface: #FFFFFF !important;
    --iosf-card: #FFFFFF !important;
    --iosf-card-2: #F4F0E6 !important;
    --iosf-ivory: #1C1917 !important;
    --iosf-text-primary: #1C1917 !important;
    --iosf-text-secondary: #575248 !important;
    --iosf-text-muted: #575248 !important;
    --iosf-text-dim: #7C7567 !important;
    --iosf-gold: #9E6B1F !important;
    --iosf-gold-hover: #7E5212 !important;
    --iosf-gold-bright: #B57D27 !important;
    --iosf-gold-dark: #6E450E !important;
    --iosf-bronze: #845727 !important;
    --iosf-copper: #A84017 !important;
    --iosf-flame: #C2410C !important;
    --iosf-ember: #B3471A !important;
    --iosf-line: rgba(70, 52, 30, 0.14) !important;
    --iosf-line-soft: rgba(70, 52, 30, 0.08) !important;
    --iosf-border: #DCD5C5 !important;
    --iosf-border-subtle: rgba(158, 107, 31, 0.18) !important;
    --iosf-border-highlight: rgba(158, 107, 31, 0.38) !important;
    --iosf-card-shadow: 0 10px 30px -5px rgba(50, 40, 25, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Transições fluidas universais ao alternar entre Mēna e Sauil */
html {
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body {
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   2. BOTÃO E SELETOR DE TEMA NO HEADER & MOBILE (SAUIL ☀️ / MĒNA 🌙)
   ============================================================================== */
.iosf-theme-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.iosf-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(235, 192, 128, 0.10);
    border: 1px solid rgba(235, 192, 128, 0.28);
    color: var(--iosf-gold);
    font-family: var(--iosf-sans, 'Inter', sans-serif);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
    outline: none;
}

.iosf-theme-toggle-btn:hover {
    background: rgba(235, 192, 128, 0.22);
    border-color: var(--iosf-gold);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 16px rgba(235, 192, 128, 0.30);
}

.iosf-theme-toggle-btn:active {
    transform: translateY(0) scale(0.96);
}

.iosf-theme-icon-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    position: relative;
    pointer-events: none;
}

/* Ícone no Dark (Mēna): exibe lua dourada; no Light (Sauil): exibe sol vibrante */
.iosf-theme-icon-light { display: none; }
.iosf-theme-icon-dark  { display: inline-flex; color: #EBC080; }

.iosf-theme-text-light { display: none; }
.iosf-theme-text-dark  { display: inline; }

html[data-theme="light"] .iosf-theme-icon-light {
    display: inline-flex;
    color: #9E6B1F;
    animation: iosfSunRotate 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme="light"] .iosf-theme-icon-dark { display: none; }

html[data-theme="light"] .iosf-theme-text-light { display: inline; }
html[data-theme="light"] .iosf-theme-text-dark  { display: none; }

@keyframes iosfSunRotate {
    0% { transform: rotate(-90deg) scale(0.6); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

html[data-theme="light"] .iosf-theme-toggle-btn {
    background: rgba(158, 107, 31, 0.12) !important;
    border-color: rgba(158, 107, 31, 0.32) !important;
    color: #9E6B1F !important;
    box-shadow: 0 2px 8px rgba(158, 107, 31, 0.12) !important;
}

html[data-theme="light"] .iosf-theme-toggle-btn:hover {
    background: rgba(158, 107, 31, 0.22) !important;
    border-color: #9E6B1F !important;
    box-shadow: 0 4px 16px rgba(158, 107, 31, 0.25) !important;
}

/* Tooltip elegante exibida ao passar o mouse sobre o ícone */
.iosf-theme-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%) translateY(4px);
    background: #181816;
    border: 1px solid rgba(235, 192, 128, 0.35);
    border-radius: 8px;
    padding: 0.38rem 0.75rem;
    color: #F8F6F0;
    font-family: var(--iosf-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.70), 0 0 10px rgba(235, 192, 128, 0.15);
    z-index: 10005;
}

.iosf-theme-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #181816 transparent;
}

.iosf-theme-toggle-btn:hover .iosf-theme-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.iosf-theme-tooltip strong {
    color: var(--iosf-gold);
}

.iosf-theme-tooltip .gothic-rune {
    font-family: 'Noto Sans Gothic', serif;
    color: var(--iosf-gold);
    margin-left: 2px;
}

html[data-theme="light"] .iosf-theme-tooltip {
    background: #FFFFFF !important;
    border-color: #DFD8C8 !important;
    color: #1C1917 !important;
    box-shadow: 0 8px 24px rgba(50, 40, 25, 0.15) !important;
}

html[data-theme="light"] .iosf-theme-tooltip strong {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-theme-tooltip .gothic-rune {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-theme-tooltip::before {
    border-color: transparent transparent #FFFFFF transparent !important;
}

/* Dropdown de Temas Sagrados */
.iosf-theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #181816;
    border: 1px solid rgba(235, 192, 128, 0.30);
    border-radius: 8px;
    padding: 0.5rem;
    list-style: none;
    margin: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(235, 192, 128, 0.10);
    z-index: 10001;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: iosfThemeFadeIn 0.2s ease-out;
}

@keyframes iosfThemeFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.iosf-theme-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #F1EBDD;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.iosf-theme-item:hover {
    background: rgba(235, 192, 128, 0.12);
}

.iosf-theme-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.iosf-theme-item-icon.sun-icon {
    background: rgba(235, 192, 128, 0.15);
    color: #EBC080;
}

.iosf-theme-item-icon.moon-icon {
    background: rgba(200, 205, 215, 0.12);
    color: #E0E4EC;
}

.iosf-theme-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.iosf-theme-item-title {
    font-size: 0.90rem;
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iosf-theme-item-title .gothic-rune {
    font-family: 'Noto Sans Gothic', 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--iosf-gold);
}

.iosf-theme-item-sub {
    font-size: 0.72rem;
    color: #B6B0A3;
    margin-top: 1px;
}

.iosf-theme-check {
    font-size: 0.80rem;
    color: var(--iosf-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Estado Ativo no Menu */
html[data-theme="dark"] .iosf-theme-item[data-set-theme="dark"] .iosf-theme-check,
html[data-theme="light"] .iosf-theme-item[data-set-theme="light"] .iosf-theme-check {
    opacity: 1;
}

html[data-theme="dark"] .iosf-theme-item[data-set-theme="dark"],
html[data-theme="light"] .iosf-theme-item[data-set-theme="light"] {
    background: rgba(235, 192, 128, 0.14);
}

/* Dropdown no Tema Light */
html[data-theme="light"] .iosf-theme-dropdown {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 16px 40px rgba(50, 40, 25, 0.14) !important;
}

html[data-theme="light"] .iosf-theme-item {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-theme-item:hover {
    background: #F8F5EE !important;
}

html[data-theme="light"] .iosf-theme-item-sub {
    color: #6E6657 !important;
}

html[data-theme="light"] .iosf-theme-item[data-set-theme="light"] {
    background: #F4EFE3 !important;
}

html[data-theme="light"] .iosf-theme-item-icon.sun-icon {
    background: rgba(158, 107, 31, 0.14);
    color: #9E6B1F;
}

/* Card de Tema no Menu Mobile Drawer */
.iosf-mob-theme-box {
    margin: 0.75rem 1.25rem 1rem;
    padding: 1rem;
    background: rgba(235, 192, 128, 0.05);
    border: 1px solid rgba(235, 192, 128, 0.16);
    border-radius: 8px;
}

.iosf-mob-theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.iosf-mob-theme-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--iosf-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iosf-mob-theme-current {
    font-size: 0.72rem;
    color: var(--iosf-text-secondary);
    font-family: 'Noto Sans Gothic', var(--iosf-sans);
}

.iosf-mob-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.iosf-mob-theme-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    background: #141412;
    border: 1px solid rgba(235, 192, 128, 0.18);
    border-radius: 6px;
    color: #F1EBDD;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.iosf-mob-theme-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.iosf-mob-theme-btn-icon.sun {
    background: rgba(235, 192, 128, 0.15);
    color: #EBC080;
}

.iosf-mob-theme-btn-icon.moon {
    background: rgba(200, 205, 215, 0.12);
    color: #D8DCE5;
}

.iosf-mob-theme-btn-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.iosf-mob-theme-btn-info strong {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iosf-mob-theme-btn-info small {
    font-size: 0.68rem;
    color: #9C968A;
}

html[data-theme="dark"] .iosf-mob-theme-btn[data-set-theme="dark"],
html[data-theme="light"] .iosf-mob-theme-btn[data-set-theme="light"] {
    background: rgba(235, 192, 128, 0.22);
    border-color: var(--iosf-gold);
    box-shadow: 0 0 12px rgba(235, 192, 128, 0.20);
}

/* Mobile Theme Box no Modo Claro */
html[data-theme="light"] .iosf-mob-theme-box {
    background: #F8F5EE !important;
    border-color: #E2DBCB !important;
}

html[data-theme="light"] .iosf-mob-theme-btn {
    background: #FFFFFF !important;
    border-color: #DFD8C8 !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-mob-theme-btn[data-set-theme="light"] {
    background: #F4EFE3 !important;
    border-color: #9E6B1F !important;
    box-shadow: 0 0 12px rgba(158, 107, 31, 0.16) !important;
}

/* ==============================================================================
   3. ESTILIZAÇÃO DO MODO CLARO (SAUIL) PARA O SITE TODO
   ============================================================================== */

/* ---------- 3.1 Topbar Solene (Marquee) ---------- */
html[data-theme="light"] #iosf-top-announcement-bar {
    background: #EFECE3 !important;
    border-bottom: 1px solid #DDD6C6 !important;
    box-shadow: 0 2px 10px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] #iosf-top-announcement-bar .iosf-top-bar-text {
    color: #2D2821 !important;
}

html[data-theme="light"] #iosf-top-announcement-bar .iosf-top-bar-link {
    color: #9E6B1F !important;
}

html[data-theme="light"] #iosf-top-announcement-bar .iosf-marquee-sep {
    color: #B57D27 !important;
    opacity: 0.6;
}

/* ---------- 3.2 Cabeçalho Principal (Header) ---------- */
html[data-theme="light"] .iosf-header {
    background: rgba(248, 246, 240, 0.94) !important;
    border-bottom: 1px solid rgba(70, 52, 30, 0.12) !important;
    box-shadow: 0 4px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-nav-link {
    color: #2C2720 !important;
}

html[data-theme="light"] .iosf-nav-link:hover,
html[data-theme="light"] .iosf-nav-item:hover > .iosf-nav-link {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-nav-caret {
    color: #7E5212 !important;
}

/* Mega Menu Dropdown */
html[data-theme="light"] .iosf-megamenu {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 20px 45px rgba(50, 40, 25, 0.10) !important;
}

html[data-theme="light"] .iosf-megamenu__header {
    border-bottom: 1px solid #EEE8DB !important;
}

html[data-theme="light"] .iosf-megamenu__label {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-megamenu-link {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-megamenu-link:hover {
    background: #F8F5EE !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-megamenu-card {
    background: #F8F5EE !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .iosf-megamenu-card__title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-megamenu-card__desc {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-megamenu-card__cta {
    color: #9E6B1F !important;
}

/* Botões de Ação do Header */
html[data-theme="light"] .iosf-search-trigger {
    background: rgba(158, 107, 31, 0.08) !important;
    border: 1px solid rgba(158, 107, 31, 0.22) !important;
    color: #6E4E1C !important;
}

html[data-theme="light"] .iosf-search-trigger:hover {
    background: rgba(158, 107, 31, 0.16) !important;
    color: #1C1917 !important;
    border-color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-lang-btn {
    background: rgba(158, 107, 31, 0.08) !important;
    border: 1px solid rgba(158, 107, 31, 0.22) !important;
    color: #3A3328 !important;
}

html[data-theme="light"] .iosf-lang-dropdown {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 12px 30px rgba(50, 40, 25, 0.12) !important;
}

html[data-theme="light"] .iosf-lang-item {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-lang-item:hover,
html[data-theme="light"] .iosf-lang-item.active {
    background: #F8F5EE !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-burger-btn {
    background: rgba(158, 107, 31, 0.08) !important;
    border: 1px solid rgba(158, 107, 31, 0.22) !important;
    color: #3A3328 !important;
}

/* ---------- 3.3 Seções Gerais e Container ---------- */
html[data-theme="light"] body.heathen-theme,
html[data-theme="light"] .iosf-page-wrap,
html[data-theme="light"] .site-main-content {
    background-color: var(--iosf-bg) !important;
    color: var(--iosf-text-primary) !important;
}

html[data-theme="light"] .iosf-section {
    background: var(--iosf-bg) !important;
    color: var(--iosf-text-primary) !important;
    border-top: 1px solid var(--iosf-line-soft) !important;
}

html[data-theme="light"] .iosf-section--alt {
    background: var(--iosf-bg-deep) !important;
}

html[data-theme="light"] h1, 
html[data-theme="light"] h2, 
html[data-theme="light"] h3, 
html[data-theme="light"] h4, 
html[data-theme="light"] h5, 
html[data-theme="light"] h6,
html[data-theme="light"] .iosf-h2,
html[data-theme="light"] .iosf-h3,
html[data-theme="light"] .iosf-h4 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-eyebrow,
html[data-theme="light"] .iosf-label {
    color: #9E6B1F !important;
}

/* ---------- 3.4 Barra de Estatísticas (Stats) ---------- */
html[data-theme="light"] .iosf-stats {
    background: #EFECE3 !important;
    border-top: 1px solid #DFD8C8 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-stat {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 4px 15px rgba(50, 40, 25, 0.04) !important;
}

html[data-theme="light"] .iosf-stat__num {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-stat .iosf-label {
    color: #6E6657 !important;
}

/* ---------- 3.5 Próximo Blót em Destaque (Home) ---------- */
html[data-theme="light"] .iosf-blot-hero {
    background: radial-gradient(circle at 10% 20%, #FAF8F2 0%, #EFEBE0 80%) !important;
    border-top: 1px solid #DFD8C8 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-blot-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-blot-desc {
    color: #4A4439 !important;
}

html[data-theme="light"] .iosf-blot-axiom {
    background: #FFFFFF !important;
    border-left: 3px solid #9E6B1F !important;
    color: #383228 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .iosf-countdown-wrap {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.06) !important;
}

html[data-theme="light"] .iosf-countdown-cell {
    background: #F7F4EB !important;
    border: 1px solid #E6E0D2 !important;
}

html[data-theme="light"] .iosf-countdown-digit {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-countdown-unit {
    color: #5C5547 !important;
}

html[data-theme="light"] .iosf-params-card {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.06) !important;
}

html[data-theme="light"] .iosf-params-header {
    border-bottom: 1px solid #EDE7D8 !important;
}

html[data-theme="light"] .iosf-params-item {
    border-bottom: 1px solid #F0EADB !important;
}

html[data-theme="light"] .iosf-params-label {
    color: #6E6657 !important;
}

html[data-theme="light"] .iosf-params-val {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-moon-strip {
    background: #F7F4EB !important;
    border: 1px solid #E6E0D2 !important;
}

html[data-theme="light"] .iosf-moon-strip__phase {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-moon-strip__desc {
    color: #6E6657 !important;
}

/* Botões do Blót */
html[data-theme="light"] .iosf-btn-sacred-primary {
    background: linear-gradient(135deg, #9E6B1F 0%, #845727 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(158, 107, 31, 0.25) !important;
}

html[data-theme="light"] .iosf-btn-sacred-primary:hover {
    background: linear-gradient(135deg, #855513 0%, #6E450E 100%) !important;
    box-shadow: 0 6px 20px rgba(158, 107, 31, 0.35) !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .iosf-btn-sacred-ghost {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #383228 !important;
}

html[data-theme="light"] .iosf-btn-sacred-ghost:hover {
    background: #F7F4EB !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

/* Alternador de Hemisfério */
html[data-theme="light"] .iosf-cal-hemi-toggle {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cal-hemi-btn {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-cal-hemi-btn.active {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
}

/* ---------- 3.6 Linha do Tempo dos Blóts ---------- */
html[data-theme="light"] .iosf-timeline-section {
    background: #F8F6F0 !important;
}

html[data-theme="light"] .iosf-timeline-h2 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-timeline-sub {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-blot-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-blot-card:hover {
    border-color: #9E6B1F !important;
    box-shadow: 0 14px 30px rgba(50, 40, 25, 0.10) !important;
}

html[data-theme="light"] .iosf-blot-card--active {
    border: 2px solid #9E6B1F !important;
    background: #FFFCF5 !important;
}

/* ---------- 3.7 Posts e Artigos (Cards da Home e Categorias) ---------- */
html[data-theme="light"] .iosf-posts .elementor-post,
html[data-theme="light"] .elementor-post {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-posts .elementor-post:hover,
html[data-theme="light"] .elementor-post:hover {
    border-color: #9E6B1F !important;
    box-shadow: 0 14px 30px rgba(50, 40, 25, 0.10) !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__title a,
html[data-theme="light"] .elementor-post__title a {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__title a:hover,
html[data-theme="light"] .elementor-post__title a:hover {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__excerpt p,
html[data-theme="light"] .elementor-post__excerpt p {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__meta-data,
html[data-theme="light"] .elementor-post__meta-data {
    color: #787060 !important;
}

html[data-theme="light"] .iosf-posts .elementor-post__read-more,
html[data-theme="light"] .elementor-post__read-more {
    color: #9E6B1F !important;
}

/* ---------- 3.8 Página de Artigo Individual (Single Post) ---------- */
html[data-theme="light"] .iosf-post-body-section {
    background-color: #F8F6F0 !important;
}

html[data-theme="light"] .iosf-post-main {
    background-color: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    color: #24211D !important;
    box-shadow: 0 8px 30px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] #articleBody,
html[data-theme="light"] #articleBody p,
html[data-theme="light"] .editorial-paragraph {
    color: #24211D !important;
}

html[data-theme="light"] #articleBody h2 {
    color: #7E5212 !important;
    border-left: 4px solid #9E6B1F !important;
}

html[data-theme="light"] #articleBody h3 {
    color: #8B5E2B !important;
}

html[data-theme="light"] #articleBody blockquote {
    background: #F9F6EE !important;
    border-left: 4px solid #9E6B1F !important;
    color: #3A342B !important;
}

html[data-theme="light"] .iosf-sidebar-block {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.04) !important;
}

html[data-theme="light"] .iosf-sidebar-block-title {
    border-bottom: 1px solid #EEE8DB !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-toc-list a {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-toc-list a:hover,
html[data-theme="light"] .iosf-toc-list a.active {
    color: #9E6B1F !important;
    background: rgba(158, 107, 31, 0.08) !important;
}

html[data-theme="light"] .iosf-doctrinal-notice {
    background: linear-gradient(135deg, #FCFAF5 0%, #F5EFE1 100%) !important;
    border: 1px solid rgba(158, 107, 31, 0.30) !important;
}

html[data-theme="light"] .iosf-doctrinal-notice h4 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-doctrinal-notice p {
    color: #575248 !important;
}

html[data-theme="light"] .post-signature {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .post-signature .signature-name {
    color: #9E6B1F !important;
}

html[data-theme="light"] .post-signature .signature-content {
    color: #575248 !important;
}

/* Cards de Navegação de Artigos */
html[data-theme="light"] .iosf-post-navigation-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
}

html[data-theme="light"] .iosf-post-navigation-card:hover {
    border-color: #9E6B1F !important;
    background: #F9F6EE !important;
}

/* ---------- 3.9 Páginas de Calendário Sagrado (/calendario, /calendario-fixo) ---------- */
html[data-theme="light"] .iosf-cal-page {
    background: #F8F6F0 !important;
}

html[data-theme="light"] .iosf-cal-header {
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cal-header h1 {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-cal-month-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .iosf-cal-month-title {
    color: #9E6B1F !important;
    border-bottom: 1px solid #EDE7D8 !important;
}

html[data-theme="light"] .iosf-cal-event-item {
    background: #F9F6EE !important;
    border: 1px solid #EAE3D4 !important;
}

html[data-theme="light"] .iosf-cal-event-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-cal-year-nav {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cal-year-btn {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-cal-year-display {
    color: #1C1917 !important;
}

/* ---------- 3.10 Categorias, Glossário, Acervo e Biblioteca ---------- */
html[data-theme="light"] .iosf-cat-hero {
    background: #EFECE3 !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-h1-cat {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-lead-cat {
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-cat-search-box {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-cat-search-input {
    color: #1C1917 !important;
    background: transparent !important;
}

html[data-theme="light"] .iosf-cat-chip {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-cat-chip:hover {
    background: #F7F4EB !important;
    border-color: #9E6B1F !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-cat-chip.active {
    background: #9E6B1F !important;
    border-color: #9E6B1F !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .glossary-term-card,
html[data-theme="light"] .faq-card,
html[data-theme="light"] .community-card {
    background: #FFFFFF !important;
    border: 1px solid #E2DBCB !important;
    color: #24211D !important;
    box-shadow: 0 6px 20px rgba(50, 40, 25, 0.04) !important;
}

/* ---------- 3.11 Modais (Live Search, Proteção Editorial, Ritos) ---------- */
html[data-theme="light"] .live-search-dialog {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    box-shadow: 0 25px 60px rgba(40, 30, 20, 0.18) !important;
}

html[data-theme="light"] .live-search-header {
    border-bottom: 1px solid #EDE7D8 !important;
}

html[data-theme="light"] #liveSearchInput {
    color: #1C1917 !important;
    background: transparent !important;
}

html[data-theme="light"] .live-search-item {
    border-bottom: 1px solid #F0EADB !important;
    color: #24211D !important;
}

html[data-theme="light"] .live-search-item:hover {
    background: #F9F6EE !important;
}

html[data-theme="light"] .live-item-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .live-item-excerpt {
    color: #575248 !important;
}

html[data-theme="light"] .quick-tag-btn {
    background: #F7F4EB !important;
    border: 1px solid #DFD8C8 !important;
    color: #4D473B !important;
}

html[data-theme="light"] .quick-tag-btn:hover {
    background: #9E6B1F !important;
    border-color: #9E6B1F !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .iosf-copyright-modal-card {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #24211D !important;
    box-shadow: 0 20px 50px rgba(50, 40, 25, 0.15) !important;
}

html[data-theme="light"] .iosf-modal-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-modal-message {
    color: #575248 !important;
}

html[data-theme="light"] .iosf-modal-box {
    background: #FFFFFF !important;
    border: 1px solid #DFD8C8 !important;
    color: #24211D !important;
}

/* ---------- 3.12 Rodapé Oficial (Footer) ---------- */
html[data-theme="light"] .iosf-footer-top-section {
    background: #EFECE3 !important;
    border-top: 1px solid #DFD8C8 !important;
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-footer-heading {
    color: #1C1917 !important;
    border-bottom: 2px solid #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-icon-list li,
html[data-theme="light"] .iosf-footer-nav-list li a,
html[data-theme="light"] .iosf-footer-perguntas-text p {
    color: #4D473B !important;
}

html[data-theme="light"] .iosf-footer-nav-list li a:hover {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-footer-bottom-section {
    background: #E4DFD4 !important;
    border-top: 1px solid #D7D0C2 !important;
    color: #575042 !important;
}

html[data-theme="light"] .iosf-creed-declaration {
    color: #383228 !important;
}

html[data-theme="light"] .iosf-creed-rune-highlight {
    color: #8B5E2B !important;
}

html[data-theme="light"] .iosf-copyright-title,
html[data-theme="light"] .iosf-copyright-sub {
    color: #575042 !important;
}

/* ---------- 3.13 Gaveta Mobile (Drawer) ---------- */
html[data-theme="light"] .iosf-mobile-drawer {
    background: #FFFFFF !important;
    color: #1C1917 !important;
    box-shadow: -5px 0 25px rgba(50, 40, 25, 0.15) !important;
}

html[data-theme="light"] .iosf-mobile-drawer-header {
    background: #F9F6EE !important;
    border-bottom: 1px solid #DFD8C8 !important;
}

html[data-theme="light"] .iosf-mob-drawer-title {
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-mob-drawer-subtitle {
    color: #787060 !important;
}

html[data-theme="light"] .iosf-mob-link {
    color: #24211D !important;
    border-bottom: 1px solid #F0EADB !important;
}

html[data-theme="light"] .iosf-mob-link:hover {
    background: #F8F5EE !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-mob-icon {
    color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-mob-action-card {
    background: #F8F5EE !important;
    border: 1px solid #DFD8C8 !important;
    color: #1C1917 !important;
}

html[data-theme="light"] .iosf-mob-action-card:hover {
    background: #F2ECE0 !important;
    border-color: #9E6B1F !important;
}

html[data-theme="light"] .iosf-mob-card-text span {
    color: #6E6657 !important;
}

html[data-theme="light"] .iosf-mob-drawer-footer {
    background: #F9F6EE !important;
    border-top: 1px solid #DFD8C8 !important;
}

/* ==============================================================================
   4. BOTÃO FLUTUANTE DE RETORNO AO TOPO (BACK TO TOP)
   ============================================================================== */
.iosf-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(24, 24, 22, 0.95);
    border: 1px solid rgba(235, 192, 128, 0.35);
    color: var(--iosf-gold, #EBC080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(235, 192, 128, 0.15);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s,
                background-color 0.22s,
                border-color 0.22s,
                color 0.22s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.iosf-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.iosf-back-to-top:hover {
    background: var(--iosf-gold, #EBC080);
    color: #10100F;
    border-color: var(--iosf-gold, #EBC080);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 25px rgba(235, 192, 128, 0.40);
}

/* Modo Claro (Sauil) */
html[data-theme="light"] .iosf-back-to-top {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(158, 107, 31, 0.35) !important;
    color: #9E6B1F !important;
    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.15), 0 0 15px rgba(158, 107, 31, 0.10) !important;
}

html[data-theme="light"] .iosf-back-to-top:hover {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
    border-color: #9E6B1F !important;
    box-shadow: 0 14px 32px rgba(50, 40, 25, 0.22), 0 0 25px rgba(158, 107, 31, 0.30) !important;
}

@media (max-width: 600px) {
    .iosf-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

