/* =========================================================
   style.css
   SEJATI SERUMPUN
   Modern Indonesia - Malaysia Cultural Collaboration Theme
========================================================= */

/* -----------------------------
   ROOT COLORS
----------------------------- */
:root{
  --maroon:#6F1D2A;
  --maroon-dark:#4A101A;

  --green:#1F5A45;
  --green-dark:#153D31;

  --gold:#D7AD58;
  --gold-light:#F1D593;

  --cream:#FFF7EC;
  --cream-soft:#F3E7D5;

  --brown1:#5C3317;
  --brown2:#B07A4A;

  --text-dark:#2A1A13;
  --text-soft:#6A5146;

  --glass:rgba(255,255,255,0.11);
  --glass-border:rgba(255,255,255,0.18);
}


/* -----------------------------
   GLOBAL
----------------------------- */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;

  font-family:'Poppins',sans-serif;

  color:var(--text-dark);

  background:
    radial-gradient(circle at 15% 20%, rgba(215,173,88,0.10), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,0.07), transparent 30%),
    linear-gradient(
      135deg,
      var(--maroon-dark) 0%,
      var(--maroon) 34%,
      #7D432A 58%,
      var(--green) 100%
    );

  background-attachment:fixed;

  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}


/* -----------------------------
   MAIN APP CONTAINER
----------------------------- */
.app{
  max-width:1100px;
  margin:0 auto;

  position:relative;

  padding-bottom:110px;
}


/* -----------------------------
   HEADER
----------------------------- */
.app-header{
  padding:18px 20px;

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

  gap:12px;

  position:relative;
  z-index:5;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.logo{
  width:58px;
  height:58px;

  border-radius:16px;

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold)
    );

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

  font-weight:700;
  color:#6B351D;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

.brand-text h1{
  margin:0;

  font-size:20px;

  color:#fff;

  letter-spacing:0.3px;
}

.brand-text small{
  color:rgba(255,255,255,0.82);
}


/* -----------------------------
   MAIN CONTENT
----------------------------- */
.app-main{
  padding:12px 20px 30px;
}


/* =========================================================
   HOMEPAGE CULTURAL HERO
========================================================= */

.cultural-home{
  position:relative;

  overflow:hidden;

  min-height:calc(100vh - 100px);

  padding:
    42px
    clamp(16px,4vw,50px)
    120px;

  border-radius:28px;
}


/* Decorative Indonesia / Malaysia heritage circles */
.cultural-home::before,
.cultural-home::after{
  content:"";

  position:absolute;

  width:380px;
  height:380px;

  border-radius:50%;

  pointer-events:none;

  opacity:0.13;

  z-index:0;
}

.cultural-home::before{
  left:-190px;
  top:20px;

  border:
    38px double
    var(--gold-light);
}

.cultural-home::after{
  right:-190px;
  top:120px;

  border:
    38px double
    var(--gold-light);
}


/* -----------------------------
   HERO
----------------------------- */
.cultural-hero{
  max-width:850px;

  margin:
    10px
    auto
    38px;

  text-align:center;

  position:relative;
  z-index:2;

  color:#fff;
}

.country-badge{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  gap:13px;

  padding:
    8px
    22px;

  margin-bottom:20px;

  border:
    1px solid
    rgba(255,255,255,0.30);

  border-radius:999px;

  background:
    rgba(255,255,255,0.08);

  backdrop-filter:blur(8px);

  font-size:12px;
  font-weight:600;

  letter-spacing:2px;

  color:#fff;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,0.15);
}

.badge-symbol{
  color:var(--gold-light);

  font-size:18px;
}

.hero-title{
  margin:0;

  font-size:
    clamp(40px,6vw,78px);

  line-height:1;

  letter-spacing:
    clamp(2px,0.5vw,6px);

  color:#fff;

  font-weight:700;

  text-shadow:
    0 7px 25px
    rgba(0,0,0,0.25);
}

.hero-subtitle{
  max-width:760px;

  margin:
    15px
    auto
    0;

  font-size:
    clamp(16px,2vw,22px);

  font-weight:400;

  color:var(--gold-light);

  line-height:1.5;
}

.hero-description{
  max-width:680px;

  margin:
    14px
    auto
    0;

  font-size:14px;

  line-height:1.8;

  color:
    rgba(255,255,255,0.84);
}


/* -----------------------------
   CULTURAL DIVIDER
----------------------------- */
.heritage-line{
  max-width:380px;

  margin:
    22px
    auto
    10px;

  display:flex;

  align-items:center;
  justify-content:center;

  gap:12px;

  color:var(--gold-light);
}

.heritage-line span{
  height:1px;

  flex:1;

  background:
    linear-gradient(
      to right,
      transparent,
      var(--gold-light)
    );
}

.heritage-line span:last-child{
  background:
    linear-gradient(
      to left,
      transparent,
      var(--gold-light)
    );
}


/* =========================================================
   HOMEPAGE CULTURE CARDS
========================================================= */

.culture-grid{
  max-width:1000px;

  margin:0 auto;

  display:grid;

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

  gap:18px;

  position:relative;

  z-index:2;
}

.culture-card{
  min-height:128px;

  padding:22px;

  display:flex;

  align-items:center;

  gap:18px;

  text-decoration:none;

  border-radius:20px;

  border:
    1px solid
    rgba(255,255,255,0.17);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.17),
      rgba(255,255,255,0.07)
    );

  backdrop-filter:
    blur(10px);

  box-shadow:
    0 12px 30px
    rgba(0,0,0,0.18);

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

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

  border-color:
    rgba(241,213,147,0.75);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.25),
      rgba(255,255,255,0.11)
    );

  box-shadow:
    0 18px 38px
    rgba(0,0,0,0.25);
}

.culture-icon{
  width:54px;
  height:54px;

  padding:11px;

  flex-shrink:0;

  border-radius:16px;

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 6px 18px
    rgba(0,0,0,0.16);
}

.culture-card strong{
  display:block;

  margin-bottom:5px;

  color:#fff;

  font-size:16px;

  line-height:1.35;
}

.culture-card small{
  display:block;

  font-size:12px;

  line-height:1.5;

  color:
    rgba(255,255,255,0.74);
}


/* -----------------------------
   UNITY MESSAGE
----------------------------- */
.unity-message{
  margin:
    34px
    auto
    0;

  position:relative;

  z-index:2;

  text-align:center;

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

  letter-spacing:1.4px;

  font-size:13px;
}

.unity-message b{
  margin:
    0
    10px;

  color:
    var(--gold-light);
}


/* =========================================================
   ORIGINAL GENERAL GRID
   Used by learn.php / other pages
========================================================= */

.grid{
  display:grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:12px;
}

.card{
  background:
    rgba(255,255,255,0.11);

  border:
    1px solid
    rgba(255,255,255,0.11);

  border-radius:16px;

  padding:15px;

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  gap:9px;

  text-decoration:none;

  backdrop-filter:
    blur(7px);

  box-shadow:
    0 7px 20px
    rgba(0,0,0,0.18);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

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

  background:
    rgba(255,255,255,0.16);

  box-shadow:
    0 12px 30px
    rgba(0,0,0,0.28);
}

.card img.icon{
  width:46px;
  height:46px;
}

.card span{
  color:#fff;

  font-weight:600;

  text-align:center;
}


/* -----------------------------
   FULL WIDTH CARD
----------------------------- */
.full-card{
  grid-column:1/-1;

  display:flex;

  justify-content:space-between;

  align-items:center;

  padding:16px;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery{
  display:grid;

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

  gap:9px;

  margin-top:12px;
}

.gallery img,
.gallery video{
  width:100%;
  height:105px;

  object-fit:cover;

  border-radius:12px;

  box-shadow:
    0 6px 16px
    rgba(0,0,0,0.16);
}


/* =========================================================
   PAGE TITLE
========================================================= */

.page-title{
  margin:
    8px
    0
    16px;

  font-size:
    clamp(18px,2.3vw,24px);

  color:#fff;

  font-weight:700;

  letter-spacing:0.3px;
}


/* =========================================================
   FORMS AND ADMIN
========================================================= */

input[type=text],
input[type=password],
input[type=email],
input[type=number],
textarea,
select{

  width:100%;

  padding:11px 12px;

  margin-top:6px;

  border-radius:10px;

  border:
    1px solid
    rgba(0,0,0,0.10);

  background:
    rgba(255,255,255,0.95);

  font-family:
    inherit;

  outline:none;
}

textarea{
  min-height:120px;

  resize:vertical;
}

input:focus,
textarea:focus,
select:focus{
  border-color:
    var(--gold);

  box-shadow:
    0 0 0 3px
    rgba(215,173,88,0.18);
}


/* -----------------------------
   BUTTON
----------------------------- */
.btn{
  display:inline-block;

  padding:
    10px
    15px;

  border:none;

  border-radius:11px;

  text-decoration:none;

  font-family:inherit;

  font-weight:700;

  cursor:pointer;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      var(--maroon),
      var(--green)
    );

  box-shadow:
    0 6px 16px
    rgba(0,0,0,0.18);

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.btn:hover{
  transform:
    translateY(-2px);
}

.btn.secondary{
  background:
    transparent;

  border:
    1px solid
    rgba(255,255,255,0.20);

  color:
    var(--gold-light);
}


/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.bottom-nav{
  position:fixed;

  left:50%;

  transform:
    translateX(-50%);

  bottom:14px;

  z-index:100;

  width:
    calc(100% - 32px);

  max-width:760px;

  padding:
    9px
    12px;

  display:flex;

  justify-content:
    space-around;

  align-items:center;

  border-radius:20px;

  border:
    1px solid
    rgba(255,255,255,0.15);

  background:
    linear-gradient(
      135deg,
      rgba(75,16,26,0.92),
      rgba(31,90,69,0.92)
    );

  backdrop-filter:
    blur(12px);

  box-shadow:
    0 12px 32px
    rgba(0,0,0,0.34);
}

.nav-item{
  min-width:52px;

  display:flex;

  flex-direction:column;

  align-items:center;

  gap:4px;

  text-decoration:none;

  color:
    var(--gold-light);

  font-size:11px;

  transition:
    transform .16s ease,
    color .16s ease;
}

.nav-item img{
  width:25px;
  height:25px;

  filter:
    drop-shadow(
      0
      2px
      3px
      rgba(0,0,0,0.3)
    );
}

.nav-item:hover{
  color:#fff;

  transform:
    translateY(-2px);
}

.nav-item:active{
  transform:
    translateY(1px);
}


/* =========================================================
   BATIK OVERLAY
========================================================= */

.batik-overlay{
  position:fixed;

  left:0;
  right:0;
  top:0;
  bottom:0;

  z-index:-1;

  pointer-events:none;

  background-image:
    url('/assets/batik_overlay.png');

  background-repeat:repeat;

  background-size:auto;

  opacity:0.10;

  mix-blend-mode:soft-light;
}


/* =========================================================
   TABLET
========================================================= */

@media(min-width:700px){

  .grid{
    grid-template-columns:
      repeat(3,1fr);
  }

}


/* =========================================================
   MEDIUM SCREEN
========================================================= */

@media(max-width:900px){

  .culture-grid{
    grid-template-columns:
      repeat(2,1fr);
  }

  .app{
    max-width:760px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px){

  body{
    background-attachment:scroll;
  }

  .app{
    max-width:100%;

    padding-bottom:105px;
  }

  .app-header{
    padding:
      14px
      14px;
  }

  .logo{
    width:50px;
    height:50px;

    border-radius:13px;
  }

  .brand-text h1{
    font-size:17px;
  }

  .brand-text small{
    font-size:11px;
  }

  .app-main{
    padding:
      8px
      14px
      25px;
  }


  /* HOME */

  .cultural-home{
    padding:
      25px
      5px
      100px;

    border-radius:0;
  }

  .country-badge{
    padding:
      7px
      15px;

    gap:9px;

    font-size:9px;

    letter-spacing:1.3px;
  }

  .hero-title{
    font-size:
      clamp(34px,12vw,54px);

    letter-spacing:2px;
  }

  .hero-subtitle{
    font-size:15px;

    padding:
      0
      10px;
  }

  .hero-description{
    padding:
      0
      10px;

    font-size:12.5px;
  }

  .heritage-line{
    max-width:250px;
  }


  /* HOME GRID */

  .culture-grid{
    grid-template-columns:1fr;

    gap:11px;
  }

  .culture-card{
    min-height:92px;

    padding:15px;

    border-radius:16px;

    gap:14px;
  }

  .culture-icon{
    width:45px;
    height:45px;

    padding:9px;

    border-radius:13px;
  }

  .culture-card strong{
    font-size:14px;
  }

  .culture-card small{
    font-size:11px;
  }


  /* REGULAR CARDS */

  .grid{
    grid-template-columns:
      repeat(2,1fr);

    gap:9px;
  }

  .card{
    padding:11px;

    min-height:105px;
  }

  .card img.icon{
    width:40px;
    height:40px;
  }

  .card span{
    font-size:12px;
  }


  /* GALLERY */

  .gallery{
    grid-template-columns:
      repeat(2,1fr);
  }

  .gallery img,
  .gallery video{
    height:110px;
  }


  /* BOTTOM NAV */

  .bottom-nav{
    width:
      calc(100% - 20px);

    bottom:9px;

    padding:
      8px
      5px;

    border-radius:17px;
  }

  .nav-item{
    min-width:45px;

    font-size:9px;
  }

  .nav-item img{
    width:22px;
    height:22px;
  }


  .unity-message{
    font-size:10px;

    letter-spacing:0.8px;
  }

  .unity-message b{
    margin:
      0
      5px;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media(max-width:390px){

  .brand-text small{
    display:none;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .culture-card{
    min-height:86px;
  }

  .nav-item span{
    font-size:8px;
  }

}

/* Small admin link */
.footer-admin{
  text-align:center;
  margin-top:18px;
  padding-bottom:8px;
  position:relative;
  z-index:5;
}

.footer-admin a{
  color:rgba(255,255,255,0.42);
  text-decoration:none;
  font-size:10px;
  letter-spacing:0.8px;
  transition:color .2s ease, opacity .2s ease;
}

.footer-admin a:hover{
  color:var(--gold-light);
}
