/* Добавете тези стилове в края на файла */

/* Стилове за разширени форми */
.advanced-form-container {
  padding: 20px 0;
}

.section-subtitle {
  color: var(--neon-green);
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.advanced-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 768px) {
  .advanced-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.advanced-form-stats {
  margin-bottom: 20px;
}

.form-periods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.form-period {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
}

.period-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.period-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.period-stats span {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.period-stats .win {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.period-stats .draw {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.period-stats .loss {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.period-stats .goals {
  background: rgba(0, 170, 255, 0.2);
  color: var(--electric-blue);
  border: 1px solid rgba(0, 170, 255, 0.3);
}

.trends-section {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
}

.trend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 0;
}

.trend-item:last-child {
  margin-bottom: 0;
}

.trend-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

.trend-value {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
}

.trend-value.improving {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.trend-value.declining {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.trend-value.stable {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.trend-value.increasing {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.trend-value.decreasing {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.recent-matches {
  margin-top: 20px;
}

.matches-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.matches-visual {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.match-visual {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.match-visual.win {
  background: rgba(0, 255, 136, 0.3);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.5);
}

.match-visual.draw {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.5);
}

.match-visual.loss {
  background: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.5);
}

.match-visual:hover {
  transform: scale(1.2);
}

.no-matches {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-family: "Georgia", serif;
}

/* 🎯 ПО-МАЛКИ МАРКЕРИ ЗА ВАЖНОСТ */
.importance-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 12px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.importance-high {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.9), rgba(200, 0, 0, 0.9));
    color: white;
}

.importance-medium {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.9), rgba(200, 120, 0, 0.9));
    color: white;
}

.importance-low {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 200, 100, 0.9));
    color: black;
}

/* 🎯 ОПТИМИЗАЦИЯ ЗА МОБИЛНИ УСТРОЙСТВА */
@media (max-width: 768px) {
    .importance-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px !important;
        font-size: 9px !important;
        max-width: 70px;
    }
}

/* 🎯 ГАРАНТИРАНЕ ЧЕ КАРЕНЦЕТО НЕ ЗАКРИВА ЛОГОТО НА ГОСТА */
.fixture {
    position: relative;
    overflow: visible !important;
}

.teams-box {
    position: relative;
    z-index: 5;
}

/* Останалите стилове остават същите... */
.header {
  padding: 25px 0;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
  transition: left 0.8s ease;
}

.header:hover::before {
  left: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-title {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  font-weight: 900;
}

.app-title:hover {
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 60px rgba(0, 255, 136, 0.4);
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.lang-option:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateX(4px);
}

.lang-option.active {
  background: rgba(0, 255, 136, 0.15);
  border-left: 3px solid var(--neon-green);
}

.lang-option .flag {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.lang-option .lang-name {
  flex: 1;
}

/* Pro Plan Styles */
.nav-pro-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.nav-pro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffaa00, #ffd700);
}

.pro-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.btn-pro {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-pro:hover {
  background: linear-gradient(135deg, #ffaa00, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  color: #0a0a0a;
}

/* Pro Banner Styles */
.pro-banner-section {
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.pro-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 255, 136, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.pro-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.pro-banner-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.pro-banner-text {
  flex: 1;
}

.pro-banner-text h3 {
  color: #ffd700;
  margin: 0 0 8px 0;
  font-size: 1.3rem;
}

.pro-banner-text p {
  color: #cccccc;
  margin: 0;
  font-size: 0.95rem;
}

.pro-banner-btn {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pro-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Pro Mini Banner */
.pro-mini-banner {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.pro-mini-content {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pro-mini-icon {
  color: #ffd700;
  font-size: 1.2rem;
}

.pro-mini-text {
  color: #cccccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.pro-mini-btn {
  background: transparent;
  color: #ffd700;
  border: 1px solid #ffd700;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pro-mini-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-1px);
}

/* Pro Feature Cards */
.pro-feature-card {
  position: relative;
  border: 2px solid rgba(255, 215, 0, 0.3) !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 255, 136, 0.05)) !important;
}

.feature-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.feature-pro-btn {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
}

.feature-pro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Pro CTA Sections */
.pro-cta-section {
  margin-top: 40px;
}

.pro-cta {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 255, 136, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.pro-cta h3 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.pro-cta p {
  color: #cccccc;
  margin-bottom: 25px;
  font-size: 1rem;
}

.pro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.pro-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cccccc;
  font-size: 0.9rem;
}

.pro-feature-icon {
  color: #00ff88;
  font-size: 1.1rem;
}

.pro-cta-btn {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.pro-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Pro Works CTA */
.pro-works-cta {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-top: 40px;
  text-align: center;
}

.pro-works-content h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.pro-works-content p {
  color: #cccccc;
  margin-bottom: 20px;
}

.pro-works-btn {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0a0a;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pro-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Pro Mission CTA */
.pro-mission-cta {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
  text-align: center;
}

.pro-mission-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.pro-mission-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cccccc;
  font-size: 0.9rem;
  justify-content: center;
}

/* Footer Pro Styles */
.footer-pro-badge {
  margin-top: 10px;
}

.footer-pro-badge .pro-badge {
  font-size: 0.6rem;
  padding: 3px 6px;
}

.teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px auto;
  width: 95%;
  max-width: 700px;
  padding: 25px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pulseGlow 4s infinite;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.teams::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.7s ease;
}

.teams:hover::before {
  left: 100%;
}

.teams:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.6);
}

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

.team img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(0, 255, 136, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.team:hover img {
  transform: scale(1.12) rotate(2deg);
  border-color: rgba(0, 255, 136, 0.8);
  box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.team-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
}

.team:hover .team-name {
  color: var(--neon-green);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.vs {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-green);
  margin: 0 8px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.teams:hover .vs {
  transform: scale(1.2);
  text-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 60px rgba(0, 255, 136, 0.6);
}

/* Table Team Logos - Smaller size for analysis sections */
.table-team-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  display: block;
  margin: 0 auto;
}

.h2h-team-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px;
  display: block;
  margin: 0 auto;
}

/* Center team headers in tables */
.table-header .team-header,
.form-team-header {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
}

.form-team-header .table-team-logo {
  width: 40px;
  height: 40px;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}

/* PWA Prompt Styles */
.pwa-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #00ff88;
  border-radius: 12px;
  padding: 15px;
  max-width: 320px;
  z-index: 10000;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
  animation: slideInUp 0.5s ease-out;
}

.pwa-prompt-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-prompt-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.pwa-prompt-text {
  flex: 1;
}

.pwa-prompt-text h3 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #00ff88;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.pwa-prompt-text p {
  margin: 0;
  font-size: 12px;
  color: #ccc;
  line-height: 1.3;
  font-family: "Poppins", sans-serif;
}

.pwa-prompt-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pwa-prompt-buttons .btn {
  padding: 6px 12px;
  font-size: 12px;
  font-family: "Poppins", sans-serif;
}

/* Offline Indicator */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  padding: 12px 16px;
  text-align: center;
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
  animation: slideInDown 0.3s ease-out;
}

.offline-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.offline-content span:first-child {
  font-weight: 600;
}

.offline-content span:last-child {
  opacity: 0.9;
  font-size: 13px;
}

/* Online Indicator */
.online-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #0a0a0a;
  padding: 12px 16px;
  text-align: center;
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
  animation: slideInDown 0.3s ease-out;
}

.online-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.online-content span:first-child {
  font-weight: 600;
}

.online-content span:last-child {
  opacity: 0.9;
  font-size: 13px;
}

/* PWA App Installed Styles */
@media all and (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .navbar {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .hero {
    padding-top: calc(40px + env(safe-area-inset-top));
  }
  
  /* Hide browser UI elements in standalone mode */
  .pwa-prompt {
    display: none !important;
  }
}

/* Enhanced mobile experience for PWA */
@media (max-width: 768px) {
  .pwa-prompt {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    margin: 0 10px;
  }
  
  .pwa-prompt-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .pwa-prompt-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .pwa-prompt-buttons .btn {
    flex: 1;
    max-width: 120px;
  }
  
  /* Pro Banner Mobile */
  .pro-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .pro-mini-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .pro-features {
    grid-template-columns: 1fr;
  }
  
  .pro-mission-features {
    grid-template-columns: 1fr;
  }
  
  /* Adjust for mobile standalone mode */
  @media all and (display-mode: standalone) {
    .navbar {
      padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .hero {
      padding-top: calc(30px + env(safe-area-inset-top));
    }
  }

  /* Smaller logos for mobile */
  .table-team-logo {
    width: 28px;
    height: 28px;
  }
  
  .h2h-team-logo {
    width: 25px;
    height: 25px;
  }
  
  .form-team-header .table-team-logo {
    width: 32px;
    height: 32px;
  }
  
  /* Mobile nav adjustments */
  .nav-pro-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .pro-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}

/* PWA Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* PWA Installation Success Message */
.pwa-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #0a0a0a;
  padding: 15px 20px;
  border-radius: 12px;
  z-index: 10000;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Service Worker Update Notification */
.sw-update-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #00aaff;
  border-radius: 12px;
  padding: 15px;
  max-width: 300px;
  z-index: 10000;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 170, 255, 0.2);
  font-family: "Poppins", sans-serif;
}

.sw-update-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-update-content h4 {
  margin: 0;
  color: #00aaff;
  font-size: 14px;
  font-weight: 600;
}

.sw-update-content p {
  margin: 0;
  font-size: 12px;
  color: #ccc;
  line-height: 1.3;
}

.sw-update-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.sw-update-buttons .btn {
  padding: 6px 12px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .app-title { 
    font-size: 2rem; 
    padding: 12px 0; 
  }
  
  .teams { 
    flex-direction: row; 
    justify-content: space-between; 
    padding: 20px; 
    gap: 10px; 
    max-width: 95%; 
  }
  
  .team { 
    width: 120px; 
  }
  
  .team img { 
    width: 80px; 
    height: 80px; 
    border-radius: 10px; 
  }
  
  .team-name { 
    font-size: 0.9rem; 
  }
  
  .vs { 
    font-size: 1.6rem; 
    margin: 0 4px; 
  }
  
  .lang-btn { 
    padding: 6px 12px; 
    font-size: 0.8rem; 
  }
  
  .lang-dropdown { 
    min-width: 140px; 
    right: -10px; 
  }
  
  .lang-option { 
    padding: 8px 10px; 
    font-size: 0.8rem; 
  }
  
  .pwa-success {
    top: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
  }
  
  .sw-update-notification {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* Expert Prediction Styles */
.expert-prediction {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.expert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expert-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff88, #00aaff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.expert-info h4 {
    margin: 0;
    color: #00ff88;
    font-weight: 600;
}

.expert-info p {
    margin: 5px 0 0 0;
    color: #cccccc;
    font-size: 0.9rem;
}

.prediction-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prediction-main {
    text-align: center;
}

.predicted-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.prediction-team {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
}

.prediction-team.home {
    color: #00ff88;
}

.prediction-team.away {
    color: #00aaff;
}

.prediction-vs {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.2rem;
}

.prediction-outcome {
    color: #00ff88;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 15px 0;
    text-align: center;
}

.prediction-confidence {
    margin-top: 15px;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00aaff);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.confidence-text {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.prediction-reasoning {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.prediction-reasoning h5 {
    margin: 0 0 10px 0;
    color: #00aaff;
    font-weight: 600;
}

.prediction-reasoning ul {
    margin: 0;
    padding-left: 20px;
    color: #cccccc;
    line-height: 1.5;
}

.prediction-reasoning li {
    margin-bottom: 5px;
}

.prediction-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.stat-pill {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #cccccc;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.stat-value {
    display: block;
    color: #00ff88;
    font-weight: 600;
    font-size: 0.9rem;
}

.expert-note {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.expert-note p {
    margin: 0;
    color: #00ff88;
    font-size: 0.9rem;
    text-align: center;
}

/* Mobile responsive for expert prediction */
@media (max-width: 768px) {
    .expert-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .predicted-result {
        flex-direction: column;
        gap: 8px;
    }
    
    .prediction-stats {
        grid-template-columns: 1fr;
    }
    
    .prediction-team {
        font-size: 1rem;
    }
    
    .prediction-outcome {
        font-size: 1.1rem;
    }
}

/* ОПТИМИЗИРАНИ СТИЛОВЕ ЗА NAVBAR ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ОПТИМИЗИРАН PRO БУТОН ЗА МОБИЛНИ */
.nav-pro-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffaa00, #ffd700);
}

.pro-text {
  font-weight: 700;
}

/* МОБИЛНА ОПТИМИЗАЦИЯ ЗА NAVBAR */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: nowrap;
    gap: 8px;
  }
  
  .nav-logo {
    font-size: 1rem;
    flex-shrink: 1;
    min-width: 120px;
  }
  
  .nav-links {
    gap: 6px;
    margin: 0 5px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    padding: 5px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  
  .nav-pro-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
    gap: 4px;
    min-width: 70px;
  }
  
  .pro-text {
    display: none; /* Скриваме текста на мобилни, показваме само икона и badge */
  }
  
  .lang-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
    min-width: 50px;
  }
  
  .lang-dropdown {
    min-width: 130px;
    right: 0;
  }
  
  .lang-option {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 8px;
    gap: 5px;
  }
  
  .nav-logo {
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .nav-links {
    gap: 4px;
    margin: 0 3px;
  }
  
  .nav-link {
    padding: 4px 6px;
    font-size: 0.65rem;
  }
  
  .nav-actions {
    gap: 4px;
  }
  
  .nav-pro-btn {
    padding: 4px 6px;
    font-size: 0.65rem;
    min-width: 60px;
    gap: 3px;
  }
  
  .pro-badge {
    font-size: 0.6rem;
    padding: 2px 4px;
  }
  
  .lang-btn {
    padding: 4px 6px;
    font-size: 0.65rem;
    min-width: 45px;
  }
}

@media (max-width: 360px) {
  .nav-links .nav-link:nth-child(4) {
    display: none; /* Скриваме последния линк на много малки екрани */
  }
  
  .nav-pro-btn .pro-badge {
    display: none; /* Скриваме badge на много малки екрани */
  }
}

/* ==================== FIX LOGO ASPECT RATIO ==================== */
.league-logo {
    object-fit: contain !important;
}

/* ==================== MOBILE NAVIGATION OPTIMIZATION ==================== */
/* 📱 СКРИВАНЕ НА НАВИГАЦИОННИ ТАБОВЕ САМО НА МОБИЛЕН ИЗГЛЕД */
@media (max-width: 768px) {
  /* Скриване на Features и About табове само на mobile */
  .nav-links a#navFeatures,
  .nav-links a#navAbout {
    display: none !important;
  }
  
  /* Оптимизация на останалите табове да запълнят мястото */
  .nav-links {
    justify-content: space-around !important;
    gap: 4px !important;
  }
  
  .nav-links a.nav-link {
    flex: 1;
    text-align: center;
    min-width: auto !important;
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
  
  /* Подравняване на Pro бутона */
  .nav-pro-btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    min-width: 65px !important;
  }
}

/* ==================== EXTREME MOBILE OPTIMIZATION ==================== */
@media (max-width: 360px) {
  .nav-links a.nav-link {
    font-size: 0.7rem !important;
    padding: 4px 6px !important;
  }
  
  .nav-logo {
    font-size: 0.85rem !important;
    min-width: 90px !important;
  }
}
