/* =====================================================
   WAZIRWIN - Components Stylesheet
   Reusable UI Components
   ===================================================== */

/* =====================================================
   NOTIFICATION TOAST
   ===================================================== */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  right: var(--space-lg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: #2A3848;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 280px;
  max-width: 360px;
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + var(--space-xl)));
  opacity: 0;
  transition: all var(--transition-base);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.toast-success .toast-icon {
  background: rgba(53,196,106,0.15);
  color: var(--primary);
}

.toast-error .toast-icon {
  background: rgba(255,80,80,0.15);
  color: #FF5050;
}

.toast-body { flex: 1; }

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toast-close {
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

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

/* =====================================================
   TAGS CLOUD (Sidebar)
   ===================================================== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag-link {
  padding: 6px 14px;
  background: #2A3848;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.tag-link:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

/* =====================================================
   SCORE / MATCH CARDS (Cricket)
   ===================================================== */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.match-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-status.live {
  background: rgba(255, 80, 80, 0.15);
  color: #FF5050;
  border: 1px solid rgba(255,80,80,0.3);
}

.match-status.upcoming {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(53,196,106,0.3);
}

.match-status.completed {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.match-status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.match-status.completed .match-status-dot,
.match-status.upcoming .match-status-dot {
  animation: none;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  margin-bottom: var(--space-md);
}

.match-team-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.match-team-score {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.match-vs {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  background: var(--primary-dim);
  border: 1px solid rgba(53,196,106,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Prediction card */
.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.prediction-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.prediction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.prediction-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

.confidence-bar-wrap {
  width: 80px;
  height: 4px;
  background: #2A3848;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px rgba(53,196,106,0.5);
}

.prediction-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-dim);
  border: 1px solid rgba(53,196,106,0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-md);
}

/* =====================================================
   GAME CARDS (Casino)
   ===================================================== */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-4px);
}

.game-card-img-wrap {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #2A3848;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-card-img { transform: scale(1.06); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22,28,34,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-body {
  padding: var(--space-md) var(--space-lg);
}

.game-card-type {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.game-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================
   GUIDE STEPS
   ===================================================== */
.guide-steps {
  counter-reset: step-counter;
}

.guide-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.guide-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: -var(--space-xl);
  width: 1px;
  height: calc(100% + var(--space-xl) - 44px);
  background: linear-gradient(to bottom, var(--primary), transparent);
  opacity: 0.3;
}

.guide-step-num {
  width: 40px;
  height: 40px;
  background: var(--primary-dim);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  counter-increment: step-counter;
  box-shadow: var(--shadow-glow);
}

.guide-step-body {
  padding-top: 8px;
  flex: 1;
}

.guide-step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.guide-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =====================================================
   INLINE CALLOUT / TIP BOX
   ===================================================== */
.callout {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border-left: 3px solid;
  margin: var(--space-xl) 0;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.callout-tip {
  background: rgba(53,196,106,0.08);
  border-color: var(--primary);
}

.callout-warning {
  background: rgba(255,184,0,0.08);
  border-color: #FFB800;
}

.callout-danger {
  background: rgba(255,80,80,0.08);
  border-color: #FF5050;
}

.callout-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: #2A3848;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody tr {
  background: var(--bg-card);
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: #2A3848;
}

.comparison-table td {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.comparison-table .check-yes { color: var(--primary); }
.comparison-table .check-no  { color: #FF5050; }

/* =====================================================
   FLYOUT SEARCH OVERLAY
   ===================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 28, 34, 0.95);
  backdrop-filter: blur(16px);
  z-index: 1500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding-inline: var(--space-lg);
}

.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: #2A3848;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.search-overlay-icon { color: var(--primary); font-size: 1.2rem; }

.search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.search-overlay-input::placeholder { color: var(--text-muted); }

.search-overlay-close {
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-overlay-close:hover { color: var(--text-primary); }

.search-suggestions-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: var(--text-secondary);
}

.search-suggestion:hover {
  background: #2A3848;
  color: var(--primary);
}

.search-suggestion-icon {
  width: 32px;
  height: 32px;
  background: #2A3848;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  max-width: 440px;
  background: #2A3848;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  z-index: 950;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + var(--space-lg)));
  transition: transform var(--transition-slow);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* =====================================================
   PROGRESS STEPS (Guides)
   ===================================================== */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 80px;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.progress-step.active:not(:last-child)::after {
  background: var(--primary);
}

.progress-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2A3848;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
  transition: all var(--transition-base);
}

.progress-step.active .progress-step-num,
.progress-step.completed .progress-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.progress-step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.progress-step.active .progress-step-label {
  color: var(--primary);
}

/* =====================================================
   FLOATING ANNOUNCEMENT BAR (Top)
   ===================================================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 10px var(--space-lg);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  position: relative;
}

.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-close {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.announcement-close:hover { color: #fff; }
