

.wp-predictions-betting-analysis h2 {
    color: var(--theme-palette-color-1);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wp-predictions-betting-analysis h3 {
    color: var(--theme-palette-color-2);
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid var(--theme-palette-color-1);
    padding-bottom: 8px;
}

.wp-predictions-betting-analysis h4 {
    color: var(--theme-palette-color-1);
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.wp-predictions-betting-analysis h5 {
    color: var(--theme-palette-color-2);
    margin: 15px 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
}

.wp-predictions-section {
    background: var(--theme-palette-color-5);
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wp-predictions-beginner-guide {
    background: var(--theme-palette-color-6);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--theme-palette-color-1);
    margin: 15px 0;
}

.wp-predictions-beginner-guide h5 {
    color: var(--theme-palette-color-1);
    margin-top: 0;
}

.wp-predictions-beginner-guide p {
    margin: 8px 0;
    line-height: 1.5;
    color: var(--theme-palette-color-3);
}

.wp-predictions-team-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.wp-predictions-team-card {
    background: var(--theme-palette-color-6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
    text-align: center;
}

.wp-predictions-team-card h4 {
    margin-top: 0;
    color: var(--theme-palette-color-1);
    font-size: 1.3rem;
}

.wp-predictions-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.wp-predictions-stat-item {
    background: var(--theme-palette-color-7);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--theme-palette-color-8);
}

.wp-predictions-stat-label {
    font-size: 0.9rem;
    color: var(--theme-palette-color-3);
    margin-bottom: 5px;
    font-weight: 500;
}

.wp-predictions-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-palette-color-1);
}

.wp-predictions-strength-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.wp-predictions-strength-strong {
    background: #27ae60;
    color: white;
}

.wp-predictions-strength-moderate {
    background: #f39c12;
    color: white;
}

.wp-predictions-strength-weak {
    background: #e74c3c;
    color: white;
}

.wp-predictions-periods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.wp-predictions-period-card {
    background: var(--theme-palette-color-6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
}

.wp-predictions-period-card h4 {
    margin-top: 0;
    color: var(--theme-palette-color-1);
    font-size: 1.2rem;
}

.wp-predictions-period-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.wp-predictions-detailed-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.wp-predictions-team-analysis {
    background: var(--theme-palette-color-6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
}

.wp-predictions-team-analysis h4 {
    margin-top: 0;
    color: var(--theme-palette-color-1);
    font-size: 1.2rem;
}

.wp-predictions-analysis-section {
    margin: 15px 0;
}

.wp-predictions-analysis-section h5 {
    color: var(--theme-palette-color-2);
    margin: 10px 0 8px 0;
    font-size: 1rem;
}

.wp-predictions-recommendations {
    background: var(--theme-palette-color-6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
    margin: 20px 0;
}

.wp-predictions-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-predictions-recommendations li {
    background: var(--theme-palette-color-7);
    margin: 8px 0;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--theme-palette-color-1);
    color: var(--theme-palette-color-3);
}

.wp-predictions-factor-breakdown {
    background: var(--theme-palette-color-6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
    margin: 20px 0;
}

.wp-predictions-factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wp-predictions-factor-item {
    background: var(--theme-palette-color-7);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--theme-palette-color-8);
    text-align: center;
}

.wp-predictions-factor-item h5 {
    margin-top: 0;
    color: var(--theme-palette-color-1);
    font-size: 1rem;
}

.wp-predictions-summary {
    background: var(--theme-palette-color-6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
    margin: 20px 0;
}

.wp-predictions-summary h5 {
    color: var(--theme-palette-color-1);
    margin: 15px 0 8px 0;
    font-size: 1.1rem;
}

.wp-predictions-summary p {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--theme-palette-color-3);
}

.wp-predictions-note {
    background: var(--theme-palette-color-7);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #f39c12;
    margin: 20px 0;
}

.wp-predictions-note h4 {
    color: #f39c12;
    margin-top: 0;
    font-size: 1.1rem;
}

.wp-predictions-note p {
    margin: 8px 0;
    line-height: 1.5;
    color: var(--theme-palette-color-3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-predictions-betting-analysis {
        padding: 15px;
        margin: 10px;
    }
    
    .wp-predictions-team-comparison,
    .wp-predictions-periods-grid,
    .wp-predictions-detailed-analysis {
        grid-template-columns: 1fr;
    }
    
    .wp-predictions-stats-grid,
    .wp-predictions-period-stats {
        grid-template-columns: 1fr;
    }
    
    .wp-predictions-factor-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-predictions-betting-analysis h2 {
        font-size: 1.5rem;
    }
    
    .wp-predictions-betting-analysis h3 {
        font-size: 1.2rem;
    }
}

/* Hover Effects */
.wp-predictions-team-card:hover,
.wp-predictions-period-card:hover,
.wp-predictions-team-analysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.wp-predictions-stat-item:hover {
    background: var(--theme-palette-color-8);
    transition: background 0.2s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-predictions-section {
    animation: fadeInUp 0.6s ease-out;
}

.wp-predictions-team-card,
.wp-predictions-period-card,
.wp-predictions-team-analysis {
    animation: fadeInUp 0.8s ease-out;
}

/* Focus States */
.wp-predictions-betting-analysis *:focus {
    outline: 2px solid var(--theme-palette-color-1);
    outline-offset: 2px;
}

/* Loading States */
.wp-predictions-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wp-predictions-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--theme-palette-color-8);
    border-top: 4px solid var(--theme-palette-color-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Match Trends Container */
.match-trends {
    max-width: 768px;
    margin: 0 auto;
  }
  
  /* Headings */
  .match-trends h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--theme-palette-color-3);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    text-transform: uppercase;
  }
  
  /* Horizontal Rule */
  .match-trends hr {
    border: none;
    border-top: 2px solid var(--theme-palette-color-8);
    margin: var(--spacing-lg) 0;
  }
  
  /* No Trends Message */
  .match-trends p {
    font-size: var(--font-size-base);
    color: var(--theme-palette-color-3);
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--theme-palette-color-6);
    border-radius: 8px;
  }
  

  
  /* Trend Card */
  .match-trends .trend {
    background-color: var(--theme-palette-color-6);
    margin-bottom: 10px;
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--theme-palette-color-8);
  }
  
  /* Hover Effect */
  .match-trends .trend:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--theme-palette-color-1);
  }
  
   /* Trend Header */
   .match-trends .trend-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: var(--spacing-sm);
   }
   
   /* Trend Left Side */
   .match-trends .trend-left {
     display: flex;
     align-items: center;
     gap: var(--spacing-sm);
   }
   
   /* Trend Right Side */
   .match-trends .trend-right {
     display: flex;
     align-items: center;
     gap: var(--spacing-xs);
   }
  
  /* Trend Icon */
  .match-trends .trend-icon {
    font-size: 24px;
    color: var(--theme-palette-color-5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-palette-color-6);
    border-radius: 50%;
  }
  
  /* Trend Name */
  .match-trends .trend-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-bold);
    color: var(--theme-palette-color-3);
    text-transform: capitalize;
  }
  
  /* Trend Stats */
  .match-trends .trend-stats {
    font-size: var(--font-size-base);
    font-weight: var(--font-bold);
    color: var(--theme-palette-color-3);
    background-color: var(--theme-palette-color-6);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    text-align: center;
    margin-bottom: var(--spacing-sm);
  }
  
  /* Trend Percentage */
  .match-trends .trend-percentage {
    font-size: var(--font-size-lg);
    font-weight: var(--font-bold);
    color: var(--theme-palette-color-1);
    text-align: center;
    margin-bottom: var(--spacing-sm);
  }
  
   /* Trend Context */
   .match-trends .trend-context {
     font-size: var(--font-size-sm);
     color: var(--theme-palette-color-3);
     text-align: center;
     margin-bottom: var(--spacing-sm);
     text-transform: uppercase;
     letter-spacing: 0.05em;
   }
   
   /* Club Name */
   .match-trends .club-name {
     font-size: var(--font-size-base);
     font-weight: var(--font-semibold);
     color: var(--theme-palette-color-3);
   }
   
   /* Club Logo */
   .match-trends .trend-club-logo {
     width: 40px;
     height: 40px;
     border-radius: 3px;
     object-fit: contain;
     margin-right: 4px;
   }
   
   /* Multiple Club Logos */
   .match-trends .trend-right .trend-club-logo:last-child {
     margin-right: 0;
   }
   
   /* Odds Row */
   .match-trends .trend-odds-row {
     margin-top: var(--spacing-sm);
     padding-top: var(--spacing-sm);
     border-top: 1px solid var(--theme-palette-color-8);
   }
   
   /* Odds Link */
   .match-trends .trend-odds-link {
     display: inline-flex;
     align-items: center;
     gap: var(--spacing-xs);
     text-decoration: none;
     color: var(--theme-palette-color-3);
     font-size: var(--font-size-sm);
   }
   
   /* Odds Text */
   .match-trends .trend-odds-text {
     color: var(--theme-palette-color-3);
     font-size: var(--font-size-sm);
   }
   
   /* Bookmaker Logo in Odds */
   .match-trends .trend-odds-link .trend-bookmaker-logo {
     width: 16px;
     height: 16px;
     border-radius: 2px;
     object-fit: contain;
   }
   
   /* Stats Row */
   .match-trends .trend-stats-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: var(--spacing-sm);
     flex-wrap: wrap;
   }
  
  /* New Trend Structure */
  .match-trends .trend-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex-grow: 1;
  }
  
  .match-trends .trend-description-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .match-trends .trend-icon-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
  }
  
  .match-trends .trend-stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
  }
  
  .match-trends .trend-logos-odds {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--theme-palette-color-8);
  }
  
  .match-trends .trend-club-logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .match-trends .trend-odds-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }

  /* Trend Description */
  .match-trends .trend-description {
    font-size: var(--font-size-base);
    color: var(--theme-palette-color-3);
    line-height: 1.5;
    text-align: left;
    flex-grow: 1;
  }
  
  /* H2H Additional Stats (Non-Card Items) */
  .match-trends ul li:not(.trend) {
    font-size: var(--font-size-base);
    color: var(--theme-palette-color-3);
    padding: var(--spacing-sm);
    text-align: center;
    background-color: var(--theme-palette-color-6);
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .match-trends ul {
      grid-template-columns: 1fr;
    }
  
    .match-trends .trend {
      min-height: 200px;
    }
  
    .match-trends h2 {
      font-size: var(--font-size-lg);
    }
  
    .match-trends .trend-icon {
      font-size: 20px;
      width: 36px;
      height: 36px;
    }
  
    .match-trends .trend-name {
      font-size: var(--font-size-base);
    }
  
    .match-trends .trend-percentage {
      font-size: var(--font-size-base);
    }
  
    .match-trends .trend-description {
      font-size: var(--font-size-sm);
    }
    
    .match-trends .trend-stats-section {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--spacing-xs);
    }
    
    .match-trends .trend-logos-odds {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--spacing-xs);
    }
    
    .match-trends .trend-club-logo-section {
      order: 2;
    }
    
    .match-trends .trend-odds-section {
      order: 1;
    }
  }

  /* Grouped Trends by Betting Market Styles */
  .match-trends-grouped {
    margin: var(--spacing-md) 0;
  }

  .match-trends-grouped .trends-intro {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--theme-bg-color-lighten);
    border-left: 3px solid var(--theme-link-color);
    font-size: 0.95em;
    color: var(--theme-text-color-muted);
  }

  .trends-betting-group {
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--theme-palette-color-8);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--theme-bg-color);
    padding: 16px;
    border-radius: 8px;
    background: var(--theme-palette-color-5);
  }

  .trends-group-title {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--theme-link-color) 0%, var(--theme-link-color-hover) 100%);
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .trends-bookmaker-link {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    transition: opacity 0.2s;
  }
  
  .trends-bookmaker-link:hover {
    opacity: 0.8;
  }
  
  .trends-bookmaker-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 3px;
    background: white;
    padding: 2px;
  }

  .trends-group-description {
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0;
    background-color: var(--theme-bg-color-lighten);
    border-bottom: 1px solid var(--theme-palette-color-8);
    font-size: 0.9em;
    color: var(--theme-text-color-muted);
    font-style: italic;
  }

  .trends-group-insights {
    background: linear-gradient(135deg, var(--theme-palette-color-7) 0%, var(--theme-palette-color-6) 100%);
    border-left: 3px solid var(--theme-link-color);
    margin-bottom: 10px;
    font-style: normal;
    line-height: 1.6;
  }

  .trends-group-insights strong {
    color: var(--theme-link-color);
  }

  .trends-subsection {
    padding: var(--spacing-md);
  }

  .trends-subsection ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Team Subsection Styles */
  .trends-team-subsection {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--theme-bg-color-lighten);
    border-radius: 8px;
    border: 1px solid var(--theme-palette-color-8);
    border-left: 3px solid var(--theme-palette-color-8);
  }

  .trends-team-subsection:last-child {
    margin-bottom: 0;
  }

  .trends-team-subsection.trends-team-home {
    border-left-color: var(--theme-link-color);
  }

  .trends-team-subsection.trends-team-away {
    border-left-color: #ff5722;
  }

  .trends-team-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--theme-text-color);
    margin: 0 0 var(--spacing-sm) 0;
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--theme-palette-color-8);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .trends-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .trends-team-name {
    font-weight: 700;
  }

  .trends-team-count {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--theme-text-color-muted);
    margin-left: auto;
  }

  .trends-team-subsection ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Strengths/Weaknesses Styles */
  .trends-strengths-section,
  .trends-weaknesses-section {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
  }

  .trends-strengths-section {
    background: linear-gradient(135deg, var(--theme-palette-color-5) 0%, var(--theme-palette-color-6) 100%);
    border-left: 4px solid #4caf50;
  }

  .trends-weaknesses-section {
    background: var(--theme-palette-color-6);
    border-left: 4px solid #f44336;
  }

  .trends-strengths-title,
  .trends-weaknesses-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--theme-text-color);
    margin: 0 0 var(--spacing-sm) 0;
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .trends-section-icon {
    font-size: 1.2em;
    flex-shrink: 0;
  }

  .trends-section-label {
    font-weight: 700;
  }

  .trends-historical-insights {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--theme-palette-color-6) 0%, var(--theme-palette-color-7) 100%);
    border-left: 4px solid #5c6bc0;
    border-radius: 8px;
  }

  .historical-insight-item {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--theme-text-color);
    margin-bottom: var(--spacing-xs);
  }

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

  .trends-conclusion {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--theme-palette-color-6) 0%, var(--theme-palette-color-7) 100%);
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--theme-text-color);
  }

  .trends-conclusion-icon {
    font-size: 1.3em;
    margin-right: var(--spacing-xs);
  }

  .trends-strengths-section ul,
  .trends-weaknesses-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Trend Item Styles */
  .trend {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--theme-palette-color-8);
  }

  .trend:last-child {
    border-bottom: none;
  }

  .trend-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: 4px;
  }

  .trend-name {
    font-weight: 600;
    color: var(--theme-text-color);
    font-size: 0.95em;
  }

  .trend-stats {
    color: var(--theme-text-color-muted);
    font-size: 0.85em;
    margin-left: auto;
  }

  .trend-percentage {
    color: var(--theme-link-color);
    font-weight: 700;
    font-size: 0.9em;
  }

  /* Streak Trends - Special Highlighting */
  .trend-streak {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 69, 0, 0.05) 100%);
    border-left: 4px solid #ff8c00;
    padding-left: 12px;
    animation: streakPulse 2s ease-in-out infinite;
  }

  .streak-badge {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 6px;
    animation: streakFlame 1.5s ease-in-out infinite;
  }

  .streak-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6347 100%);
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 69, 0, 0.3);
  }

  @keyframes streakPulse {
    0%, 100% {
      border-left-color: #ff8c00;
      background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 69, 0, 0.05) 100%);
    }
    50% {
      border-left-color: #ff6347;
      background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 69, 0, 0.08) 100%);
    }
  }

  @keyframes streakFlame {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }

  .trend-streak .trend-name {
    font-weight: 700;
    color: #ff6347;
  }

  .trend-streak .trend-percentage {
    color: #ff8c00;
    font-size: 1em;
  }

  .trend-description {
    color: var(--theme-text-color-muted);
    font-size: 0.9em;
    line-height: 1.4;
  }

  /* Trend Badge Styles */
  .trend-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: var(--spacing-xs);
  }

  .trend-badge-h2h {
    background-color: #ff5722;
    color: white;
  }

  .trend-badge-form {
    background-color: #4caf50;
    color: white;
  }
  
  .trend-badge-league {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    font-weight: 600;
  }

  /* Responsive adjustments for grouped trends */
  @media (max-width: 767px) {
    .trends-group-title {
      font-size: 1em;
      padding: var(--spacing-sm);
    }

    .trends-subsection {
      padding: var(--spacing-sm);
    }

    .trends-team-subsection {
      padding: var(--spacing-xs) var(--spacing-sm);
      margin-bottom: var(--spacing-sm);
    }

    .trends-team-title {
      font-size: 0.9em;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    .trends-team-logo {
      width: 20px;
      height: 20px;
    }

    .trends-team-name {
      flex: 1 1 auto;
    }

    .trends-team-count {
      font-size: 0.75em;
      margin-left: 0;
      flex-basis: 100%;
    }

    .trend {
      padding: var(--spacing-xs) 0;
    }

    .trend-name {
      font-size: 0.9em;
    }

    .trend-description {
      font-size: 0.85em;
    }

    .trend-badge {
      font-size: 0.65em;
      padding: 1px 6px;
    }

    .trend-stats,
    .trend-percentage {
      font-size: 0.8em;
    }

    .trends-strengths-section,
    .trends-weaknesses-section {
      padding: var(--spacing-xs) var(--spacing-sm);
      margin-bottom: var(--spacing-sm);
    }

    .trends-strengths-title,
    .trends-weaknesses-title {
      font-size: 0.9em;
      flex-wrap: wrap;
      gap: 6px;
    }

    .trends-section-icon {
      font-size: 1.1em;
    }

    .trends-historical-insights {
      padding: var(--spacing-xs) var(--spacing-sm);
      margin-top: var(--spacing-sm);
    }

    .historical-insight-item {
      font-size: 0.85em;
    }

    .trends-conclusion {
      padding: var(--spacing-sm);
      font-size: 0.9em;
    }

    .trends-conclusion-icon {
      font-size: 1.2em;
    }
  }

/* ============================================
   ACCA Calculator Styles
   ============================================ */

.acca-calculator-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.acca-header {
  text-align: center;
  margin-bottom: 30px;
}

.acca-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
}

.acca-icon {
  width: 32px;
  height: 32px;
  stroke: #fff;
}

.acca-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.acca-bankroll-section,
.acca-add-match-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.acca-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.acca-bankroll-input-wrapper,
.acca-add-match-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.currency-symbol {
  font-size: 1.2rem;
  font-weight: 600;
}

.acca-bankroll-input,
.acca-match-id-input {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.acca-bankroll-input:focus,
.acca-match-id-input:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.acca-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.acca-btn-primary {
  background: #fff;
  color: #667eea;
}

.acca-btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.acca-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.acca-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.acca-btn-text {
  background: transparent;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.acca-btn-text:hover {
  background: rgba(255, 255, 255, 0.1);
}

.acca-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.acca-hint {
  margin: 10px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.acca-legs-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.acca-legs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.acca-legs-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.acca-legs-count {
  font-weight: 400;
  opacity: 0.8;
}

.acca-legs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acca-empty-state {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  opacity: 0.5;
}

.acca-empty-state p {
  margin: 0;
  font-size: 1rem;
}

.acca-leg {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 16px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.acca-leg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.acca-leg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.acca-leg-match-info {
  flex: 1;
}

.acca-leg-match-title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #333;
}

.acca-leg-match-date {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.acca-leg-remove {
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.acca-leg-remove:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.acca-leg-remove svg {
  width: 18px;
  height: 18px;
}

.acca-leg-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acca-leg-tip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acca-leg-label {
  font-weight: 600;
  color: #666;
}

.acca-leg-outcome {
  font-weight: 600;
  color: #667eea;
  font-size: 1.05rem;
}

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

.acca-leg-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acca-leg-stat-label {
  font-size: 0.85rem;
  color: #666;
}

.acca-leg-stat-value {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.acca-probability {
  color: #10b981;
}

.acca-odds {
  color: #667eea;
}

.acca-ev {
  color: #f59e0b;
}

.acca-ev.positive {
  color: #10b981;
}

.acca-summary {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.acca-summary-header {
  margin-bottom: 15px;
}

.acca-summary-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.acca-summary-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acca-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.acca-summary-row:last-child {
  border-bottom: none;
}

.acca-summary-label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kelly-info-icon {
  cursor: help;
  font-size: 0.9rem;
  opacity: 0.7;
}

.acca-summary-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.acca-odds-value {
  color: #ffd700;
  font-size: 1.3rem;
}

.acca-kelly-value {
  color: #10b981;
  font-size: 1.2rem;
}

.acca-profit-value {
  color: #10b981;
  font-size: 1.2rem;
}

.acca-profit-value.positive {
  color: #10b981;
}

.acca-risk-indicator {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.acca-risk-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}

.acca-risk-fill.medium-risk {
  background: #f59e0b;
}

.acca-risk-fill.high-risk {
  background: #ef4444;
}

.acca-risk-text {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

/* Match Cards Styles */
.acca-matches-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.acca-matches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.acca-matches-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.acca-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.acca-filter-select {
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.acca-filter-select:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.acca-loading {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}

.acca-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.acca-matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.acca-match-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.acca-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.acca-match-card-added {
  opacity: 0.7;
  border: 2px solid #10b981;
}

.acca-match-card-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.acca-match-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.acca-match-card-home,
.acca-match-card-away {
  flex: 1;
  text-align: center;
}

.acca-match-card-vs {
  margin: 0 10px;
  color: #666;
  font-size: 0.9rem;
}

.acca-match-card-date {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.acca-match-card-date-text {
  font-weight: 500;
}

.acca-match-card-time {
  color: #999;
}

.acca-match-card-competition {
  text-align: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 500;
}

.acca-match-card-competition-name {
  display: block;
}

.acca-match-card-tip {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.acca-match-card-tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.acca-match-card-tip-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.acca-match-card-tip-badge {
  background: #10b981;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.acca-match-card-tip-outcome {
  font-weight: 600;
  font-size: 1rem;
  color: #10b981;
}

.acca-match-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.acca-match-card-stat {
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

.acca-match-card-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
}

.acca-match-card-stat-value {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.acca-match-probability {
  color: #10b981;
}

.acca-match-odds {
  color: #667eea;
}

.acca-match-ev {
  color: #f59e0b;
}

.acca-match-card-add-btn {
  width: 100%;
  justify-content: center;
}

.acca-match-card-add-btn:disabled {
  background: #10b981;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.8;
}


.acca-premium-notice {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.premium-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.acca-premium-notice p {
  margin: 0;
  flex: 1;
}

.premium-link {
  color: #ffd700;
  font-weight: 600;
  text-decoration: underline;
}

.premium-link:hover {
  color: #fff;
}

.acca-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .acca-calculator-container {
    padding: 20px;
    margin: 20px 10px;
  }

  .acca-title {
    font-size: 1.5rem;
  }

  .acca-bankroll-input-wrapper,
  .acca-add-match-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .acca-btn {
    width: 100%;
    justify-content: center;
  }

  .acca-leg-stats {
    grid-template-columns: 1fr;
  }

  .acca-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .acca-matches-header {
    flex-direction: column;
    align-items: stretch;
  }

  .acca-filters {
    flex-direction: column;
  }

  .acca-filter-select {
    width: 100%;
  }

  .acca-matches-list {
    grid-template-columns: 1fr;
  }

  .acca-match-card-stats {
    grid-template-columns: 1fr;
  }
}