/* The Irish Tipper - Cheltenham Festival Styles */

/* Site Header Bar */
.site-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  gap: 2rem;
}

.site-brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.shamrock-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.site-brand {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.site-brand::before {
  content: none;
}

.site-tagline {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .site-header-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .site-brand-container {
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
  }
  
  .shamrock-icon {
    font-size: 1.5rem;
  }
  
  .site-brand {
    font-size: 1.15rem;
  }
  
  .site-tagline {
    font-size: 0.65rem;
  }
  
  .main-nav {
    width: 100% !important;
    order: 3;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-direction: row !important;
  }
  
  .nav-item {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.6rem 0.5rem;
    text-align: center;
    white-space: nowrap;
  }
}

/* Navigation Menu */
.main-nav {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.25rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.nav-item {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Manrope', sans-serif;
  border-bottom: 2px solid transparent;
}

.nav-item:hover {
  color: #10b981;
  border-bottom-color: #10b981;
}

.nav-item.active {
  color: #10b981;
  border-bottom-color: #10b981;
  background: transparent;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Conor's Lucky Picks Section */
.conors-picks-section {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .conors-picks-section {
    padding: 1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .section-header-with-logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .section-header-text {
    align-items: center;
  }
  
  .section-title {
    text-align: center;
  }
  
  .section-subtitle {
    text-align: center;
  }
  
  .odds-update-time {
    text-align: center !important;
  }
  
  .conors-logo {
    order: -1;
    margin: 0 auto 0.5rem auto;
    display: block;
  }
  
  .conors-logo img {
    display: block;
    margin: 0 auto;
  }
}

.section-header-with-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-header-text {
  flex: 1;
}

.conors-picks-section .section-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.section-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.conors-logo {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conors-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.jockey-silk {
  display: flex;
  align-items: center;
  justify-content: center;
}

.conors-logo.jockey-silk {
  width: 36px;
  height: 40px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
  border-radius: 4px 4px 0 0;
}

.jockey-silk::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8px;
  background: inherit;
  border-radius: 0 0 6px 6px;
}

.jockey-silk::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px 4px 0 0;
}

/* News Ticker */
.news-ticker-container {
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .news-ticker-container {
    border-radius: 0;
    margin-bottom: 1rem;
  }
  
  .ticker-label {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }
  
  .ticker-content {
    font-size: 0.75rem;
  }
}

.ticker-label {
  background: #10b981;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 0.75rem 0;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-ticker 120s linear infinite;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-item {
  margin: 0 2rem;
}

.ticker-item strong {
  color: #10b981;
  margin-right: 0.5rem;
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Live Market Sentiment Section */
.market-sentiment-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .market-sentiment-section {
    padding: 1rem;
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    overflow-x: hidden;
  }
  
  .sentiment-content {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .market-item,
  .mover-item {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

.sentiment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.sentiment-header .section-title {
  color: #fff;
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 1.75rem;
  font-weight: 800;
}

.sentiment-header .section-subtitle {
  color: #94a3b8;
  flex: 1;
  min-width: 200px;
}

.live-indicator {
  background: #dc2626;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.sentiment-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .sentiment-card {
    padding: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .sentiment-header {
    gap: 0.5rem;
  }
  
  .sentiment-header .section-title {
    font-size: 1.25rem;
  }
  
  .sentiment-header .section-subtitle {
    font-size: 0.8rem;
  }
}

.card-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}

/* Live Markets List */
.live-markets-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.market-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

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

.market-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.market-time {
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.9rem;
}

.market-race {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.market-info {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.market-track {
  color: #94a3b8;
}

.market-note {
  color: #10b981;
  font-weight: 600;
}

/* Market News List */
.market-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid #10b981;
}

.news-time {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-right: 0.75rem;
  text-transform: uppercase;
}

.news-headline {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* News Section */
.news-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-header-standalone {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-header-standalone .section-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-article {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border-top: 4px solid #10b981;
  transition: all 0.3s ease;
}

.news-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.article-category {
  background: #10b981;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-time {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.article-content {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.article-read-more {
  background: transparent;
  border: 2px solid #10b981;
  color: #10b981;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Manrope', sans-serif;
}

.article-read-more:hover {
  background: #10b981;
  color: #fff;
}

/* Market Sentiment Content */
.sentiment-content {
  display: grid;
  gap: 1.5rem;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #10b981;
  font-family: "Baloo 2", cursive;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overview-summary {
  padding: 1rem 0;
}

.overview-summary p {
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.overview-summary strong {
  color: #10b981;
}

.market-movers {
  display: grid;
  gap: 1rem;
}

.mover-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.mover-item.in {
  border-left-color: #10b981;
}

.mover-item.out {
  border-left-color: #ef4444;
}

.mover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mover-horse {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.mover-arrow {
  font-size: 1.25rem;
}

.mover-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.mover-race {
  color: #94a3b8;
}

.mover-odds {
  color: #10b981;
  font-weight: 700;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header-with-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .site-brand {
    font-size: 2rem;
  }
  
  .ticker-label {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }
  
  .ticker-content {
    font-size: 0.85rem;
  }
}
