/* ==========================================================================
   KOMPONENTY UI - BIBLIOTEKA SŁOWIAŃSKA
   ========================================================================== */

/* --- FORMULARZE, FILTRY I WYSZUKIWARKI --- */
.filter-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-highlight);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.45rem 0.85rem;
  background: rgba(212, 163, 89, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(212, 163, 89, 0.14);
  color: var(--text-gold);
}

.filter-pill.active {
  background: var(--amber-gold);
  border-color: var(--amber-gold);
  color: #121c17;
  font-weight: 600;
}

.select-control {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.select-control:focus {
  border-color: var(--border-highlight);
}

/* --- KARTY BIBLIOGRAFICZNE (BIBLIOGRAPHY CARDS) --- */
.bib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.bib-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bib-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bib-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--border-subtle);
  transition: background var(--transition-fast);
}

.bib-card:hover::before {
  background: var(--amber-gold);
}

.bib-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.bib-category-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 89, 0.12);
  color: var(--amber-light);
  border: 1px solid rgba(212, 163, 89, 0.25);
}

.bib-actions-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--amber-light);
  transform: scale(1.15);
}

.icon-btn.active {
  color: #ffd166;
}

.bib-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.bib-author {
  font-weight: 600;
  color: var(--amber-gold);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.bib-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.bib-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.bib-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.bib-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
  font-size: 0.85rem;
}

.btn-cite {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 163, 89, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cite:hover {
  background: var(--amber-gold);
  color: #121c17;
  border-color: var(--amber-gold);
}

/* --- KARTY PLEMION (TRIBES CARDS) --- */
.tribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tribe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.tribe-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.tribe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.tribe-title {
  font-size: 1.25rem;
  color: var(--amber-light);
  margin: 0;
}

.tribe-latin {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- OŚ CZASU (TIMELINE) --- */
.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--amber-gold), var(--slavic-green), var(--terracotta));
}

.timeline-epoch-block {
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-epoch-header {
  margin-left: 60px;
  margin-bottom: 1.5rem;
}

.timeline-epoch-title {
  font-size: 1.35rem;
  color: var(--amber-light);
  margin-bottom: 0.3rem;
}

.timeline-epoch-period {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--slavic-green);
  font-weight: 600;
}

.timeline-event-card {
  position: relative;
  margin-left: 60px;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-event-card:hover {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.timeline-event-node {
  position: absolute;
  left: -42px;
  top: 1.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--amber-gold);
  box-shadow: 0 0 8px var(--amber-gold);
}

.timeline-event-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-gold);
  margin-bottom: 0.3rem;
}

.timeline-event-title {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.timeline-event-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.timeline-event-sources {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- CZYTELNIA ŹRÓDEŁ PISANYCH (SOURCES DUAL-PANE READER) --- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.source-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.source-card h3 {
  color: var(--amber-light);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.source-author-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.source-excerpt-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--amber-gold);
  padding: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.2rem;
  font-family: var(--font-quote);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.source-analysis-box {
  background: rgba(78, 159, 115, 0.08);
  border: 1px solid rgba(78, 159, 115, 0.2);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- PANTEON I MITOLOGIA (PANTHEON & DEMONOLOGY) --- */
.subtabs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.subtabs-bar::-webkit-scrollbar {
  display: none;
}

.subtab-btn {
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
  transition: all var(--transition-fast);
}

.subtab-btn:hover {
  color: var(--text-gold);
}

.subtab-btn.active {
  background: rgba(212, 163, 89, 0.12);
  border-color: var(--border-highlight);
  color: var(--amber-light);
}

.pantheon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.god-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.god-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

.god-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-dark), var(--bg-primary));
  border: 2px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--amber-light);
}

.god-name {
  font-size: 1.3rem;
  color: var(--amber-light);
  margin-bottom: 0.2rem;
}

.god-title {
  font-size: 0.82rem;
  color: var(--text-gold);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.god-attributes {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(212, 163, 89, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
}

.god-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

/* --- GLOSARIUSZ (GLOSSARY) --- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.glossary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all var(--transition-fast);
}

.glossary-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.glossary-term {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--amber-light);
  margin-bottom: 0.3rem;
}

.glossary-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slavic-green);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.glossary-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- QUIZ WIEDZY SŁOWIAŃSKIEJ --- */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.quiz-score-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber-light);
  background: rgba(212, 163, 89, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.quiz-question-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option-btn {
  padding: 1rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(212, 163, 89, 0.12);
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.quiz-option-btn.correct {
  background: rgba(78, 159, 115, 0.25) !important;
  border-color: var(--slavic-green) !important;
  color: #98f5c3 !important;
  font-weight: 600;
}

.quiz-option-btn.wrong {
  background: rgba(194, 94, 56, 0.25) !important;
  border-color: var(--terracotta) !important;
  color: #ff9b85 !important;
}

.quiz-explanation-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}

.quiz-footer-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--amber-gold), var(--amber-dark));
  border: none;
  border-radius: var(--radius-md);
  color: #121c17;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* --- MODALE I POPUPY (MODALS & DRAWERS) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(16px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* --- STATUS TAGS & SCIENTIFIC BADGES --- */
.tag-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-source {
  background: rgba(78, 159, 115, 0.18);
  color: #98f5c3;
  border: 1px solid rgba(78, 159, 115, 0.4);
}

.tag-reconstruction {
  background: rgba(212, 163, 89, 0.18);
  color: var(--amber-light);
  border: 1px solid rgba(212, 163, 89, 0.4);
}

.tag-dispute {
  background: rgba(72, 149, 239, 0.18);
  color: #90e0ef;
  border: 1px solid rgba(72, 149, 239, 0.4);
}

.tag-fake {
  background: rgba(194, 94, 56, 0.22);
  color: #ff9b85;
  border: 1px solid rgba(194, 94, 56, 0.45);
}

/* --- TABELA NAUKOWA (SCIENTIFIC COMPARISON TABLE) --- */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.scientific-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.scientific-table th {
  background: var(--bg-secondary);
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.9rem;
  border-bottom: 1px solid var(--border-highlight);
  white-space: nowrap;
}

.scientific-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.45;
}

.scientific-table tr:hover td {
  background: rgba(212, 163, 89, 0.04);
}

.warning-box {
  background: rgba(194, 94, 56, 0.12);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* =========================================================================
   --- KALENDARZ SŁOWIAŃSKI & KOŁO ROKU (PREMIUM STYLES & MOBILE READY) ---
   ========================================================================= */

/* Widget bieżącego dnia */
.today-widget-card {
  background: linear-gradient(135deg, rgba(20, 32, 25, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.today-widget-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 163, 89, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.today-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.today-date-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.today-icon-wrap {
  position: relative;
}

.today-icon {
  font-size: 2.5rem;
  background: rgba(212, 163, 89, 0.12);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 163, 89, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(212, 163, 89, 0.2);
}

.today-pulse-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.today-gregorian {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.today-slavic-month {
  font-size: 1.25rem;
  color: var(--text-gold);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.today-season-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.today-nature-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--amber-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.5;
}

.today-nearest-event {
  background: rgba(212, 163, 89, 0.09);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.today-nearest-event:hover {
  background: rgba(212, 163, 89, 0.16);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.today-nearest-event h4 {
  color: var(--amber-light);
  font-family: var(--font-heading);
  margin: 0.6rem 0 0.4rem 0;
  font-size: 1.15rem;
}

.today-nearest-event p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.view-details-link {
  font-size: 0.85rem;
  color: var(--amber-warm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* =========================================================================
   KOŁO ROKU (WHEEL OF THE YEAR)
   ========================================================================= */

.wheel-layout {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.wheel-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.wheel-header h3 {
  font-family: var(--font-heading);
  color: var(--amber-light);
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.wheel-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 700px;
  margin: 0 auto;
}

.wheel-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.wheel-point-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.wheel-point-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Akcenty kolorystyczne 4 pór roku */
.wheel-point-card.season-zima {
  border-left: 4px solid #60a5fa;
}
.wheel-point-card.season-zima:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.25);
}

.wheel-point-card.season-wiosna {
  border-left: 4px solid #10b981;
}
.wheel-point-card.season-wiosna:hover {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.wheel-point-card.season-lato {
  border-left: 4px solid #f59e0b;
}
.wheel-point-card.season-lato:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.wheel-point-card.season-jesien {
  border-left: 4px solid #d97706;
}
.wheel-point-card.season-jesien:hover {
  border-color: #d97706;
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.25);
}

.wheel-point-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

.wheel-point-season {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.wheel-point-title {
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin: 0.25rem 0;
  line-height: 1.25;
}

.wheel-point-date {
  font-size: 0.82rem;
  color: var(--amber-warm);
  font-weight: 600;
}

/* =========================================================================
   PASEK 12 MIESIĘCY SŁOWIAŃSKICH
   ========================================================================= */

.calendar-months-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem 0.2rem;
  margin-bottom: 1.6rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.calendar-months-bar::-webkit-scrollbar {
  height: 6px;
}

.calendar-months-bar::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 89, 0.2);
  border-radius: 4px;
}

.month-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  scroll-snap-align: start;
  min-height: 64px;
}

.month-tab-btn:hover {
  background: rgba(212, 163, 89, 0.08);
  color: var(--text-primary);
  border-color: rgba(212, 163, 89, 0.3);
}

.month-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.22), rgba(184, 115, 51, 0.28));
  border-color: var(--amber-gold);
  color: var(--text-gold);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.month-icon {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.month-name {
  font-size: 0.88rem;
}

.month-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* =========================================================================
   KONTROLKI I FILTRY KALENDARZA
   ========================================================================= */

.calendar-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.calendar-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calendar-cat-btn {
  padding: 0.5rem 0.95rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
}

.calendar-cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.calendar-cat-btn.active {
  background: linear-gradient(135deg, var(--amber-gold), var(--amber-dark));
  color: #0f172a;
  font-weight: 700;
  border-color: var(--amber-gold);
  box-shadow: 0 2px 8px rgba(212, 163, 89, 0.3);
}

/* =========================================================================
   SIATKA KART WYDARZEŃ KALENDARZA
   ========================================================================= */

.calendar-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
}

.calendar-event-card {
  background: rgba(20, 32, 25, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.calendar-event-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: rgba(26, 42, 33, 0.85);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  gap: 0.6rem;
}

.badge-solarne { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.45); }
.badge-bostwa { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.45); }
.badge-przodkowie { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.45); }
.badge-agrotechnika { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.45); }
.badge-ziololecznictwo { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.45); }
.badge-zycie_rodzinne { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.45); }

.event-date-pill {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.event-title {
  font-family: var(--font-heading);
  color: var(--amber-light);
  font-size: 1.2rem;
  margin: 0.35rem 0;
  line-height: 1.3;
}

.event-meta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.event-desc-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.event-deities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tag-deity {
  font-size: 0.74rem;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--text-gold);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.event-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  font-size: 0.8rem;
  gap: 0.5rem;
}

.event-syncretism-badge {
  color: var(--text-muted);
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-more-btn {
  color: var(--amber-warm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* =========================================================================
   MODALE (RESPONSYWNOŚĆ MOBILNA)
   ========================================================================= */

.modal-container {
  max-width: 780px;
  width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* =========================================================================
   RESPONSYWNOŚĆ KOMPONENTÓW NA TELEFONACH
   ========================================================================= */

@media (max-width: 768px) {
  .today-widget-card {
    padding: 1.3rem 1.2rem;
    margin-bottom: 1.6rem;
  }

  .today-widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .wheel-layout {
    padding: 1.3rem 1rem;
  }

  .wheel-points-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .calendar-controls-bar {
    padding: 0.9rem;
  }

  .calendar-events-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .calendar-event-card {
    padding: 1.3rem 1.1rem;
  }

  .modal-container {
    width: 96vw;
    padding: 1.4rem 1.1rem;
    max-height: 92vh;
  }

  .modal-grid-two-cols {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .today-slavic-month {
    font-size: 1.1rem;
  }

  .today-icon {
    font-size: 2rem;
    padding: 0.45rem;
  }

  .month-tab-btn {
    padding: 0.6rem 0.85rem;
    min-height: 56px;
  }

  .month-icon {
    font-size: 1.15rem;
  }

  .month-name {
    font-size: 0.8rem;
  }

  .event-title {
    font-size: 1.1rem;
  }
}


