
/* ==========================================
   TS FIT — TAPAK SUCI 189 KRWG
   Merah • Putih • Kuning • Aksen Biru
========================================== */

:root {
  --red: #c8102e;
  --red-dark: #970b22;
  --red-light: #fff0f2;

  --yellow: #ffd447;
  --yellow-light: #fff8df;

  --blue: #2368b4;
  --blue-light: #edf5ff;

  --white: #ffffff;
  --background: #f7f8fb;
  --text: #20232b;
  --muted: #737987;
  --border: #e9eaf0;

  --radius: 20px;
  --shadow: 0 10px 30px rgba(37, 27, 32, 0.07);
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.app-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 16px max(6%, calc((100% - 1120px) / 2));

  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.app-header::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red) 55%,
    var(--yellow) 55%,
    var(--yellow) 85%,
    var(--blue) 85%,
    var(--blue) 100%
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  display: grid;
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  place-items: center;

  color: var(--white);
  background: var(--red);
  border: 3px solid var(--yellow);
  border-radius: 15px;

  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.15);
}

.brand-info h1 {
  color: var(--red-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.brand-info p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

/* MAIN CONTAINER */

.container {
  width: min(1120px, 88%);
  margin: 0 auto;
}

/* WELCOME / HERO */

.welcome {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 58px 54px;

  color: var(--white);
  background: linear-gradient(125deg, #a90d28, #d7193f);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(151, 11, 34, 0.16);
}

.welcome::before {
  position: absolute;
  top: -100px;
  right: -70px;
  width: 310px;
  height: 310px;
  content: "";
  border: 45px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.welcome::after {
  position: absolute;
  right: 80px;
  bottom: -125px;
  width: 230px;
  height: 230px;
  content: "";
  background: rgba(255, 212, 71, 0.12);
  border-radius: 50%;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 17px;
  padding: 7px 12px;

  color: var(--red-dark);
  background: var(--yellow);
  border-radius: 7px;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.welcome h2 {
  position: relative;
  z-index: 1;
  max-width: 670px;
  margin-bottom: 17px;

  color: var(--white);
  font-size: clamp(30px, 4.5vw, 47px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.welcome h2 span {
  color: var(--yellow);
}

.welcome > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 580px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.9;
}

/* ACCESS SECTION */

.access-section {
  padding-top: 43px;
}

.section-heading {
  margin-bottom: 21px;
}

.section-heading h2 {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
}

/* ACCESS CARDS */

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.access-card {
  position: relative;
  display: flex;
  gap: 20px;
  min-width: 0;
  padding: 29px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 35px rgba(37, 27, 32, 0.11);
}

.coach-card {
  border-top: 4px solid var(--red);
}

.coach-card:hover {
  border-color: var(--red);
}

.athlete-card {
  border-top: 4px solid var(--yellow);
}

.athlete-card:hover {
  border-color: #e3b51b;
}

.access-icon {
  display: grid;
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  place-items: center;

  color: var(--white);
  background: var(--red);
  border-radius: 16px;

  font-size: 15px;
  font-weight: 900;
}

.athlete-card .access-icon {
  color: #4e3900;
  background: var(--yellow);
}

.access-content {
  flex: 1;
  min-width: 0;
}

.access-label {
  display: inline-block;
  margin: 2px 0 8px;

  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.athlete-card .access-label {
  color: #8a6800;
}

.access-content h3 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

.access-content > p {
  min-height: 66px;
  margin-bottom: 23px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.access-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.access-action span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;

  color: var(--white);
  background: var(--red);
  border-radius: 50%;

  font-size: 16px;
  transition: transform 0.2s ease;
}

.access-card:hover .access-action span {
  transform: translateX(4px);
}

.athlete-card .access-action {
  color: var(--blue);
}

.athlete-card .access-action span {
  background: var(--blue);
}

/* FOOTER */

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-top: 60px;
  padding: 24px 0;

  border-top: 1px solid var(--border);
  color: var(--muted);

  font-size: 11px;
  font-weight: 650;
}

/* KEYBOARD ACCESSIBILITY */

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
  border-radius: 5px;
}

/* TABLET */

@media (max-width: 800px) {
  .container {
    width: 90%;
  }

  .welcome {
    padding: 43px 34px;
  }

  .access-grid {
    gap: 15px;
  }

  .access-card {
    gap: 14px;
    padding: 22px;
  }

  .access-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
  }

  .access-content h3 {
    font-size: 19px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .app-header {
    min-height: 75px;
    padding: 14px 5%;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .brand-info h1 {
    font-size: 20px;
  }

  .brand-info p {
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .container {
    width: 90%;
  }

  .welcome {
    margin-top: 23px;
    padding: 34px 24px;
    border-radius: 21px;
  }

  .welcome::before {
    top: -65px;
    right: -100px;
    width: 220px;
    height: 220px;
    border-width: 30px;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .welcome h2 {
    font-size: clamp(28px, 8vw, 37px);
    letter-spacing: -0.8px;
  }

  .welcome > p:last-child {
    font-size: 13px;
  }

  .access-section {
    padding-top: 32px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .access-card {
    gap: 16px;
    padding: 22px 19px;
    border-radius: 17px;
  }

  .access-icon {
    width: 46px;
    height: 46px;
    font-size: 13px;
  }

  .access-content h3 {
    font-size: 20px;
  }

  .access-content > p {
    min-height: auto;
    margin-bottom: 18px;
    font-size: 12px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 38px;
    padding: 20px 0;
  }
}

/* SMALL MOBILE */

@media (max-width: 360px) {
  .welcome {
    padding: 29px 19px;
  }

  .access-card {
    gap: 12px;
    padding: 18px 14px;
  }

  .access-content h3 {
    font-size: 18px;
  }
}

/* REDUCE ANIMATION WHEN REQUESTED */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* LOGO TAPAK SUCI */
img.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.admin-link {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(201, 0, 22, 0.25);
  border-radius: 20px;
  color: #888;
  font-size: 11px;
  text-decoration: none;
  transition: 0.2s ease;
}

.admin-link:hover {
  color: #C90016;
  border-color: #C90016;
}
/* ==========================================
   TS FIT - STICKY HEADER
   Header tetap di atas saat scroll
========================================== */

.app-header,
.athlete-header,
.main-header,
.site-header,
.dashboard-header,
.topbar,
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}