/* Home Landing Page Styles (Clock7) */

.home-hero {
  padding: 28px 0 10px;
}

.home-hero .hero-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

.home-hero .hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.15;
}

.home-hero .subtitle {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.home-hero .controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero .btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255,255,255,0.04);
  color: var(--text-color);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}

.home-hero .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.55);
}

.home-hero .btn:active {
  transform: translateY(0);
}

.home-hero .btn.primary {
  border-color: rgba(74, 144, 226, 0.65);
  background: rgba(74, 144, 226, 0.12);
}

.home-hero .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.home-hero .greeting {
  font-weight: 700;
  font-size: 18px;
}

.home-hero .date {
  color: var(--text-secondary);
  font-size: 14px;
}

.home-hero .tz {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.clock-stage {
  margin-top: 18px;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px 8px;
  border-radius: 16px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .clock-stage {
  background: rgba(2, 6, 23, 0.03);
}

.clock-view {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.clock-view.active { display: flex; }

.digital-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.digital-ampm {
  display: inline-block;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 800;
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
  transform: translateY(-16px);
}

.analog-wrap {
  width: min(340px, 78vw);
  aspect-ratio: 1 / 1;
  position: relative;
}

.analog-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.06), rgba(0,0,0,0.08));
  position: relative;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.02), 0 18px 50px rgba(0,0,0,0.15);
}

.analog-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text-color);
  box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.25);
  z-index: 6;
}

.analog-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  font-weight: 800;
  color: var(--text-color);
  opacity: 0.92;
  font-size: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.analog-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 10px;
  transform-origin: center;
  background: rgba(148, 163, 184, 0.40);
  border-radius: 999px;
}

.analog-tick.major {
  height: 14px;
  width: 3px;
  background: rgba(148, 163, 184, 0.62);
}

.hand {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 4px;
  transform-origin: left center;
  border-radius: 999px;
  z-index: 5;
}

.hand.hour {
  width: 28%;
  height: 6px;
  background: var(--text-color);
  opacity: 0.95;
}

.hand.minute {
  width: 38%;
  height: 5px;
  background: rgba(74, 144, 226, 0.95);
}

.hand.second {
  width: 44%;
  height: 3px;
  background: rgba(239, 68, 68, 0.95);
  opacity: 0.95;
}

.quick-links {
  padding: 18px 0 40px;
}

.quick-links h2 {
  font-size: 18px;
  margin: 18px 0 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.tool-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.35);
}

.tool-emoji {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .tool-emoji {
  background: rgba(2, 6, 23, 0.03);
}

.tool-title {
  font-weight: 800;
  margin: 0;
  font-size: 15px;
}

.tool-desc {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

/* Responsive */
@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .home-hero .hero-card { padding: 16px; }
  .digital-ampm { transform: translateY(-10px); }
  .tool-grid { grid-template-columns: 1fr; }
}



/* Home only: extra breathing room below fixed header */
#main-content.home-hero{
  margin-top: 20px;
}


.analog-tick{
  left: 0;
  top: 0;
  transform-origin: center;
}










/* SEO content block (bottom) */
.seo-block{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.03);
}

.seo-block h2{
  margin: 0 0 10px;
  font-size: 18px;
}

.seo-block h3{
  margin: 0 0 6px;
  font-size: 15px;
}

.seo-block p{
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 14px;
}

.seo-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

.seo-card{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .seo-card{
  background: rgba(2, 6, 23, 0.03);
}

@media (max-width: 900px){
  .seo-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .seo-grid{ grid-template-columns: 1fr; }
}



/* Home controls: nicer toolbar without breaking layout */
.home-hero .controls {
  align-items: center;
  gap: 8px;
}

.home-hero .controls .btn {
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* On smaller screens, wrap nicely and avoid huge-looking buttons */
@media (max-width: 720px) {
  .home-hero .controls {
    width: 100%;
  }
  .home-hero .controls .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}







.home-blog-section{ margin-top: 14px; }

.home-blog-mount{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
  padding: 14px;
}

.home-blog-loading,.home-blog-empty{ padding: 10px; opacity:.8; }

.home-blog-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom: 8px;
}
.home-blog-kicker{ font-size:12px; opacity:.8; }
.home-blog-title{ font-weight:900; font-size:16px; line-height:1.2; }
.home-blog-link{ text-decoration:none; font-size:13px; font-weight:800; }

.home-cat-block{ margin-top: 14px; }
.home-cat-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin: 0 0 10px 0;
}
.home-cat-title{ font-weight:900; font-size:15px; }
.home-cat-sub{ font-size:12px; opacity:.75; margin-top:2px; }
.home-cat-link{ text-decoration:none; font-size:13px; font-weight:800; }

.home-blog-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-blog-card{
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,0.10);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-blog-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.home-blog-img img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
}

.home-blog-body{ padding:10px 10px 12px; }
.home-blog-meta{ font-size:12px; opacity:.75; margin-bottom:6px; font-weight:800; }
.home-blog-h{ font-weight:900; font-size:14px; line-height:1.25; margin-bottom:6px; }
.home-blog-d{
  font-size:12px; opacity:.8; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

@media (max-width: 980px){
  .home-blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .home-blog-grid{ grid-template-columns: 1fr; }
  .home-blog-img img{ height: 160px; }
}
