:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --card-border: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-success: #4ade80;
  --accent-highlight: #f472b6;

  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #020617;
  background-image:
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(129, 140, 248, 0.15) 0px, transparent 50%);
  font-family: var(--font-main);
  color: var(--text-primary);
  overflow: hidden;
}

.mobile-app-container {
  width: 390px;
  height: 844px;
  background-color: var(--bg-color);
  border: 8px solid #334155;
  border-radius: 48px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/*Scoreboard*/
#scoreboard {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 24px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  margin-top: 4px;
}

.home .team-name {
  color: #fbbf24;
}

.away .team-name {
  color: #ef4444;
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.quarter {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
}

.time {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/*Feed Header*/
.feed-header {
  padding: 20px 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.live-indicator {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-success);
  background: rgba(74, 222, 128, 0.1);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-success);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/*Live Feed Container*/
#live-feed-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 100px;
  scroll-behavior: smooth;
}

/* Hide scrollbar*/
#live-feed-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar */
#live-feed-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.feed-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideIn 0.4s ease-out forwards;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.feed-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background-color: var(--accent-primary);
  margin-right: 8px;
  border-radius: 2px;
}

.feed-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/*Football Terms*/
.football-term {
  color: var(--accent-secondary);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px dashed var(--accent-secondary);
  transition: all 0.2s;
}

.football-term:hover {
  color: var(--text-primary);
  background-color: rgba(129, 140, 248, 0.2);
  border-bottom-style: solid;
}

/*Navbar*/
#nav-bar {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  height: 64px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-item svg {
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent-primary);
}

.nav-item:hover svg {
  transform: translateY(-2px);
}

/*Tooltip*/
.tooltip-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);

  position: absolute;
  z-index: 100;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);

  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/*Modal*/
.term-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.term-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.term-modal-content {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  width: 85%;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.term-modal.show .term-modal-content {
  transform: scale(1);
}

.term-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.1) 100%);
  border-bottom: 1px solid var(--card-border);
}

.term-modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-primary);
}

.term-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.term-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.term-modal-body {
  padding: 24px 20px;
}


/* guide view */
#guide-view {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 100px;
  scroll-behavior: smooth;
}

#guide-view::-webkit-scrollbar {
  display: none;
}

#guide-view {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.guide-category {
  margin-bottom: 24px;
}

.guide-category h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent-highlight);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 8px;
}

.term-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.term-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-secondary);
}

.term-item h4 {
  color: var(--accent-primary);
  font-size: 15px;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.term-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}
/* --- PROFILE STYLES --- */
#profile-view {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.profile-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.settings-group {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0 16px;
  margin-bottom: 24px;
}

.settings-group h4 {
  padding: 16px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 1px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 15px;
  color: var(--text-primary);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-value {
  color: var(--text-secondary);
  font-size: 14px;
}

/* iOS Style Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155; /* Off color */
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-success); /* On color */
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
