/* CFB News Hub Styles - Following site design system */

/* Main Container */
.cfb-news-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px;
  color: #f5f5f5;
}

/* Header Section */
.cfb-news-header {
  text-align: center;
  margin-bottom: 40px;
}

.cfb-news-header h1 {
  color: #FFD700;
  font-size: 2.5em;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cfb-news-header p {
  color: #a0aec0;
  font-size: 1.2em;
  margin-bottom: 0;
}

/* News Tabs */
.news-tabs {
  margin-bottom: 30px;
  border-bottom: 2px solid #2d3748;
}

.tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #1a1a2f;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.tab-button {
  background: #232345;
  color: #a0aec0;
  border: none;
  padding: 15px 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid #2d3748;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
  justify-content: center;
}

.tab-button:last-child {
  border-right: none;
}

.tab-button:hover {
  background: #2d2d5a;
  color: #FFD700;
}

.tab-button.active {
  background: #FFD700;
  color: #000;
  position: relative;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #FFD700;
}

.tab-button i {
  font-size: 1.1em;
}

/* News Filters */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #1a1a2f;
  border-radius: 8px;
  align-items: end;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-section label {
  color: #FFD700;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  background: #232345;
  color: #f5f5f5;
  border: 2px solid #2d3748;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9em;
  min-width: 150px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: #FFD700;
  outline: none;
}

.clear-filters-btn {
  background: #e53e3e;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-filters-btn:hover {
  background: #c53030;
  transform: translateY(-1px);
}

/* Tab Content */
.tab-content-container {
  min-height: 600px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2d3748;
}

/* News Controls */
.news-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.time-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  background: #232345;
  color: #f5f5f5;
  border: 1px solid #FFD700;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9em;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.filter-select:hover {
  background: #2a2a4a;
  border-color: #FFE55C;
}

.filter-select:focus {
  border-color: #FFE55C;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* Data source attribution */
.data-source {
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(255, 215, 0, 0.1);
  border-left: 3px solid #FFD700;
  border-radius: 4px;
}

.data-source small {
  color: #bbb;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.data-source i {
  color: #FFD700;
}

.section-header h2 {
  color: #FFD700;
  font-size: 1.8em;
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.refresh-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0aec0;
  font-size: 0.9em;
}

.refresh-indicator i {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.refresh-indicator i:hover {
  transform: rotate(180deg);
  color: #FFD700;
}

/* Trending Banner */
.trending-banner {
  background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
  color: #000;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  overflow: hidden;
}

.trending-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trending-label {
  font-weight: bold;
  font-size: 1.1em;
  white-space: nowrap;
}

.trending-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 5px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trending-scroll::-webkit-scrollbar {
  display: none;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* News Cards */
.news-card {
  background: #232345;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #FFD700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.news-card.featured {
  border-left: 4px solid #FFD700;
}

.news-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-badge.breaking {
  background: #e53e3e;
  color: #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.news-content {
  padding: 20px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85em;
}

.news-source {
  color: #FFD700;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-time {
  color: #a0aec0;
}

.news-title {
  margin-bottom: 12px;
}

.news-title a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: #FFD700;
}

.news-summary {
  color: #cbd5e0;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.news-tag {
  background: #2d3748;
  color: #a0aec0;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.news-tag.team-tag {
  background: #805ad5;
  color: #fff;
}

.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #2d3748;
}

.share-btn {
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 1.1em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.share-btn:hover {
  color: #FFD700;
}

.view-count {
  color: #a0aec0;
  font-size: 0.85em;
}

/* Load More Button */
.load-more-section {
  text-align: center;
  margin-top: 30px;
}

.load-more-btn {
  background: #FFD700;
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Recruiting Specific Styles */
.recruiting-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: #FFD700;
  font-family: 'Bebas Neue', sans-serif;
}

.stat-label {
  color: #a0aec0;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recruiting-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.highlight-section {
  background: #1a1a2f;
  padding: 20px;
  border-radius: 8px;
}

.highlight-section h3 {
  color: #FFD700;
  margin-bottom: 15px;
  font-size: 1.2em;
}

/* Poll Styles */
.poll-selector {
  display: flex;
  gap: 10px;
}

.poll-tab {
  background: #232345;
  color: #a0aec0;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.poll-tab:hover {
  background: #2d2d5a;
}

.poll-tab.active {
  background: #FFD700;
  color: #000;
}

.polls-container {
  background: #1a1a2f;
  border-radius: 8px;
  padding: 25px;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2d3748;
}

.poll-header h3 {
  color: #FFD700;
  margin: 0;
  font-size: 1.3em;
}

.poll-date {
  color: #a0aec0;
  font-size: 0.9em;
}

.poll-content {
  display: none;
}

.poll-content.active {
  display: block;
}

.poll-rankings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Modern Ranking Cards */
.ranking-item.modern-card {
  display: block !important;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ranking-item.modern-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.ranking-item.modern-card:active {
  transform: translateY(-2px) !important;
}

/* Mobile responsiveness for modern cards */
@media (max-width: 768px) {
  .ranking-item.modern-card {
    margin-bottom: 8px !important;
    padding: 12px !important;
  }
  
  .ranking-item.modern-card .rank-badge {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
  
  .ranking-item.modern-card .team-name {
    font-size: 16px !important;
  }
  
  .ranking-item.modern-card .team-content {
    margin-right: 24px !important;
  }
}

/* Legacy ranking items (fallback) */
.ranking-item:not(.modern-card) {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #232345;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ranking-item:not(.modern-card):hover {
  background: #2d2d5a;
  transform: translateX(5px);
}

.rank-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  min-width: 40px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
}

.team-info {
  flex: 1;
}

.team-name {
  font-weight: bold;
  color: #f5f5f5;
  font-size: 1.1em;
}

.team-record {
  color: #a0aec0;
  font-size: 0.9em;
}

.poll-stats {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 5px;
}

.points {
  color: #FFD700;
  font-weight: 600;
}

.movement {
  font-size: 0.8em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
}

.movement.up {
  color: #48bb78;
  background: rgba(72, 187, 120, 0.2);
}

.movement.down {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.2);
}

.movement.same {
  color: #a0aec0;
  background: rgba(160, 174, 192, 0.2);
}

/* Social Media Styles */
.social-filters {
  display: flex;
  gap: 10px;
}

.social-filter {
  background: #232345;
  color: #a0aec0;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.social-filter:hover {
  background: #2d2d5a;
}

.social-filter.active {
  background: #FFD700;
  color: #000;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.social-post {
  background: #232345;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.social-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-post[data-platform="twitter"] {
  border-left-color: #1da1f2;
}

.social-post[data-platform="instagram"] {
  border-left-color: #e4405f;
}

.social-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.author-info strong {
  color: #FFD700;
  display: block;
}

.display-name {
  color: #a0aec0;
  font-size: 0.9em;
}

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 5px;
}

.platform-badge {
  font-size: 0.8em;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: bold;
}

.platform-badge.twitter {
  background: #1da1f2;
  color: #fff;
}

.platform-badge.instagram {
  background: #e4405f;
  color: #fff;
}

.post-time {
  color: #a0aec0;
  font-size: 0.8em;
}

.social-content p {
  color: #cbd5e0;
  line-height: 1.5;
  margin-bottom: 15px;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.hashtag {
  color: #1da1f2;
  font-size: 0.9em;
  font-weight: 500;
}

.social-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid #2d3748;
}

.social-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a0aec0;
  font-size: 0.9em;
}

.social-actions {
  text-align: right;
}

.view-original {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.view-original:hover {
  color: #e6c200;
}

/* Injury Updates Styles */
.injury-legend {
  display: flex;
  gap: 20px;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #a0aec0;
}

.injury-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.injury-status.out {
  background: #e53e3e;
}

.injury-status.questionable {
  background: #ed8936;
}

.injury-status.probable {
  background: #48bb78;
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 47, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
  color: #f5f5f5;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 215, 0, 0.2);
  border-top: 5px solid #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cfb-news-container {
    padding: 15px;
  }
  
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .recruiting-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cfb-news-header h1 {
    font-size: 2em;
  }
  
  .tabs-container {
    flex-direction: column;
  }
  
  .tab-button {
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid #2d3748;
  }
  
  .tab-button:last-child {
    border-bottom: none;
  }
  
  .news-filters {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-section {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
  .section-header {
    flex-direction: column;
    align-items: start;
    gap: 15px;
  }
  
  .poll-selector,
  .social-filters {
    flex-wrap: wrap;
  }
  
  .recruiting-stats {
    justify-content: space-around;
    gap: 20px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .cfb-news-container {
    padding: 10px;
  }
  
  .cfb-news-header h1 {
    font-size: 1.8em;
  }
  
  .cfb-news-header p {
    font-size: 1em;
  }
  
  .news-card {
    margin-bottom: 20px;
  }
  
  .news-content {
    padding: 15px;
  }
  
  .polls-container {
    padding: 15px;
  }
  
  .ranking-item {
    gap: 15px;
    padding: 12px;
  }
  
  .rank-number {
    font-size: 1.3em;
    min-width: 30px;
  }
  
  .social-post {
    padding: 15px;
  }
  
  .recruit-card {
    margin-bottom: 15px;
  }
  
  .recruit-info {
    padding: 15px;
  }
}

/* ===== RECRUITING RANKINGS STYLES ===== */
.recruiting-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #232345;
  border-radius: 8px;
  color: #f5f5f5;
  border-left: 4px solid #FFD700;
}

.recruiting-header h3 {
  font-size: 1.3em;
  margin: 0;
  font-weight: 600;
  color: #FFD700;
}

.recruiting-content-single {
  max-width: 100%;
}

.recruiting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.recruit-card {
  background: linear-gradient(145deg, #232345, #1e1e3f);
  border: 1px solid #2d3748;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  max-width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.recruit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
}

.recruit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(5px);
}

.ranking-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overall-rank {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent-gold);
}

.position-rank {
  font-size: 0.9em;
  color: #a0aec0;
  font-weight: 500;
}

.star-rating {
  font-size: 1.2em;
  color: var(--accent-gold);
}

.star-rating .unrated {
  color: #666;
  font-weight: 500;
}

.recruit-info {
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.recruit-name {
  font-size: 1.25em;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.recruit-details {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.recruit-details .position {
  background: var(--accent-gold);
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
}

.recruit-details .physical {
  color: #a0aec0;
  font-size: 0.9em;
  font-weight: 500;
}

.recruit-location {
  margin-bottom: 15px;
}

.recruit-location .school {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.recruit-location .location {
  color: #a0aec0;
  font-size: 0.9em;
}

.commitment-badge {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 600;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.commitment-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.commitment-badge.committed {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.commitment-badge.committed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  z-index: -1;
  opacity: 0.1;
}

.commitment-badge.uncommitted {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #e2e8f0;
  border: 1px solid rgba(160, 174, 192, 0.3);
}

.commitment-icon {
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.commitment-text {
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive adjustments for recruiting */
@media (max-width: 1200px) {
  .recruiting-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .recruiting-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .recruit-card {
    margin-bottom: 15px;
  }
  
  .recruit-header {
    padding: 12px 15px;
  }
  
  .recruit-info {
    padding: 15px;
  }
  
  .recruit-details {
    gap: 10px;
  }
}
