/* ===========================
   THEME SYNC VARIABLE
=========================== */

:root {
  --active-color: #f5c16c; /* default */
  --running-text-height: 38px;
  --header-height: 150px;   /* SESUAI tinggi header-wrapper */
  --header-gap: 12px;       /* jarak konsisten */
  --float-gap: 14px;        /* jarak antar float card */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  }
@font-face {
  font-family: "Rhomdon"; /* Nama bebas untuk font Anda */
  src: url("Rhomdon.ttf");
}
/* FULL PAGE */
html, body {
  width: 100%;
  height: 100%;
  font-family: "Segoe UI", Tahoma, sans-serif;
}


.desktop-wrapper {
  width: 1400px;
  min-width: 1200px;
  margin: 0 auto;
  background: #fff;
}
/* BACKGROUND COVER */
body {
  background: url("https://rumahrakyat.id/sholat/image/malam.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}


/* ===========================
   FOOTER SHOLAT CARD (FINAL)
=========================== */

.sholat-footer {
  position: fixed;
  bottom: var(--running-text-height);
  left: 0;
  width: 100vw;      /* FULL WIDTH */
  display: flex;
  justify-content: center;
  z-index: 50;
}

.sholat-wrapper {
  width: 100vw;      /* FULL WIDTH */
  max-width: none;   /* HAPUS BATAS */
  margin: 0;
  padding: 4px 0;        /* SEBELUMNYA terlalu tebal */
  min-height: 78px;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);

 
  border-radius: 0;  /* rata kiri-kanan */
}


/* CARD TANPA KOTAK */
.sholat-card {
  text-align: center;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;

  color: #fff;
  position: relative;
}

/* PEMBATAS VERTIKAL */
.sholat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.sholat-card:not(.next) {
  opacity: 0.90;
}

/* ACTIVE SHOLAT */
.sholat-card.active {
  color: var(--active-color);
}

/* GARIS INDIKATOR */
.sholat-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--active-color),
    transparent
  );
  border-radius: 3px;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}



/* TEXT */
.sholat-card .label {
  font-size: 20px;
  opacity: 0.85;
}

.sholat-card strong {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
}




/* ===========================
   HEADER CARD (FINAL)
=========================== */

.header-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 50;
}

/* WRAPPER */
.header-wrapper {
  width: 99%;

  display: grid;
  grid-template-columns: 25% 50% 25%;
  align-items: center;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);

  padding: 20px 0 10px;
  border-radius: 0 0 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 1px 6px rgba(255,255,255,0.10);

}



/* ITEM */
.header-item {
  text-align: center;
  

  display: flex;
  flex-direction: column;
  gap: 6px;

  position: relative;
}

.header-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 64px; /* FIXED – INI KUNCI UTAMA */

  background: url("../image/menara1.png") no-repeat center;
  background-size: contain;

  opacity: 0.9;
  pointer-events: none;
}
.header-kalender {
  width: 95%;
}


/* TEXT STYLE */
.header-item .big {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow:
    0 0 20px rgba(0,0,0, 0.3);
}

.header-item .small {
  font-size: 20px;
  opacity: 0.85;
  text-shadow:
    0 0 20px rgba(0,0,0, 0.3);
}

.header-item .title {
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 10px;
  font-family: "Rhomdon";
  text-shadow:
    0 0 20px rgba(0,0,0, 0.3);
  overflow: hidden;
  max-width: 100%;
}



.header-item .subtitle {
  font-size: 20px;
  opacity: 0.85;
  position: relative;
  top: -10px;
  text-shadow:
    0 0 20px rgba(0,0,0, 0.3);
}

.header-item .date-hijri {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  top: -1px;
  text-shadow:
    0 0 20px rgba(0,0,0, 0.3);
}

.header-item .date-masehi {
  font-size: 20px;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  top: -10px;
  text-shadow:
    0 0 20px rgba(0,0,0, 0.3);
}

/* RESPONSIVE DESKTOP (STABIL) */
@media (max-width: 1024px) {
  .header-wrapper {
    width: 95%;
  }
}

@media (max-width: 900px) {
  .header-wrapper {
    transform: scale(0.88);
  }
}
/* BLINK HALUS TIAP MENIT */
@keyframes minuteBlink {
  0%   { opacity: 1; }
  50%  { opacity: 0.6; }
  100% { opacity: 1; }
}

.clock-blink {
  animation: minuteBlink 0.6s ease;
}
#clock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: clamp(72px, 7vw, 120px);
  line-height: 1;
  position: relative;
  top: -10px;
}


#clock .sep {
  display: inline-block;
  width: 0.35em;        /* ← ini kuncinya */
  text-align: center;
  animation: blinkColon 1s steps(1) infinite;
  opacity: 0.9;
  font-weight: inherit;
  font-size: clamp(56px, 6vw, 96px); /* BESAR ke atas, adaptif layar */
  font-weight: 700;
  line-height: 1;
  letter-spacing: normal !important;
  position: relative;
  top: -15px;
}


@keyframes blinkColon {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}


.sholat-card.active {
  color: #fff;
  background: linear-gradient(135deg,#f39c12,#e67e22);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,100% {opacity:1}
  50% {opacity:.85}
}

@media (max-width: 1024px) {
  .header-item:not(:last-child)::after {
    width: 20px;
  }
}

@media (max-width: 900px) {
  .header-item:not(:last-child)::after {
    width: 18px;
  }
}


/* ===========================
   ADZAN SCREEN (FINAL CLEAN)
=========================== */

.adzan-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  
}



/* ===== FRAME ===== */
.adzan-frame-box {
  position: relative;
  width: 90%;

  z-index: 2; /* di atas blur */
}

.adzan-frame-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== TEXT DI DALAM FRAME ===== */
.adzan-text {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #000;
}

.adzan-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.adzan-text h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 10px;
}

.adzan-text p {
  font-size: 28px;
}

@keyframes adzanFocusBlink {
  0% {
    opacity: 1;
    color: #1e3a8a; /* biru tua */
  }

  20% {
    opacity: 0.85;
    color: #4c1d95; /* ungu gelap */
  }

  40% {
    opacity: 0.9;
    color: #065f46; /* hijau gelap */
  }

  60% {
    opacity: 1;
    color: #facc15; /* KUNING EMAS (FOCUS) */
  }

  75% {
    opacity: 0.85;
    color: #1e293b; /* abu gelap */
  }

  100% {
    opacity: 1;
    color: #1e3a8a; /* balik biru */
  }
}

.adzan-focus {
  animation: adzanFocusBlink 1.6s ease-in-out infinite;
  font-weight: 800;
  letter-spacing: 2px;
}



/* ===== HIDE / SHOW ===== */
.hidden {
  display: none !important;
}

#setting-btn{
  position:fixed;
  right:15px;
  bottom:20px;
  z-index:9999;
  background:#2e7d32;
  color:#fff;
  border:none;
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
}

.setting{
  position:fixed;
  right:15px;
  bottom:70px;
  width:260px;
  max-width: 90%;
  max-height: 80%;
  background:lightgreen;
  border-radius:10px;
  padding:15px;
  z-index:9999;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}
.hidden{
  display: none !important;
}

.setting.hidden{ display:none; }

.setting h3{
  margin-top:0;
  font-size:16px;
  text-align:center;
  color: black;
}

.setting label{
  font-size:12px;
  margin-top:8px;
  display:block;
  color: black;
}

.setting input,
.setting select{
  width:100%;
  padding:6px;
  margin-top:4px;
  border-radius: 5px;
  border: 0;
}

.setting-actions{
  display:flex;
  gap:6px;
  margin-top:10px;
}
.setting-actions button{
  flex:1;
  padding:6px;
  border-radius: 5px;
  border: 0;
  box-shadow:0 5px 10px rgba(0,0,0,.2);
  background: blue;
  color: white;
}

#set-city{
  height:40px;
}
#city-search{
  width:100%;
  padding:6px;
  margin-bottom:6px;
  border-radius:5px;
  border:0;
}


.vk{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#1e1e1e;
  padding:10px;
  z-index:10000;
}
.vk.hidden{ display:none; }

.vk-row{
  display:flex;
  justify-content:center;
  margin-bottom:6px;
  gap:6px;
}

.vk button{
  min-width:44px;
  padding:10px;
  background:#333;
  color:#fff;
  border:none;
  border-radius:6px;
  font-size:14px;
  cursor:pointer;
}

.vk button:focus{
  outline:3px solid #4caf50;
}

.vk button[data-key="space"]{ min-width:120px; }
.vk button[data-key="ok"]{
  background:#2e7d32;
}


/* ==========================
   MOBILE SAFETY MODE
========================== */
@media (max-width: 768px) {

  body {
    overflow-x: auto;
  }

  .desktop-wrapper {
    transform: scale(0.8);
    transform-origin: top center;
  }

}


/* ===========================
   RUNNING TEXT PROFESIONAL
=========================== */

.running-text {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  pointer-events: none;
}

/* SHAPE BACKGROUND */
.marquee {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(15, 40, 90, 1),
    rgba(10, 25, 55, 0.3)
  );

  backdrop-filter: blur(6px);
  border-radius: 0;
  padding: 10px 0;
}

/* TRACK */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

/* TEXT */
.marquee-track span {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  padding-right: 40px;
  letter-spacing: 1px;
  transform: scaleY(1.6);
}

/* ANIMATION */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RESPONSIVE SAFETY */
@media (max-width: 768px) {
  .marquee-track span {
    font-size: 15px;
  }
}

.nav-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  display: grid;
  padding-top: 30px;
  grid-auto-rows: 110px;
}

.nav-left a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding-left: 7px;
}


/* ===========================
   HEADER RIGHT FLOAT CARD
=========================== */

.header-right-float{
  position: fixed;
  color: black;
  border-radius: 15px;
  border: 2px ; /* biru */
  overflow: hidden;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(0,0,0,.50);
}
  z-index: 56; /* di atas header, di bawah setting */
/* teks */
.header-right-float .title{
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.header-right-float .desc{
  font-size: 13px;
  line-height: 1.4;
  opacity: .95;
}
/* ===========================
   HEADER LEFT FLOAT CARD
=========================== */

.header-left-float{
 position: fixed;
  color: black;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,.50);
  opacity: 0.9;

}
  z-index: 57; /* di atas header, di bawah setting */
/* teks */
.header-left-float .title{
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.header-left-float .desc{
  font-size: 13px;
  line-height: 1.4;
  opacity: .95;
}

/* ===========================
   DUAL COLOR CARD
=========================== */
/* BAGIAN ATAS */
.card-top{
  height: 35%;
  background: #f4b400; /* kuning tua */
  padding: 0 30px 0 30px;
  font-size: 30px;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 6px grey;
  text-transform: uppercase;
}
.card-tops{
  height: 30%;
  background: rgb(0, 119, 0);
  padding: 0 30px 10px 30px;
  font-size: 20px;
  font-weight: 500;
  color: white;
  text-shadow: 0 0 6px grey;
  text-transform: uppercase;
}



.garisan{
  height: 1px;
  background: linear-gradient(
    0deg,
    transparent,
    var(--active-color),
    transparent
  );
  animation: pulseGlow 1s infinite;
  animation: 
}

@keyframes pulseGlow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}


/* BAGIAN BAWAH */
.card-bottom{
  height: 65%;
  background: #ffee00; /* kuning terang */
  padding: 10px 30px 10px 30px;
  font-size: 15px;
  font-weight: 400;
  color: black;
  text-shadow: 0 0 4px white;
  
}

.card-bottoms{
  height: 70%;
  background: rgb(0, 192, 0); /* kuning terang */
  padding: 0 20px 10px 20px;
  font-size: 30px;
  transform: scaleY(1.3);
  font-weight: 800;
  color: white;
  text-shadow: 0 0 6px grey;
  letter-spacing: 1px;
  
}
.card-bottom-count{
  color: blue;
  text-shadow: 0 0 4px white;
  
}
/* ===========================
   NEXT SHOLAT CARD (HIGHLIGHT)
=========================== */

.sholat-card.next {
  background: linear-gradient(
    135deg,#b68d40,#e6c36a);
  color: white;
  text-shadow: 1px 1px 5px grey;

  border-radius: 14px 14px 0 0;
  padding-top: 2px;

  box-shadow:
    0 8px 20px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);

  transform: translateY(-2px);
}

/* GARIS ATAS HALUS */
.sholat-card.next::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 3px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.8),
    transparent
  );

  border-radius: 3px;
}



.sholat-card.next .label {
  font-size: 25px;
  opacity: 0.95;
}

.sholat-card.next strong {
  font-size: 40px;
  letter-spacing: 0.5px;
}



.islamic-event-inline{
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: black;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.islamic-event-inline span{
  display: block;
  font-size: 12px;
  color: #fff;
  font-weight: normal;
}

.hidden{
  display: none;
}





.tarhim-screen{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998; /* di bawah adzan */
}

.tarhim-box{
  text-align: center;
  color: #ffd54f;
}

.tarhim-box h1{
  font-size: 60px;
  margin-bottom: 10px;
}

.tarhim-box p{
  font-size: 26px;
  color: #fff;
}

.hidden{
  display: none;
}
#tarhim-countdown{
  font-size: 100px;
  font-weight: 800;
  letter-spacing: 4px;
  color: yellow;
  margin-bottom: 10px;
}

/* ===============================
   BLINK 1 MENIT SEBELUM ADZAN
================================ */
@keyframes blinkBg {
  0%   { background-color: rgba(255, 255, 0, 1); }
  50% { background-color: rgba(255, 0, 0, 1); }
  100% { background-color: rgba(255, 255, 0, 1); }
}

.blink-bg {
  animation: blinkBg 1s infinite;
}


