﻿/* ==========================================================================
   GAV Infotabula - Wikipedia Daily Info Widget
   Displays current date, name day (meniny), and daily historical events
   ========================================================================== */

.wiki-widget-wrapper {
  margin: 14px auto 16px auto;
  max-width: 860px;
  width: calc(100% - 40px);
  position: static;
  box-sizing: border-box;
  -ms-user-select: none;
  user-select: none;
  z-index: 1;
}

.wiki-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 12px 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08),
              0 2px 6px -1px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wiki-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.11),
              0 3px 8px -1px rgba(15, 23, 42, 0.05);
}

.wiki-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex-shrink: 0;
}

.wiki-badge svg {
  width: 24px;
  height: 24px;
  color: #334155;
}

.wiki-content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.wiki-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.wiki-current-date {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.wiki-source-tag {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wiki-source-tag i {
  font-size: 11px;
}

.wiki-message-text {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
  text-align: left;
  transition: opacity 0.18s ease;
}

.wiki-message-text.fade-out {
  opacity: 0;
}

.wiki-message-text b {
  color: #0f172a;
  font-weight: 700;
}

.wiki-event-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 5px;
}

.wiki-loading {
  color: #94a3b8;
  font-style: italic;
}

.wiki-shuffle-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  outline: none;
  transition: all 0.18s ease;
  user-select: none;
}

.wiki-shuffle-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.wiki-shuffle-btn:active {
  transform: scale(0.96);
}

.wiki-shuffle-btn.spinning i {
  animation: wiki-spin 0.4s ease;
}

@keyframes wiki-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .wiki-card {
    padding: 10px 14px;
    gap: 12px;
  }
  .wiki-badge {
    width: 38px;
    height: 38px;
  }
  .wiki-badge svg {
    width: 20px;
    height: 20px;
  }
  .wiki-current-date {
    font-size: 12.5px;
  }
  .wiki-message-text {
    font-size: 12.5px;
  }
  .wiki-shuffle-btn span {
    display: none;
  }
  .wiki-shuffle-btn {
    padding: 6px 8px;
  }
}
