/* 40aWeek - components/sidebar */

.sidebar-left {
  background: rgba(255, 255, 255, 0);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px;
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 72px;
  align-self: start;
}

.sidebar-card {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
}

.sidebar-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 15px;
  color: #333;
  text-align: center;
}

.sidebar-item {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.sidebar-item span:last-child {
  font-weight: 600;
  color: #1c1c1c;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-login-link {
  text-decoration: underline;
  color: var(--color-primary);
  font-weight: bold;
  transition: color 0.2s;
}

.sidebar-login-link:hover {
  color: var(--color-primary-dark);
}

.sidebar-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.nav-open .sidebar-left {
  transform: translateX(0);
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sb-section {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.sb-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.sb-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.sb-value {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  color: #1e293b;
  font-feature-settings: "tnum";
}

.timer-section-mobile .sb-content-col {
  margin-left: 10px;
}

.sb-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 3.5rem;
  color: rgba(99, 102, 241, 0.05);
  transform: rotate(-15deg);
  pointer-events: none;
}

.sb-divider-vertical {
  width: 1px;
  background: #e2e8f0;
  margin: 10px 0;
}

.sidebar-left.transparent-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sb-card {
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-color: var(--border-color);
}

.sb-card-clickable {
  cursor: pointer;
}

.sb-card-clickable:hover {
  border-color: #E8E4DF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sb-card-header {
  margin-bottom: 14px;
}

.sb-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: none;
  border: 1px solid #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border-color: transparent;
}

.sb-card-badge--gold {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.sb-card-badge--amber {
  color: #92400e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.sb-card-metric {
  margin-bottom: 8px;
}

.sb-metric-value {
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--text-color);
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-serif);
  font-style: italic;
}

.sb-card-desc {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.4;
}

.sb-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color, #111827);
  line-height: 1.4;
  margin-bottom: 8px;
}

.sb-card-meta {
  font-size: 0.82rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sb-meta-dot {
  color: #E8E4DF;
}

.sb-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-block;
}

.sb-card-clickable:hover .sb-card-cta {
  text-decoration: underline;
}

.sb-card-body {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

h1,
h2,
.page-hero-title,
.winner-hero-title,
.sb-metric-value,
.article-title,
.hero-title,
.section-title {
  font-family: var(--font-serif);
}

.glass {
  background: rgba(255, 255, 255, 0);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

*/


.widget-prize {
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.15);
}

.widget-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.widget-prize .widget-label {
  color: #4338ca;
}

.widget-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  z-index: 2;
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.widget-prize .widget-amount {
  background-image: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
}

.widget-sub {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  z-index: 2;
}

.widget-prize .widget-sub {
  color: #6b7280;
}

.widget-btn-publish {
  width: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.widget-btn-publish:hover {
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
  color: white;
}

.widget-ticket-area {
  width: 100%;
  background: #fff7ed;
  border: 2px dashed #fcd34d;
  border-radius: 12px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.glass-sidebar.floating-panel {
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-sidebar.floating-panel .theme-selector-wrapper {
  padding: 0;
}

#admin-stats-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(17, 24, 39, 0.95);
  color: #e5e7eb;
  padding: 15px;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #374151;
  min-width: 240px;
  backdrop-filter: blur(5px);
}

#admin-stats-widget h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #374151;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#admin-header-toggle {
  cursor: pointer;
  user-select: none;
}

#btn-toggle-admin {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px 6px;
  font-size: 0.85rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

#btn-toggle-admin:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 15px;
}

.admin-item {
  display: flex;
  flex-direction: column;
}

.admin-label {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.admin-val {
  font-size: 0.95rem;
  font-weight: bold;
}

.user-rank-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-stats-widget {
  padding: 20px 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 80%;
}

.user-stats-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}

.val-rank {
  color: var(--color-primary);
}

.val-votes {
  color: var(--color-primary);
}

.stat-teaser {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.stat-teaser strong {
  color: var(--color-primary);
}

.stats-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.teaser-subtext {
  font-size: 0.75rem;
  margin-top: 4px;
  color: #E8E4DF;
}
