/* ===== GLOBAL ===== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Roboto', sans-serif; 
  transition: all 0.3s ease; /* smooth hover & changes */
}

body { background: #021225; color: #fff; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: #020e1f;
  position: fixed;
  z-index: 1000;
  transition: background 0.3s ease;
}
header.scrolled { background: #010a17; } /* optional darken on scroll */

.logo a{padding: 10px; border-radius: 40px; background-color: #00ff8f; color: #000; font-family: fantasy; font-weight: 900; font-size: 24px; transition: transform 0.3s; }
.logo span { color: #fff; }

nav { display: flex; gap: 15px; }
nav a { font-size: 16px; color: #fff; transition: color 0.3s; }
nav a:hover { color: #ffffff; }
.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}
.nav-right input {
  padding: 6px 10px;
  background:  rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  padding: 10px;
  color: #fff;
  width: 200px;
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
}
.nav-right input:focus { outline: 2px solid #00ff8f; }

.signin {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.signin:hover { background: #00ff8f; color: #000; }

.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}
.menu-btn:hover { transform: scale(1.2); }

/* MOBILE ICONS */
.mobile-icon { 
  display: none; 
  font-size: 20px; 
  cursor: pointer; 
  transition: transform 0.3s; 
}
.mobile-icon:hover { transform: scale(1.2); }

/* SIDEBAR */
.sidebar {
  padding-top: 100px;
  padding: 20px;
  position: fixed;
  top: 0; left: -260px;
  width: 260px;
  height: 100vh;
  background: #020e1f;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.4s ease; /* smooth slide */
  z-index: 999;
}
.sidebar a {margin-bottom: 10px; gap: 20px; font-size: 18px; color: #fff; transition: color 0.6s; }
.sidebar a:hover { color: #00ff8f; }
.sidebar.active { left: 0; }

/* SEARCH & USER POPUPS */
.search-popup, .user-popup {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #020e1f;
  padding: 10px;
  border-radius: 10px;
  z-index: 1001;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.search-popup input {
  padding: 5px 10px;
  border-radius: 20px;
  border: none;
  width: 100%;
  background-color: #021225;
  color: #fff;
  outline: none;
}
.search-popup.show, .user-popup.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  margin: 20px;
  border-radius: 20px;
  position: relative;
  height: 55vh; /* updated hero height */
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease, opacity 0.6s ease;
}

.overlay {
  position: absolute;
  inset: 0; 
  background: linear-gradient(to right, #0f4c0a 20%, transparent 100%);
}

/* HERO CONTENT */
.hero-content { 
  margin: 0 auto; 
  position: relative; 
  max-width: 500px; 
  padding: 40px 20px; /* reduced padding for proportional layout */
  top: 10%; /* position content nicely */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.hero-content.show {
  opacity: 1;
  transform: translateY(0);
}

.badge { 
  background: rgba(255,255,255,0.15); 
  padding: 6px 14px; 
  border-radius: 20px; 
  font-size: 12px; 
  display: inline-block; 
  margin-bottom: 10px; 
  opacity: 0; 
  transition: opacity 0.6s ease; 
}
.badge.show { opacity: 1; }

.hero-content h1 {
  font-size: 32px; /* smaller for proportional layout */
  margin-bottom: 10px;
  transition: all 0.6s ease;
}
.hero-content p { 
  line-height: 1.4; 
  font-size: 14px; /* adjusted for proportional look */
  opacity: 0.9; 
  transition: all 0.6s ease;
}

.dots { margin-top: 20px; }
.dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #777;
  display: inline-block;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.dots span.active { background: #fff; }

.hero-nav { position: absolute; bottom: 20px; right: 20px; }
.hero-nav button { 
  background: rgba(0,0,0,0.6); 
  color: #fff; 
  border: none; 
  font-size: 20px; 
  padding: 6px 12px; 
  cursor: pointer; 
  transition: background 0.3s, transform 0.3s;
}
.hero-nav button:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); }

/* ===== LIVE SCHEDULE ===== */
.schedule { padding: 30px 20px; font-size: 16px;  } 
 
.time { 
  position: absolute; top: 10px; left: 10px; 
  background: #fff; color: #000; 
  padding: 4px 8px; border-radius: 12px; font-size: 12px; 
}

.red { background: #e53b2c; }
.green { background: #0f8f7a; }
.purple { background: #6a1634; }
.teal { background: #18b4a7; }
.blue { background: #0aa3c2; }
.black { border: 1px solid #fff; padding: 70px;}
.grey { background: #888; }

/* ===== ANIMATIONS ===== */
.hero-content.show { opacity: 1; transform: translateY(0); }
.badge.show { opacity: 1; transform: translateY(0); } 
.hero.fade { opacity: 0; transition: opacity 0.8s ease; }
.hero.fade.show { opacity: 1; }
/* ===== PRELOADER ===== */

/* ===== FOOTER ===== */
footer {
  background: #020e1f;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.footer-logo img {
  width: 120px;
  filter: brightness(0) invert(1);
}

.footer-links-container {
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.footer-links-container h4 {
  margin-bottom: 10px;
  color: #00ff8f;
  font-size: 16px;
}

.footer-menu a,
.footer-services a,
.footer-social a {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover,
.footer-services a:hover,
.footer-social a:hover {
  color: #00ff8f;
}

.footer-social a {
  display: inline-block;
  margin: 0 6px;
  font-size: 18px;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: #aaa;
}

.footer-bottom a {
  color: #00ff8f;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover { color: #fff; }

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #00ff8f;
  color: #021225;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 143, 0.4);
}

.login-btn{
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #00ff8f;
  color: #000;
  font-weight: 700;
}
.login-btn a{
  color: #000;
  font-weight: 700;
}
.login-btn:hover { background: #ffffff; padding: 11px 15px; color: #000; transition: all 0.9s ease; }

#preloader {
  position: fixed;
  inset: 0;
  background: #021225;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#preloader p {
  color: #00ff8f;
  font-weight: 700;
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
}

/* FOOTBALL DOTS */
.football {
  position: relative;
  width: 100px;
  height: 100px;
}
/* ===== LIVE MATCH CARD (FIFA+ STYLE) ===== */
.live-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}
.live-cards::-webkit-scrollbar {
  display: none;
}
.live-cad{
  margin: 20px;
}
.live-card {
  width: 320px;
  height: 150px;          /* 🔥 shorter height */
  border-radius: 16px;
  padding: 20px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.live-card {
  display: flex; /* or your existing flex style */
  flex-direction: column;
  text-decoration: none; /* remove underline */
  color: inherit; /* keep text color */
  cursor: pointer;
}

.live-card {
  position: relative;
  overflow: hidden;
}

.live-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.6);
}

/* ===== LIVE BADGE ===== */
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ff2c2c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ===== TEAMS ROW ===== */
.live-card .teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.live-card .teams img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}

/* League logo slightly smaller */
.live-card .teams img:nth-child(2) {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

/* ===== MATCH INFO ===== */
.live-card .info {
  text-align: center;
  margin-top: 10px;
}

.live-card .info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-card .info p {
  font-size: 12px;
  opacity: 0.85;
}

.live-card .info small {
  font-size: 11px;
  opacity: 0.6;
}

.dot {
  width: 15px;
  height: 15px;
  background: #00ff8f;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bounce 1s infinite alternate;
} 
/* Arrange dots to look like a football (hex/pent pattern) */
.dot1 { transform: translate(-50%, -50%) translate(-30px, -20px); animation-delay: 0s; }
.dot2 { transform: translate(-50%, -50%) translate(0px, -25px); animation-delay: 0.1s; }
.dot3 { transform: translate(-50%, -50%) translate(30px, -20px); animation-delay: 0.2s; }
.dot4 { transform: translate(-50%, -50%) translate(-20px, 0px); animation-delay: 0.3s; }
.dot5 { transform: translate(-50%, -50%) translate(20px, 0px); animation-delay: 0.4s; }
.dot6 { transform: translate(-50%, -50%) translate(-30px, 20px); animation-delay: 0.5s; }
.dot7 { transform: translate(-50%, -50%) translate(0px, 25px); animation-delay: 0.6s; }
.dot8 { transform: translate(-50%, -50%) translate(30px, 20px); animation-delay: 0.7s; }
.dot9 { transform: translate(-50%, -50%) translate(0px, 0px); animation-delay: 0.8s; }

@keyframes bounce {
  0% { transform: translate(-50%, -50%) translate(var(--x,0), var(--y,0)) scale(1); }
  50% { transform: translate(-50%, -50%) translate(var(--x,0), var(--y,0)) scale(1.3); }
  100% { transform: translate(-50%, -50%) translate(var(--x,0), var(--y,0)) scale(1); }
}

/* Responsive */
@media (max-width:768px){
  .football { width: 70px; height: 70px; }
  .dot { width: 10px; height: 10px; }
  #preloader p { font-size: 14px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
  nav { display: none; }
  .menu-btn { display: block; }
  .hero { height: 55vh; } 
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 13px; }
  .nav-right input, .signin { display: none; }
  .mobile-icon { display: block; } 
}
/* Responsive */
@media (max-width: 768px) {
  .footer-links-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-social a { font-size: 20px; }
  .footer-logo img { width: 100px; }
}
.orange { background: #ff7a18; }

.hidden-card {
  display: none;
}

.see-more-card {
  width: 320px;
  height: 150px; 
  border: 2px dashed #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all .3s ease;
}

.see-more-card:hover {
  background: #fff;
  color: #000;
}
.blue {
  background: linear-gradient(135deg, #1c2b6f 0%, #3f51b5 100%);
}
.red {
  background: linear-gradient(135deg, #b30000 0%, #ff1744 100%);
}

.orange {
  background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%);
}
.purple {
  background: linear-gradient(135deg, #311b92 0%, #5e35b1 100%);
}
.deep-blue {
  background: linear-gradient(135deg, #0d1b4c 0%, #283593 100%);
}
.crimson {
  background: linear-gradient(135deg, #8b0000 0%, #e6003a 100%);
}
.live-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  pointer-events: none;
}
.live-card {
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.live-card .live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0b1224;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-card .live-badge .dot {
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}
.live-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.live-card:hover {
  transform: perspective(800px) rotateX(6deg) translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
/*==== TABLET ===== */
@media (max-width: 1024px) {
  .live-card {
    width: 280px;
    height: 135px;
    border-radius: 14px;
    padding: 0px;
  }
}

/* ===== MOBILE (LIKE YOUR SCREENSHOT) ===== */
@media (max-width: 768px) {
  .live-card {
    width: 240px;
    height: 120px;        /* ✅ THIS matches image */
    border-radius: 12px;
    padding: 0px;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  .live-card {
    width: 220px;
    height: 110px;
    border-radius: 10px;
    padding: 0px;
  }
}
.match-header {
  background:#111;
  color:#fff;
  padding:20px;
  text-align:center;
}

.scoreboard {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.score h1 {
  font-size:42px;
}

.match-tabs {
  display:flex;
  gap:15px;
  padding:10px;
  background:#000;
}

.match-tabs button {
  background:none;
  border:none;
  color:#aaa;
}

.match-tabs .active {
  color:#ff6600;
}

.match-events {
  padding:20px;
}

.event-row {
  display:flex;
  justify-content:space-between;
  margin-bottom:15px;
}

.event-row.home {
  text-align:left;
}

.event-row.away {
  text-align:right;
}

.card.yellow {
  width:10px;
  height:14px;
  background:gold;
  display:inline-block;
}

.card.red {
  width:10px;
  height:14px;
  background:red;
  display:inline-block;
}
