/* GGNoob Temp Mail - Clean, modern, AdSense-friendly design */
:root {
  --bg: #0f1419;
  --bg-card: #1a2332;
  --bg-input: #243044;
  --border: #2d3a4f;
  --text: #e8eef7;
  --text-muted: #8b9bb4;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--accent);
}
.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero / Main card */
main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Email box */
.email-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}

.email-display {
  flex: 1 1 260px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 1.05rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  color: var(--text);
  text-align: center;
  word-break: break-all;
  user-select: all;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.custom-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.custom-form input {
  flex: 1 1 180px;
  max-width: 240px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
}
.custom-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.custom-form .domain-suffix {
  color: var(--text-muted);
  align-self: center;
  font-family: ui-monospace, monospace;
}

/* Inbox */
.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.inbox-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
}
.status {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.status.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.message-list {
  list-style: none;
}
.message-item {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0.5rem;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 6px;
}
.message-item:hover {
  background: rgba(59, 130, 246, 0.08);
}
.message-item:last-child {
  border-bottom: none;
}
.msg-from {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.msg-subject {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.msg-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.empty-state svg {
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* Message detail modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}
.modal-close:hover {
  color: var(--text);
}
.modal-meta {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}
.modal-body.html-content {
  white-space: normal;
}
.modal-body iframe {
  width: 100%;
  min-height: 300px;
  border: none;
  background: #fff;
  border-radius: 6px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Content pages */
.page-content {
  max-width: 720px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.page-content h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
}
.page-content p,
.page-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.page-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.page-content a {
  color: var(--accent);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-muted);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

/* Ad placeholders (AdSense-ready) */
.ad-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.25rem 0;
  overflow: hidden;
}
.ad-slot.leaderboard {
  min-height: 90px;
}
.ad-slot.rectangle {
  min-height: 250px;
}
.ad-slot.sidebar {
  min-height: 600px;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.25rem;
  text-align: center;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--success);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .nav {
    gap: 0.75rem;
  }
  .nav a {
    font-size: 0.85rem;
  }
  .email-box {
    flex-direction: column;
  }
  .email-display {
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}
