/* ============================================================
   Casio F-91W — Single Page Clock
   ============================================================ */

:root {
  --header-height: 60px;
  --bg: #1a1a1a;
  --text-color: #e8e6e3;
  --text-muted: rgba(232, 230, 227, 0.35);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-border: rgba(255, 255, 255, 0.1);
  --chip-text: #a8a5a0;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(26, 26, 26, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 16px) 20px 16px;
  gap: 28px;
}

.clock-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.15s both;
}

/* ============================================================
   CASIO F-91W PHOTO & LCD
   ============================================================ */

.casio-photo-wrapper {
  position: relative;
  width: 95vw;
  max-width: 90vh;
  aspect-ratio: 514 / 512;
  container-type: inline-size;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.casio-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.5));
}

/* Invisible Interactive Buttons for the Watch */
.casio-btn {
  position: absolute;
  width: 8%;
  height: 12%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
/* Approximate positions based on a typical F-91W frame */
.casio-btn-top-left {
  top: 32%;
  left: 2%;
}
.casio-btn-bottom-left {
  top: 60%;
  left: 2%;
}
.casio-btn-bottom-right {
  top: 60%;
  right: 2%;
}

/* Position exactly over the LCD screen of the photo */
.casio-photo-lcd {
  position: absolute;
  top: 35.5%;
  left: 24.5%;
  width: 51.5%;
  height: 23.8%;
  background: #8b8f8d; /* Exact matching grey from the macro photo */
  border-radius: 0.8cqw;
  box-shadow: inset 0px 0.5cqw 1cqw rgba(0,0,0,0.15), inset 0px -0.2cqw 0.5cqw rgba(255,255,255,0.05);
  padding: 1.5cqw 2cqw;
  display: flex;
  flex-direction: column;
  transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

/* Backlight active state (Green LED from the left side) */
.casio-photo-lcd.backlight-active {
  background: #a1d99b; /* Lighter greenish hue */
  box-shadow: inset 20cqw 0 15cqw -10cqw rgba(130, 255, 130, 0.6), inset 0px 0.5cqw 1cqw rgba(0,0,0,0.15);
}

.casio-lcd {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.casio-lcd-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 35%;
}

.casio-lcd-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.5cqw;
}

.casio-icon-svg {
  width: 7cqw;
  height: auto;
  margin-bottom: 0.5cqw;
  filter: drop-shadow(0.2cqw 0.2cqw 0.15cqw rgba(0,0,0,0.15));
}

.casio-icon-svg path, .casio-icon-svg circle {
  stroke: #1e201f;
  fill: none;
}
.casio-icon-svg path[fill="#2b2d29"], .casio-icon-svg circle[fill="#2b2d29"] {
  fill: #1e201f;
  stroke: none;
}

.casio-pm {
  font-family: 'Share Tech Mono', 'DSEG14-Classic', monospace;
  font-weight: 700;
  font-size: 3.2cqw;
  color: #1e201f;
  line-height: 1;
  padding-left: 0.2cqw;
  text-shadow: 0.2cqw 0.2cqw 0.15cqw rgba(0,0,0,0.15);
}

.casio-lcd-date-area {
  display: flex;
  gap: 1.5cqw;
  align-items: baseline;
  padding-top: 1cqw;
  padding-right: 1cqw;
}

.casio-day, .casio-date {
  font-family: 'DSEG14-Classic', 'DSEG7-Classic', monospace;
  font-size: 5cqw;
  font-style: italic;
  color: #1e201f;
  line-height: 1;
  text-shadow: 0.2cqw 0.2cqw 0.15cqw rgba(0,0,0,0.15);
}

.casio-lcd-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 0;
  margin-left: -1cqw;
  flex: 1;
}

.casio-hour, .casio-minute {
  font-family: 'DSEG7-Classic', monospace;
  font-size: 11.8cqw;
  font-style: italic;
  color: #1e201f;
  line-height: 1;
  text-shadow: 0.2cqw 0.2cqw 0.15cqw rgba(0,0,0,0.15);
  letter-spacing: 0.2cqw;
}

.casio-colon {
  font-family: 'DSEG7-Classic', monospace;
  font-size: 8.5cqw;
  font-style: italic;
  color: #1e201f;
  margin: 0 0.2cqw;
  transform: translateY(-1.5cqw);
  text-shadow: 0.2cqw 0.2cqw 0.15cqw rgba(0,0,0,0.15);
  transition: opacity 0.1s linear;
}

.casio-colon.blink {
  opacity: 0;
}

.casio-second {
  font-family: 'DSEG7-Classic', monospace;
  font-size: 7.2cqw;
  font-style: italic;
  color: #1e201f;
  margin-left: 1cqw;
  transform: translateY(-0.2cqw);
  text-shadow: 0.2cqw 0.2cqw 0.15cqw rgba(0,0,0,0.15);
}

/* ============================================================
   INFO BAR & FOOTER
   ============================================================ */
.info-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--chip-text);
  font-size: 0.76rem;
  font-weight: 500;
}

.site-footer {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   GOOGLE ADSENSE AD CONTAINERS
   ============================================================ */
.ad-container {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}

.ad-below-clock {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeInUp 0.6s ease 0.45s both;
}

.ad-footer {
  padding: 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hide ads on very small screens to keep mobile UX clean */
@media (max-height: 500px) {
  .ad-below-clock {
    display: none;
  }
}

/* ============================================================
   SEO CONTENT SECTION
   ============================================================ */
.seo-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 16px;
  color: var(--chip-text);
  font-size: 0.85rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.seo-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
}

.seo-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 20px;
  margin-bottom: 8px;
}

.seo-content p {
  margin-bottom: 12px;
}

.seo-content ul {
  list-style: none;
  padding: 0;
}

.seo-content ul li {
  padding: 4px 0;
}

.seo-content ul li strong {
  color: var(--text-color);
}
