/* ========================================
   HOMEPAGE STYLES - AfrikaSport365
   Modern, Responsive, Professional Design
   ======================================== */

/* ===== HERO SECTION ===== */
.homepage-hero {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #dc2626 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(124, 58, 237, 0.7) 50%, rgba(220, 38, 38, 0.75) 100%);
  z-index: -4;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-featured-story {
  position: relative;
  backdrop-filter: blur(0px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 3rem;
  color:white;
  transition: all 0.3s;
  overflow: hidden;
}

.hero-featured-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.30) 0%, rgba(124, 58, 237, 0.3) 50%, rgba(220, 38, 38, 0.3) 100%);
  z-index: -1;
  border-radius: 16px;
}

.hero-featured-story > * {
  position: relative;
  z-index: 1;
}

.hero-featured-story:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  color: #1e3a8a;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: #f3f4f6;
}

/* ===== BREAKING NEWS BAR ===== */
.breaking-news-bar {
  background: #ef4444;
  color: white;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.breaking-news-bar .container {
  display: flex;
  align-items: center;
  position: relative;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding-right: 1.5rem;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  margin-right: 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  background: #ef4444;
}

.breaking-ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 120px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5px, black calc(100% - 5px), transparent 100%);
}

.breaking-ticker {
  display: inline-flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

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

.ticker-item {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.875rem;
  color: white;
  font-weight: 500;
}

/* ===== SECTION COMMON STYLES ===== */
.section-wrapper {
  padding: 4rem 0;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 2px;
}

.section-view-all {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.section-view-all:hover {
  color: #1e40af;
}

/* ===== NEWS CARDS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-card-large {
  grid-column: span 2;
}

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

.news-card-large .news-image {
  height: 350px;
}

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

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

.news-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-large .news-title {
  font-size: 1.75rem;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

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

.news-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ===== CATEGORY BLOCKS ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.category-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-card:hover .category-bg img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(124, 58, 237, 0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.3s;
}

.category-card:hover .category-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.category-count {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ===== AFCON SPOTLIGHT ===== */
.afcon-spotlight {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  border-radius: 16px;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.afcon-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.afcon-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.afcon-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.afcon-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afcon-title {
  font-size: 2rem;
  font-weight: 900;
}

.afcon-subtitle {
  opacity: 0.9;
}

.afcon-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.afcon-mini-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.afcon-mini-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.afcon-mini-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.mini-standings {
  font-size: 0.875rem;
}

.mini-standings-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-standings-row:last-child {
  border-bottom: none;
}

.afcon-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  color: #1e3a8a;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 2rem;
  transition: all 0.3s;
}

.afcon-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== ATHLETES SECTION ===== */
.athletes-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.athlete-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.athlete-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.athlete-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

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

.athlete-sport-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.athlete-info {
  padding: 1.5rem;
}

.athlete-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.athlete-title {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.athlete-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

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

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #2563eb;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
}

/* ===== MULTIMEDIA SECTION ===== */
.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.multimedia-item {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.multimedia-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.multimedia-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.multimedia-item:hover .multimedia-thumb {
  transform: scale(1.05);
}

.multimedia-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

.multimedia-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.multimedia-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  opacity: 0;
  transition: opacity 0.3s;
}

.multimedia-item:hover .multimedia-play-icon {
  opacity: 1;
}

.multimedia-caption {
  font-weight: 700;
  font-size: 1rem;
}

/* ===== AD BANNERS ===== */
.ad-banner {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: #6b7280;
  margin: 3rem 0;
}

.ad-banner-horizontal {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-sidebar {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder {
  font-weight: 600;
  font-size: 1.125rem;
}

/* ===== ABOUT SECTION ===== */
.about-block {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border-radius: 16px;
  padding: 4rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.about-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.about-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

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

.about-stat-value {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .news-card-large {
    grid-column: span 1;
  }
  
  .afcon-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .breaking-label {
    font-size: 0.75rem;
    padding-right: 1rem;
    margin-right: 1rem;
  }
  
  .breaking-ticker {
    animation: scroll 30s linear infinite;
  }
  
  .ticker-item {
    font-size: 0.8125rem;
  }
  
  .breaking-ticker-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black px, black calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5px, black calc(100% - 5px), transparent 100%);
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-featured-story {
    padding: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .news-grid,
  .categories-grid,
  .athletes-slider,
  .multimedia-grid {
    grid-template-columns: 1fr;
  }
  
  .afcon-spotlight {
    padding: 2rem;
  }
  
  .afcon-title {
    font-size: 1.5rem;
  }
  
  .about-block {
    padding: 2rem;
  }
  
  .about-title {
    font-size: 1.75rem;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .ad-banner-sidebar {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .breaking-news-bar {
    padding: 0.75rem 0;
  }
  
  .breaking-label {
    font-size: 0.7rem;
    padding-right: 0.75rem;
    margin-right: 0.75rem;
    gap: 0.375rem;
  }
  
  .breaking-label svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .breaking-ticker {
    animation: scroll 25s linear infinite;
  }
  
  .ticker-item {
    font-size: 0.75rem;
  }
  
  .breaking-ticker-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 60px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 60px), transparent 100%);
  }

  .homepage-hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-featured-story {
    padding: 1.5rem;
  }
  
  .section-wrapper {
    padding: 3rem 0;
  }
  
  .news-image {
    height: 180px;
  }
  
  .category-card {
    height: 150px;
  }
  
  .athlete-image {
    height: 250px;
  }
  
  .multimedia-item {
    height: 200px;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .afcon-header {
    flex-direction: column;
    text-align: center;
  }
  
  .about-stat-value {
    font-size: 2rem;
  }
}
