/* Clock7 Study Timer — light, simple (matches pasta-timer feel) */
:root{
  --st-max: 1100px;
  --st-card: #ffffff;
  --st-border: rgba(0,0,0,.08);
  --st-muted: rgba(0,0,0,.60);
  --st-soft: rgba(0,0,0,.04);
  --st-shadow: 0 10px 30px rgba(0,0,0,.08);
  --st-radius: 18px;
  --st-header-space: 60px; /* adjust if global header height changes */
}

/* Ensure [hidden] always hides elements (prevents modals showing on load) */
[hidden] { display: none !important; }


body{
  background:#fff;
}
.st-wrap{
  max-width: var(--st-max);
  margin: 0 auto;
  padding: calc(var(--st-header-space) + 18px) 16px 46px;
}
.st-hero{
  text-align:center;
}
.st-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color: var(--st-muted);
  border:1px solid var(--st-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}
.st-hero h1{
  margin: 12px 0 10px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
@media (max-width: 520px){
  .st-hero h1{ font-size: 32px; }
}
.st-subtitle{
  margin: 0 auto 18px;
  max-width: 700px;
  color: var(--st-muted);
  font-size: 15px;
}
.st-clock{
  margin: 14px auto 0;
  max-width: 560px;
  border:1px solid var(--st-border);
  border-radius: var(--st-radius);
  background: var(--st-card);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  padding: 18px 18px 12px;
}
.st-now{
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.st-date{
  margin-top: 4px;
  font-size: 13px;
  color: var(--st-muted);
}
.st-big{
  margin-top: 18px;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
@media (max-width: 520px){
  .st-big{ font-size: 54px; }
}
.st-phase{
  margin-top: 6px;
  font-size: 14px;
  color: var(--st-muted);
}
.st-grid{
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.st-panels{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 860px){
  .st-panels{ grid-template-columns: 1fr; }
}
.st-panel{
  text-align:left;
  border:1px solid var(--st-border);
  background: var(--st-card);
  border-radius: var(--st-radius);
  padding: 12px;
}
.st-panel label{
  display:block;
  font-size: 12px;
  color: var(--st-muted);
  margin-bottom: 6px;
}
.st-panel select, .st-panel input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  background:#fff;
  font-size: 14px;
}
.st-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 14px;
  color: rgba(0,0,0,.8);
}
.st-toggle input{ width: 18px; height:18px; }

.st-mini-row{
  margin-top: 12px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.st-mini{
  border:1px solid var(--st-border);
  background:#fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor:pointer;
}
.st-mini:hover{ background: var(--st-soft); }

.st-actions{
  margin-top: 14px;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
}
.st-btn{
  border:1px solid var(--st-border);
  background:#fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor:pointer;
}
.st-btn.primary{
  background:#111;
  color:#fff;
  border-color:#111;
}
.st-btn.danger{
  background:#b43b3b;
  border-color:#b43b3b;
  color:#fff;
}
.st-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.st-status{
  margin-top: 10px;
  color: var(--st-muted);
  font-size: 14px;
}
.st-sections{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}
@media (max-width: 860px){
  .st-sections{ grid-template-columns: 1fr; }
}
.st-card{
  border:1px solid var(--st-border);
  background: var(--st-card);
  border-radius: var(--st-radius);
  padding: 16px;
}
.st-card h2{
  margin: 0 0 8px;
  font-size: 18px;
}
.st-card p{
  margin: 0;
  color: var(--st-muted);
  font-size: 14px;
  line-height: 1.45;
}
.st-tips ul{
  margin: 10px 0 0;
  padding-left: 18px;
}
.st-tips li{
  margin: 6px 0;
  color: rgba(0,0,0,.78);
  list-style-position: inside;
}
.st-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 8px;
}
.st-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--st-border);
  background:#fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  text-decoration:none;
  color: #1b57d7;
}
.st-chip:hover{ background: var(--st-soft); }

/* Modal (same style philosophy as egg timer: overlay centered) */
.st-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 16px;
}
.st-modal{
  width: min(560px, 100%);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--st-shadow);
  padding: 16px;
}
.st-modal-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.st-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 10px;
  border:1px solid var(--st-border);
  background: var(--st-soft);
}
.st-close{
  border: 1px solid var(--st-border);
  background: #fff;
  border-radius: 12px;
  width: 40px; height: 36px;
  cursor:pointer;
  font-size: 18px;
}
.st-modal h3{
  margin: 10px 0 6px;
  font-size: 22px;
}
.st-modal p{
  margin: 0 0 12px;
  color: var(--st-muted);
}
.st-modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.st-modal-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--st-muted);
}









/* Related Tools Section - Compact Version */
.related-tools {
    background: var(--bg-secondary);
  padding: 14rem 14rem; /* Reduced vertical padding */
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns in one row */
    gap: 1rem; /* Smaller gap */
    margin: 1.5rem 0; /* Reduced margin */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.related-tool-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1rem; /* Reduced padding for smaller cards */
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.tool-icon {
    font-size: 2rem; /* Smaller icon */
    margin-bottom: 0.5rem;
    display: block;
}

.related-tool-card h3 {
    color: var(--text-color);
    font-size: 1.1rem; /* Smaller heading */
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-tool-card p {
    color: var(--text-secondary);
    font-size: 0.875rem; /* Smaller description text */
    line-height: 1.5;
    margin: 0;
}

/* Shared SEO section styles (unchanged, but kept for context) */
.seo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.seo-section h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.seo-section p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .related-tools {
        padding: 1.5rem 1rem;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 0.75rem;
    }
    
    .related-tool-card {
        padding: 1.25rem;
    }
    
    .tool-icon {
        font-size: 2.2rem;
    }
    
    .related-tool-card h3 {
        font-size: 1.2rem;
    }
}






/*   <!-- Call to Action --> */
/* Compact Footer Banner */
.footer-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
    overflow: hidden;
}

.footer-banner .container {
    padding: 0;
}

.footer-banner .banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    gap: 0.75rem;
    text-align: center;
}

.footer-banner h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.footer-banner p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
}

.footer-banner .btn-primary {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-banner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Dark mode */
[data-theme="dark"] .footer-banner {
    background: linear-gradient(135deg, #357ABD 0%, #6B5AC7 100%);
}

/* Desktop: Horizontal layout for banner feel */
@media (min-width: 768px) {
    .footer-banner .banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 1.75rem 3rem;
        gap: 2rem;
    }
    
    .footer-banner h3 {
        font-size: 1.8rem;
        flex: 1;
    }
    
    .footer-banner p {
        font-size: 1rem;
        flex: 2;
    }
    
    .footer-banner .btn-primary {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .footer-banner .banner-content {
        padding: 1.5rem 1rem;
    }
    
    .footer-banner h3 {
        font-size: 1.4rem;
    }
    
    .footer-banner p {
        font-size: 0.9rem;
    }
    
    .footer-banner .btn-primary {
        width: 100%;
        max-width: 280px;
    }
}