/* ── RESET & VARIABLES ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #B22234;
  --blue:   #3C3B6E;
  --white:  #FFFFFF;
  --gold:   #FFD700;
  --bg:     #0a0a1a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ── BASE ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(178, 34, 52, 0.04) 0px,
    rgba(178, 34, 52, 0.04) 2px,
    transparent 2px,
    transparent 12px
  );
  color: var(--white);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ────────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--blue) 0%, #1a1864 100%);
  border-bottom: 4px solid var(--red);
  padding: 1.25rem 1rem;
  text-align: center;
}

.site-title {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 10vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  line-height: 1;
}

.dot-com { color: var(--gold); }

.site-tagline {
  margin-top: 0.5rem;
  font-size: clamp(0.6rem, 2.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* ── MAIN LAYOUT ───────────────────────────────────────────────────────────── */
.container {
  flex: 1;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ── IP BLOCK ──────────────────────────────────────────────────────────────── */
.ip-block {
  background: linear-gradient(135deg, var(--blue), #1a1864);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow), 0 0 20px rgba(255, 215, 0, 0.15);
}

.ip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ip-address {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.5rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  word-break: break-all;
  line-height: 1.2;
}

/* ── PHOTO BLOCK ───────────────────────────────────────────────────────────── */
.photo-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trump-photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius);
  border: 4px solid var(--red);
  box-shadow: var(--shadow), 0 0 30px rgba(178, 34, 52, 0.3);
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.trump-photo.fading { opacity: 0; }

.photo-caption {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.photo-caption.fading { opacity: 0; }

/* ── QUOTE BLOCK ───────────────────────────────────────────────────────────── */
.quote-block {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}

.quote-text {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  transition: opacity 0.2s ease;
}

.quote-text.fading { opacity: 0; }

/* ── REFRESH BUTTON ────────────────────────────────────────────────────────── */
.refresh-btn {
  background: linear-gradient(135deg, var(--red), #8b0000);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(0.85rem, 2.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1rem 2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-width: 220px;
  min-height: 54px;
  text-transform: uppercase;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(178, 34, 52, 0.5);
}

.refresh-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 2px solid var(--blue);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── RESPONSIVE: TABLET AND UP ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .container { padding: 2rem 1.5rem; gap: 2rem; }
  .ip-block { padding: 1.5rem 3rem; }
  .quote-block { padding: 1.5rem 2rem; }
}
