/* ===== SHODAI DOJO THEME (POSTER STYLE – CLEAN WHITE / RED / BLACK) ===== */

/* === IMPORT BETTER FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&family=Noto+Sans+JP:wght@500&display=swap');

/* ===== BODY ===== */
body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f5 url('https://www.transparenttextures.com/patterns/concrete-wall.png');
  color: #111;
  overflow-x: hidden;
}

/* ===== HEADINGS (Strong but readable) ===== */
h1, h2, h3, h4, .navbar-brand {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
}

h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #b30000;
  display: block;
  margin: 12px auto 0;
}

/* ===== LOADER – FAST KARATE COMBO ===== */


.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

#shodai-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.dojo-scene {
  position: relative;
  width: 180px;
  height: 180px;
}

/* Shadow */
.shadow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 80px;
  height: 14px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: shadowBounce 1.6s infinite ease-in-out;
}

/* Main figure */
.karateka {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: masterCombo 1.6s infinite ease-in-out;
}

.karateka div {
  position: absolute;
  background: #b30000;
}

/* Head */
.head {
  width: 20px;
  height: 20px;
  border: 3px solid #b30000;
  border-radius: 50%;
  background: white;
  top: -22px;
  left: -10px;
}

/* Body */
.body {
  width: 4px;
  height: 40px;
  left: -2px;
}

/* Arms */
.arm {
  width: 30px;
  height: 4px;
  top: 10px;
}

.arm.left {
  left: -30px;
  transform-origin: right center;
}

.arm.right {
  left: 4px;
  transform-origin: left center;
}

/* Legs */
.leg {
  width: 35px;
  height: 4px;
  top: 38px;
}

.leg.left {
  left: -35px;
  transform-origin: right center;
}

.leg.right {
  left: 4px;
  transform-origin: left center;
}

/* Belt */
.belt {
  width: 16px;
  height: 6px;
  background: black;
  top: 18px;
  left: -8px;
}

/* Energy kick trail */
.kick-trail {
  width: 40px;
  height: 4px;
  background: rgba(179,0,0,0.3);
  top: 38px;
  left: 10px;
  opacity: 0;
}

/* MASTER COORDINATED SEQUENCE */
@keyframes masterCombo {

  0% { transform: translateX(-50%) translateY(0) rotate(0deg); }

  20% { transform: translateX(-50%) translateY(0) rotate(-10deg); }

  40% { transform: translateX(-50%) translateY(-20px) rotate(360deg); }

  60% { transform: translateX(-50%) translateY(-10px) rotate(360deg); }

  80% { transform: translateX(-50%) translateY(0) rotate(0deg); }

  100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
}

/* Arms coordinated */
@keyframes armPunch {
  0%,100% { transform: rotate(0deg); }
  20% { transform: rotate(-30deg); }
  40% { transform: rotate(90deg); }
  60% { transform: rotate(40deg); }
}

.arm.left {
  animation: armPunch 1.6s infinite ease-in-out;
}

.arm.right {
  animation: armPunch 1.6s infinite ease-in-out reverse;
}

/* Legs coordinated */
@keyframes legKick {
  0%,100% { transform: rotate(0deg); }
  30% { transform: rotate(20deg); }
  45% { transform: rotate(110deg); }
  60% { transform: rotate(20deg); }
}

.leg.left {
  animation: legKick 1.6s infinite ease-in-out;
}

.leg.right {
  animation: legKick 1.6s infinite ease-in-out reverse;
}

/* Kick trail burst */
@keyframes kickFlash {
  40% { opacity: 1; transform: scaleX(1.3); }
  60% { opacity: 0; }
}

.kick-trail {
  animation: kickFlash 1.6s infinite ease-in-out;
}

/* Shadow bounce */
@keyframes shadowBounce {
  40% { transform: translateX(-50%) scale(0.7); }
}

/* ===== NAVBAR ===== */
.navbar {
  background: #000 !important;
  border-bottom: 5px solid #b30000;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 2rem;
  font-weight: 600;
  color: #fff !important;
}

.navbar-brand i {
  color: #b30000 !important;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
  color: #b30000 !important;
}

/* ===== BUTTONS ===== */
.btn-register,
.btn-hero {
  background: #b30000;
  border: none;
  border-radius: 0;
  padding: 0.7rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.btn-register:hover,
.btn-hero:hover {
  background: #800000;
}

/* ===== HERO ===== */


/* ===== SECTION SPACING (INCREASED) ===== */
.section-padding {
  padding: 5rem 0;
}

/* ===== CARDS ===== */
.service-card,
.trainer-card,
.location-card,
.tournament-item,
.article-item {
  border-radius: 0;
  border: 2px solid #000;
  background: #ffffff;
  transition: 0.3s ease;
  padding: 1.5rem;
}

.service-card:hover,
.trainer-card:hover,
.location-card:hover {
  background: #111;
  color: white;
  border-color: #b30000;
  transform: translateY(-6px);
}

.icon-circle {
  background: #000;
  border: 2px solid #b30000;
  width: 70px;
  height: 70px;
  border-radius: 50%; /* makes it a perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 12px; /* gives breathing space */
}

/* Control icon image size */
.icon-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* helper for secondary text */
.text-secondary-custom {
  color: #666;
}

/* ===== PRICE BANNER (used in shop) ===== */
.price-banner {
  background: #b30000;
  color: white;
  padding: 0.2rem 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ===== CONTACT ===== */
#contact {
  background: #000;
  color: white;
  border-top: 5px solid #b30000;
  border-bottom: 5px solid #b30000;
}

#contact .form-control {
  border-radius: 0;
  border: 2px solid #333;
  background: #111;
  color: white;
}

/* ===== REGISTER ===== */
#register {
  background: #000;
  color: white;
  border-top: 6px solid #b30000;
  border-bottom: 6px solid #b30000;
}

#register .btn-light {
  background: #b30000;
  border-radius: 0;
  font-weight: 600;
  border: 2px solid white;
  padding: 1rem 3rem;
}

#register .btn-light:hover {
  background: #800000;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #777;
  border-top: 4px solid #b30000;
}

/* Active navigation link */
.navbar-nav .nav-link.active {
  color: #e63946 !important; /* Shodai red */
  font-weight: 600;
  position: relative;
}

/* underline indicator for active page */
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background: #e63946;
  border-radius: 2px;
}

/* smooth hover transition */
.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
}

/* schedule table styling – matches card aesthetics */
    .schedule-table {
      background: white;
      border: 2px solid #000;
    }
    .schedule-table th {
      background: #b30000;
      color: white;
      font-family: 'Oswald', sans-serif;
      font-weight: 600;
      text-transform: uppercase;
      border-bottom: 2px solid #000;
    }
    .schedule-table td, .schedule-table th {
      padding: 1rem;
      vertical-align: middle;
      border: 1px solid #333;
    }
    .schedule-table tr:hover {
      background: #111;
      color: white;
    }
    .schedule-table tr:hover td { color: white; }
    .badge-age {
      background: #000;
      color: white;
      padding: 4px 10px;
      font-size: 0.75rem;
      font-weight: 600;
      border-left: 3px solid #b30000;
    }
    .program-icon-list i {
      color: #b30000;
      width: 30px;
    }

    
/* ===== SHODAI MEMBER NAV ===== */

.member-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 16px;
    border-left: 2px solid #b30000;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.member-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b30000;
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.member-label {
    color: #999;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.member-name {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.2;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-logout-form {
    margin: 0;
}

.member-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid #b30000;
    border-radius: 3px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: all .25s ease;
}

.member-logout i {
    color: #e63946;
    transition: color .25s ease;
}

.member-logout:hover {
    background: #b30000;
    color: #fff;
}

.member-logout:hover i {
    color: #fff;
}

/* ===== RESPONSIVE NAVBAR ===== */

/* Prevent navbar overflow on medium screens */
@media (min-width: 992px) and (max-width: 1399px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-nav .nav-link {
        font-size: .8rem;
        padding-left: .35rem;
        padding-right: .35rem;
    }

    .member-nav {
        gap: 8px;
        padding-left: 10px;
    }

    .member-name {
        max-width: 90px;
    }

    .member-logout {
        padding: 8px;
    }

    .member-logout span {
        display: none;
    }
}

/* Mobile */
@media (max-width: 991.98px) {
    .member-nav {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0 4px;
        margin-top: 10px;
        border-left: none;
        border-top: 1px solid #333;
    }

    .member-name {
        max-width: 200px;
    }

    .member-logout {
        padding: 10px 14px;
    }
}