
/* =========================================
   CRICK BHAI - MAIN APP STYLESHEET
   File: app.css
========================================= */


/* =========================================
   1. ROOT VARIABLES
========================================= */

:root {
  --bg-primary: #080d18;
  --bg-secondary: #0e1626;
  --bg-card: #111c2e;

  --accent: #16c784;
  --accent-hover: #0eaa6c;

  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;

  --border-color: rgba(255,255,255,0.08);

  --header-height: 76px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --transition: 0.25s ease;
}


/* =========================================
   2. RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================
   3. HEADER
========================================= */

.app-header {
  width: 100%;
  height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5.5%;

  background: rgba(8,13,24,0.96);
  border-bottom: 1px solid var(--border-color);

  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-right {
  gap: 24px;
}


/* BRAND */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand strong {
  color: var(--accent);
}

.brand-icon {
  width: 37px;
  height: 37px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--accent);
  color: #06130e;

  font-size: 23px;
  font-weight: 900;

  box-shadow: 0 4px 18px rgba(22,199,132,0.2);
}


/* LIVE INDICATOR */

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.live-dot {
  width: 8px;
  height: 8px;

  display: inline-block;
  flex-shrink: 0;

  background: #ff4545;
  border-radius: 50%;

  box-shadow: 0 0 10px rgba(255,69,69,0.5);

  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}


/* PROFILE BUTTON */

.profile-button {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border-color);
  border-radius: 50%;

  background: var(--bg-card);
  color: white;

  transition: var(--transition);
}

.profile-button:hover {
  background: var(--accent);
  color: #06130e;

  border-color: var(--accent);
  transform: scale(1.06);
}


/* =========================================
   4. MAIN CONTENT
========================================= */

.main-content {
  width: 100%;
  max-width: 1500px;

  margin: auto;
  padding: 48px 5.5% 80px;
}

.hero-section,
.other-matches {
  width: 100%;
}


/* =========================================
   5. SECTION HEADINGS
========================================= */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 25px;
}

.section-eyebrow {
  display: block;

  margin-bottom: 9px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 750;
  letter-spacing: -1px;
}


/* =========================================
   6. FEATURED MATCH
========================================= */

.featured-match {
  width: 100%;
  margin-bottom: 65px;
}

.featured-poster-link {
  display: block;
  width: 100%;
}

.featured-poster {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 7;

  min-height: 320px;
  max-height: 570px;

  overflow: hidden;

  background:
    linear-gradient(135deg, #172d36, #111827);

  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);

  isolation: isolate;
}


/* FEATURED IMAGE */

.featured-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -2;

  transition: transform 0.7s ease;
}

.featured-poster-link:hover .featured-image {
  transform: scale(1.035);
}


/* POSTER OVERLAY */

.poster-overlay {
  position: absolute;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(5,10,19,0.96) 0%,
      rgba(5,10,19,0.78) 32%,
      rgba(5,10,19,0.30) 70%,
      rgba(5,10,19,0.12) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5,10,19,0.65),
      transparent 65%
    );
}


/* FEATURED CONTENT */

.featured-content {
  position: absolute;

  left: 6%;
  bottom: 11%;

  width: 75%;
  max-width: 650px;
}

.match-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 13px;

  margin-bottom: 20px;

  border: 1px solid rgba(255,69,69,0.25);
  border-radius: 5px;

  background: rgba(255,69,69,0.13);

  color: #ff6666;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.match-live-badge .live-dot {
  width: 6px;
  height: 6px;
}

.featured-label {
  display: block;

  margin-bottom: 10px;

  color: #cbd5e1;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.featured-content h2 {
  font-size: clamp(30px, 5vw, 56px);

  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -1.8px;

  margin-bottom: 12px;
}

.featured-content p {
  color: #cbd5e1;

  font-size: 15px;
  margin-bottom: 25px;
}


/* WATCH BUTTON */

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  padding: 13px 21px;

  background: var(--accent);
  color: #06130e;

  border-radius: 7px;

  font-size: 13px;
  font-weight: 800;

  transition: var(--transition);
}

.watch-button:hover {
  background: white;
  transform: translateY(-3px);
}

.watch-button span {
  font-size: 19px;
}


/* =========================================
   7. OTHER MATCHES
========================================= */

.other-matches {
  width: 100%;
}

.match-count {
  color: var(--text-muted);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}


/* MATCH GRID */

.match-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 23px;
}


/* =========================================
   8. MATCH CARD
========================================= */

.match-card {
  display: block;

  min-width: 0;

  overflow: hidden;

  background: var(--bg-card);

  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.match-card:hover {
  transform: translateY(-6px);

  border-color: rgba(22,199,132,0.45);

  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}


/* CARD POSTER */

.match-poster {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #172438;
}

.match-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.match-card:hover .match-image {
  transform: scale(1.06);
}


/* CARD BADGES */

.card-live-badge {
  position: absolute;

  top: 13px;
  left: 13px;

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;

  background: rgba(8,13,24,0.88);

  border-radius: 5px;

  color: #ff6666;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.card-live-badge .live-dot {
  width: 6px;
  height: 6px;
}

.card-number {
  position: absolute;

  right: 13px;
  bottom: 12px;

  color: rgba(255,255,255,0.8);

  font-size: 27px;
  font-weight: 900;
}


/* CARD INFO */

.match-info {
  position: relative;

  padding: 20px;
}

.match-category {
  display: block;

  margin-bottom: 9px;

  color: var(--accent);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.match-info h3 {
  margin-bottom: 7px;

  font-size: 19px;
  font-weight: 750;
}

.match-info p {
  color: var(--text-secondary);

  font-size: 12px;
}

.card-arrow {
  position: absolute;

  right: 20px;
  bottom: 21px;

  color: var(--accent);

  font-size: 22px;

  transition: transform 0.25s ease;
}

.match-card:hover .card-arrow {
  transform: translateX(5px);
}


/* =========================================
   9. NOTIFICATION
========================================= */

.notification {
  position: fixed;

  left: 50%;
  bottom: 30px;

  z-index: 2000;

  width: max-content;
  max-width: calc(100% - 32px);

  padding: 14px 21px;

  background: #172438;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  color: white;

  font-size: 13px;
  line-height: 1.5;

  text-align: center;

  box-shadow: 0 8px 30px rgba(0,0,0,0.35);

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, 15px);

  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}


/* =========================================
   10. FOOTER
========================================= */

.app-footer {
  padding: 35px 20px;

  text-align: center;

  background: #070b13;

  border-top: 1px solid var(--border-color);
}

.footer-brand {
  margin-bottom: 9px;

  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.footer-brand strong {
  color: var(--accent);
}

.app-footer p {
  margin-bottom: 15px;

  color: var(--text-secondary);

  font-size: 12px;
}

.copyright {
  color: var(--text-muted);

  font-size: 10px;
}


/* =========================================
   11. TABLET RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .app-header {
    padding: 0 4%;
  }

  .main-content {
    padding: 38px 4% 65px;
  }

  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }

  .featured-poster {
    aspect-ratio: 16 / 8;
    min-height: 300px;
  }

  .featured-content {
    width: 85%;
  }

}


/* =========================================
   12. MOBILE RESPONSIVE
========================================= */

@media (max-width: 600px) {

  :root {
    --header-height: 64px;
  }

  .app-header {
    padding: 0 17px;
  }

  .brand {
    font-size: 18px;
    gap: 8px;
  }

  .brand-icon {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }

  .header-right {
    gap: 15px;
  }

  .profile-button {
    width: 38px;
    height: 38px;
  }

  .live-indicator {
    font-size: 9px;
    gap: 6px;
  }

  .main-content {
    padding: 30px 16px 55px;
  }

  .section-heading {
    margin-bottom: 19px;
  }

  .section-eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 23px;
  }

  /* FEATURED POSTER */

  .featured-match {
    margin-bottom: 43px;
  }

  .featured-poster {
    aspect-ratio: 4 / 5;

    min-height: 0;
    max-height: none;

    border-radius: 17px;
  }

  .featured-image {
    object-position: center;
  }

  .poster-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(5,10,19,0.98) 0%,
        rgba(5,10,19,0.75) 35%,
        rgba(5,10,19,0.08) 100%
      );
  }

  .featured-content {
    left: 20px;
    bottom: 23px;

    width: calc(100% - 40px);
  }

  .match-live-badge {
    padding: 7px 10px;
    margin-bottom: 13px;

    font-size: 9px;
  }

  .featured-label {
    font-size: 9px;
    margin-bottom: 8px;
  }

  .featured-content h2 {
    font-size: clamp(27px, 8vw, 38px);

    letter-spacing: -1px;
    line-height: 1.12;
  }

  .featured-content p {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .watch-button {
    padding: 11px 17px;
    font-size: 12px;
  }

  /* OTHER MATCHES */

  .match-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .match-card {
    display: grid;
    grid-template-columns: 42% 58%;

    border-radius: 13px;
  }

  .match-poster {
    aspect-ratio: 1 / 1;
    height: 100%;
  }

  .match-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 15px;
  }

  .match-info h3 {
    font-size: 16px;
  }

  .match-info p {
    font-size: 11px;
  }

  .match-category {
    font-size: 8px;
    margin-bottom: 7px;
  }

  .card-live-badge {
    top: 8px;
    left: 8px;

    padding: 5px 7px;
    font-size: 8px;
  }

  .card-number {
    font-size: 20px;
    right: 9px;
    bottom: 8px;
  }

  .card-arrow {
    right: 13px;
    bottom: 13px;
    font-size: 19px;
  }

  .match-count {
    font-size: 9px;
  }

  .app-footer {
    padding: 30px 15px;
  }

}


/* =========================================
   13. SMALL MOBILE
========================================= */

@media (max-width: 360px) {

  .brand {
    font-size: 16px;
  }

  .header-right {
    gap: 10px;
  }

  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .featured-content h2 {
    font-size: 27px;
  }

  .match-info {
    padding: 12px;
  }

  .match-info h3 {
    font-size: 14px;
  }

  .match-info p {
    font-size: 10px;
  }

}


/* =========================================
   14. ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* =========================================
   END OF CRICK BHAI APP CSS
========================================= */
