/* Interval Timer (HIIT/Tabata) - Clock7
   Keeps your global style but adds compact, modern UI.
*/

.interval-wrap { padding-top: 30px; }

.it-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.it-card{
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 14px;
}

.it-card-title{
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.it-presets{ margin-bottom: 14px; }

.it-preset-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.it-preset-btn{
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-color);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s ease;
}
.it-preset-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(74,144,226,.35);
}

.it-row{ margin-bottom: 12px; }
.it-label{
  display:block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.it-input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-color);
  outline: none;
}
.it-input:focus{
  border-color: rgba(74,144,226,.55);
  box-shadow: 0 0 0 4px rgba(74,144,226,.12);
}

.it-hint{
  margin-top:6px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .9;
}

.it-two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.it-options{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 6px;
}
.it-check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
  user-select: none;
}

.it-live{
  position: sticky;
  top: 90px; /* stays visible under your fixed header */
}

.it-live-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.it-phase{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}
.it-meta{
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  text-align: right;
  white-space: nowrap;
}

.it-time{
  font-size: 64px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
  padding: 4px 0 10px;
}

.it-progress{
  height: 10px;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  overflow:hidden;
  margin: 8px 0 14px;
}
[data-theme="dark"] .it-progress{ background: rgba(255,255,255,.08); }

.it-bar{
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  border-radius: 999px;
  transition: width .12s linear;
}

.it-controls{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: center;
  margin: 12px 0 10px;
}

.it-next{
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.it-next-label{ color: var(--text-secondary); }
.it-next-value{ font-weight: 650; }

/* Responsive */
@media (max-width: 992px){
  .it-grid{ grid-template-columns: 1fr; }
  .it-live{ position: static; }
  .it-time{ font-size: 54px; }
}

@media (max-width: 480px){
  .it-time{ font-size: 46px; }
  .it-two{ grid-template-columns: 1fr; }
}










/* =========================
   SEO SECTION (Professional)
   ========================= */
.it-seo{
  padding: 26px 0 10px;
}

.it-seo-hero{
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  margin-bottom: 16px;
}

.it-seo-hero h2{
  margin: 0 0 8px;
  font-size: 24px;
}

.it-seo-hero p{
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.it-seo-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.it-seo-card{
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.it-seo-card h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.it-seo-card ul,
.it-seo-card ol{
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.it-seo-faq h2{
  margin: 6px 0 12px;
  font-size: 22px;
}

.it-faq details{
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 12px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.it-faq summary{
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.it-faq summary::-webkit-details-marker{
  display: none;
}

.it-faq-body{
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Responsive SEO grid */
@media (max-width: 900px){
  .it-seo-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Preset selection highlight
   ========================= */
.it-preset-btn.is-active{
  border-color: rgba(74,144,226,.6);
  box-shadow: 0 0 0 4px rgba(74,144,226,.12);
  transform: translateY(-1px);
}
