* {
  box-sizing: border-box;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: #f5f5f5;
  color: #222;
}

/* =========================
   Header
========================= */

.site-header {
  background: #ffffff;

  border-bottom: 1px solid #ddd;

  position: sticky;
  top: 0;

  z-index: 1000;
}

.header-inner {
  max-width: 1800px;

  margin: 0 auto;

  padding: 16px 24px;

  display: flex;
  flex-direction: column;

  gap: 14px;
}

.logo {
  text-decoration: none;

  color: #111;

  font-size: 28px;
  font-weight: bold;
}

/* =========================
   Navigation
========================= */

.top-nav {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.top-nav a {
  text-decoration: none;

  color: #333;

  background: white;

  padding: 10px 14px;

  border-radius: 10px;

  border: 1px solid #ddd;

  transition: 0.2s;
}

.top-nav a:hover {
  background: #f0f0f0;
}

/* =========================
   Layout
========================= */

.page-layout {
  max-width: 1800px;

  margin: 0 auto;

  display: flex;

  gap: 28px;

  padding: 28px;
}

/* =========================
   Ad Space
========================= */

.ad-space {
  width: 240px;
  flex-shrink: 0;
}

.ad-box {
  position: sticky;
  top: 100px;

  height: 700px;

  background: #e5e5e5;

  border-radius: 16px;

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

  color: #666;

  font-size: 15px;
}

/* =========================
   Main
========================= */

.main-content {
  flex: 1;

  max-width: 950px;

  margin: 0 auto;
}

/* =========================
   Hero
========================= */

.hero-section {
  background: white;

  padding: 40px;

  border-radius: 18px;

  margin-bottom: 24px;

  box-shadow:
    0 2px 10px rgba(0,0,0,0.05);
}

.hero-section h1 {
  margin-top: 0;

  font-size: 40px;
}

.hero-section p {
  color: #555;

  font-size: 18px;
}

/* =========================
   Tool Grid
========================= */

.tool-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 20px;
}

.tool-card {
  background: white;

  padding: 24px;

  border-radius: 18px;

  text-decoration: none;

  color: #222;

  transition: 0.2s;

  box-shadow:
    0 2px 10px rgba(0,0,0,0.05);
}

.tool-card:hover {
  transform: translateY(-3px);
}

.tool-card h2 {
  margin-top: 0;
}

/* =========================
   Footer
========================= */

.site-footer {
  margin-top: 50px;

  background: white;

  border-top: 1px solid #ddd;

  padding: 40px 20px;

  text-align: center;
}

.footer-links {
  display: flex;

  justify-content: center;

  gap: 24px;

  margin-bottom: 14px;

  flex-wrap: wrap;
}

.footer-links a {
  color: #333;

  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   Mobile
========================= */

@media (max-width: 1400px) {

  .ad-space {
    display: none;
  }

  .page-layout {
    justify-content: center;
  }

}

@media (max-width: 768px) {

  .hero-section {
    padding: 24px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .page-layout {
    padding: 18px;
  }

  .top-nav {
    gap: 8px;
  }

  .top-nav a {
    font-size: 14px;
    padding: 8px 10px;
  }

}

/* =========================
   Timer
========================= */

.timer-page {
  background: white;

  padding: 40px;

  border-radius: 18px;

  box-shadow:
    0 2px 10px rgba(0,0,0,0.05);
}

.tool-description {
  color: #666;

  margin-bottom: 30px;
}

/* =========================
   Timer Display
========================= */

.timer-display {
  font-size: 72px;

  font-weight: bold;

  text-align: center;

  margin-bottom: 30px;

  letter-spacing: 4px;
}

/* =========================
   Progress Bar
========================= */

.progress-wrapper {
  width: 100%;

  height: 18px;

  background: #eee;

  border-radius: 999px;

  overflow: hidden;

  margin-bottom: 30px;
}

.progress-bar {
  width: 0%;

  height: 100%;

  background: #111;

  transition: width 1s linear;
}

/* =========================
   Inputs
========================= */

.time-inputs {
  display: grid;

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

  gap: 20px;

  margin-bottom: 30px;
}

.input-group label {
  display: block;

  margin-bottom: 10px;

  font-weight: bold;
}

/* =========================
   Presets
========================= */

.preset-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 30px;
}

.preset-buttons button {
  width: auto;
}

/* =========================
   Controls
========================= */

.control-buttons {
  display: grid;

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

  gap: 16px;

  margin-bottom: 30px;
}

/* =========================
   Status
========================= */

.timer-status {
  text-align: center;

  font-size: 18px;

  font-weight: bold;

  color: #555;
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

  .timer-display {
    font-size: 48px;
  }

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

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

}
