/* ==========================================================================
   GHANAMMA PREMIER FEATURES STYLES
   1. Breaking News Ticker Banner (Flashing Red Bar)
   2. Ghana Market Pulse Widget (Cedi Forex & Fuel Prices)
   3. Ghana Premier League (GPL) Standings & Football Scores
   4. Web Push Notification Floating Bell & Opt-in Modal
   ========================================================================== */

/* -------------------------------------------------------------
   1. BREAKING NEWS TICKER BANNER
   ------------------------------------------------------------- */
.gh-breaking-banner {
  width: 100%;
  background: #111827;
  color: #f9fafb;
  border-bottom: 2px solid #c01e2f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  box-sizing: border-box;
  position: relative;
  z-index: 900;
}

.gh-breaking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 42px;
  gap: 10px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .gh-breaking-container {
    height: 46px;
    padding: 0 20px;
    gap: 14px;
  }
}

/* Red Alert Flashing Badge */
.gh-breaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

@media screen and (min-width: 768px) {
  .gh-breaking-badge {
    font-size: 12px;
    padding: 5px 12px;
  }
}

.gh-breaking-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: ghPulseDot 1.4s infinite ease-in-out;
}

@keyframes ghPulseDot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.gh-breaking-icon {
  font-size: 13px;
  line-height: 1;
}

/* Ticker Slider Track */
.gh-breaking-slider {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.gh-breaking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  height: 100%;
}

.gh-breaking-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gh-breaking-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.gh-breaking-link {
  color: #f3f4f6;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  max-width: 100%;
}

.gh-breaking-link:hover {
  color: #fbbf24;
}

.gh-breaking-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-breaking-meta {
  color: #9ca3af;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gh-meta-sep {
  margin: 0 3px;
  color: #6b7280;
}

.gh-meta-source {
  color: #ef4444;
  font-weight: 600;
}

/* Controls */
.gh-breaking-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.gh-breaking-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  line-height: 1;
}

.gh-breaking-nav-btn:hover {
  background: #c01e2f;
  color: #ffffff;
}

/* -------------------------------------------------------------
   SHARED SIDEBAR WIDGET STYLES (MARKET PULSE & GPL)
   ------------------------------------------------------------- */
.gh-sidebar-widget {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
  font-family: inherit;
}

.gh-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.gh-widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-widget-icon {
  font-size: 18px;
  line-height: 1;
}

.gh-widget-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

.gh-widget-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

.gh-live-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: ghPulseDotGreen 1.5s infinite;
}

@keyframes ghPulseDotGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.gh-gpl-season-badge {
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #fecaca;
}

/* Segmented Tabs */
.gh-widget-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 14px;
}

.gh-widget-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.gh-widget-tab.is-active {
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gh-widget-footnote {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 11px;
}

/* -------------------------------------------------------------
   2. CEDI FOREX & FUEL STYLES
   ------------------------------------------------------------- */
.gh-forex-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gh-forex-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.15s;
}

.gh-forex-row:nth-child(even) {
  background: #f9fafb;
}

.gh-forex-head {
  font-weight: 700;
  color: #6b7280;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  background: transparent !important;
}

.col-curr {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gh-flag {
  font-size: 14px;
  line-height: 1;
}

.gh-curr-symbol {
  color: #9ca3af;
  font-size: 11px;
}

.col-buy {
  color: #374151;
  font-weight: 600;
}

.col-sell {
  color: #111827;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gh-trend-icon.up {
  color: #10b981;
  font-size: 9px;
}

.gh-trend-icon.down {
  color: #ef4444;
  font-size: 9px;
}

/* Fuel Cards Grid */
.gh-fuel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gh-fuel-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, border-color 0.15s;
}

.gh-fuel-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.gh-fuel-icon {
  font-size: 20px;
  line-height: 1;
}

.gh-fuel-info {
  display: flex;
  flex-direction: column;
}

.gh-fuel-name {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
}

.gh-fuel-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.gh-fuel-price {
  font-size: 13px;
  font-weight: 800;
  color: #c01e2f;
}

.gh-fuel-per {
  font-size: 10px;
  color: #6b7280;
}

.gh-fuel-sub {
  font-size: 9px;
  color: #9ca3af;
}

/* -------------------------------------------------------------
   3. GHANA PREMIER LEAGUE (GPL) STYLES
   ------------------------------------------------------------- */
.gh-gpl-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gh-gpl-row {
  display: grid;
  grid-template-columns: 24px 1fr 30px 32px 34px;
  align-items: center;
  padding: 5px 6px;
  font-size: 12px;
  border-radius: 4px;
  color: #374151;
}

.gh-gpl-row:nth-child(even) {
  background: #f9fafb;
}

.gh-gpl-head {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  background: transparent !important;
}

.gh-gpl-row.leader {
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
  border-left: 3px solid #f59e0b;
}

.gh-gpl-row.top {
  border-left: 3px solid #3b82f6;
}

.col-pos {
  text-align: center;
  font-weight: 700;
}

.col-club {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-p, .col-gd, .col-pts {
  text-align: center;
}

.col-pts {
  color: #111827;
}

.gh-sports-link-wrap {
  text-align: center;
  padding-top: 8px;
}

.gh-widget-more-link {
  color: #c01e2f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.gh-widget-more-link:hover {
  text-decoration: underline;
}

/* Match Scores List */
.gh-scores-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gh-score-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
}

.gh-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 2px 0;
  color: #374151;
}

.gh-team-name.is-winner {
  font-weight: 700;
  color: #111827;
}

.gh-score-badge {
  font-weight: 800;
  background: #e5e7eb;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.gh-match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
  font-size: 10px;
  color: #6b7280;
}

.gh-status-badge.ft {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

/* -------------------------------------------------------------
   4. WEB PUSH NOTIFICATION FLOATING BELL & MODAL
   ------------------------------------------------------------- */
.gh-push-widget-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: inherit;
}

.gh-push-bell-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #c01e2f, #8b101e);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(192, 30, 47, 0.4);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.gh-push-bell-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 30, 47, 0.5);
}

.gh-push-bell-pill.is-subscribed {
  background: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.gh-bell-icon {
  font-size: 14px;
  line-height: 1;
}

.gh-bell-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #facc15;
  border-radius: 50%;
  animation: ghBellPing 1.6s infinite;
}

@keyframes ghBellPing {
  0% { transform: scale(0.9); opacity: 1; }
  75% { transform: scale(2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Opt-In Modal Card */
.gh-push-modal {
  position: fixed;
  bottom: 74px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 100000;
  animation: ghModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ghModalSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.gh-push-modal-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.gh-push-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gh-push-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #111827;
}

.gh-push-close-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.gh-push-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.gh-push-modal-body p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}

.gh-push-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-push-action-allow {
  flex: 1.4;
  background: linear-gradient(135deg, #c01e2f, #991b1b);
  color: #ffffff;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(192, 30, 47, 0.35);
  transition: opacity 0.2s;
}

.gh-push-action-allow:hover {
  opacity: 0.95;
}

.gh-push-action-dismiss {
  flex: 1;
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.gh-push-action-dismiss:hover {
  background: #e5e7eb;
}


/* -------------------------------------------------------------
   5. MOBILE QUICK HUB (ACCORDION CARDS FOR PHONES)
   ------------------------------------------------------------- */
.gh-mobile-quick-hub {
  display: block;
  margin: 0 10px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .gh-mobile-quick-hub {
    display: none; /* Full widgets are in right sidebar on desktop/tablet */
  }
}

.gh-mobile-hub-buttons {
  display: flex;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.gh-mobile-hub-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid #e5e7eb;
}

.gh-mobile-hub-btn:last-child {
  border-right: none;
}

.gh-mobile-hub-btn.is-active {
  background: #ffffff;
  color: #c01e2f;
  box-shadow: inset 0 2px 0 #c01e2f;
}

.gh-mobile-hub-content {
  padding: 12px;
}

.gh-mobile-hub-pane {
  display: none;
}

.gh-mobile-hub-pane.is-active {
  display: block;
  animation: ghFadeIn 0.25s ease;
}

@keyframes ghFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
