/* TempMail.Pink - Complete Styles */

/* =================== RESET & BASE =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: linear-gradient(to bottom, #fdf2f8 0%, #ffffff 100%);
  color: #1f2937;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', 'Inter', system-ui, sans-serif;
}
.heading-gradient {
  background: linear-gradient(to right, #f472b6, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =================== LAYOUT =================== */
.app-container { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.app-header {
  background: white;
  border-bottom: 2px solid #fce7f3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
}
.header-inner a { display: flex; align-items: center; transition: transform 0.3s; }
.header-inner a:hover { transform: scale(1.05); }
.brand-logo { display: flex; align-items: center; gap: 0.5rem; }
.envelope-icon {
  position: relative;
  width: 2.25rem;
  height: 1.75rem;
  background: #ec4899;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #fb7185;
  clip-path: polygon(0 0, 50% 50%, 100% 0);
  transform-origin: top;
  transition: transform 0.5s ease-in-out;
  z-index: 2;
}
.envelope-flap.open { transform: rotateX(180deg); }
.envelope-content {
  position: absolute;
  top: 0.5rem; left: 0;
  width: 100%; height: calc(100% - 0.5rem);
  background: #fce7f3;
  z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.dot { width: 4px; height: 4px; background: #ec4899; border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: 0.5s; }
.dot:nth-child(3) { animation-delay: 1s; }
.brand-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  background: linear-gradient(to right, #f472b6, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main content */
.app-main { flex: 1; padding: 1.5rem 0; }

/* Container */
.container { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

/* Footer */
.app-footer {
  background: white;
  border-top: 2px solid #fce7f3;
  margin-top: auto;
}
.footer-inner {
  max-width: 80rem; margin: 0 auto; padding: 2rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-link { color: #ec4899; font-size: 0.875rem; transition: color 0.2s; }
.footer-link:hover { color: #be185d; }
.footer-badge {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #fce7f3;
  color: #9d174d;
  animation: pulse-soft 2s infinite;
}
.footer-copy { font-size: 0.875rem; color: #6b7280; }

/* =================== CARDS =================== */
.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  border: 2px solid #fce7f3;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  transition: all 0.3s;
  transform: scale(1);
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(to right, #f472b6, #db2777);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(236,72,153,0.3);
}
.btn-primary:hover {
  background: linear-gradient(to right, #ec4899, #be185d);
  box-shadow: 0 6px 10px -1px rgba(236,72,153,0.4);
}
.btn-secondary {
  background: white; color: #ec4899;
  border: 2px solid #f9a8d4;
}
.btn-secondary:hover { background: #fdf2f8; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* =================== EMAIL DISPLAY =================== */
.email-display {
  display: flex; align-items: center;
  width: 100%;
  background: linear-gradient(to right, #fdf2f8, #ffffff);
  border: 2px solid #f9a8d4;
  border-radius: 0.75rem;
  padding: 1rem;
  gap: 0.75rem;
}
.email-display .email-text {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: #374151;
  word-break: break-all;
  flex: 1;
}

/* =================== EMAIL BOX (Inbox Items) =================== */
.email-box {
  background: white;
  border: 2px solid #fce7f3;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0.5rem 0;
  transition: all 0.3s;
  cursor: pointer;
}
.email-box:hover { background: #fdf2f8; }
.email-box-subject { font-size: 1.125rem; font-weight: 500; color: #db2777; }
.email-box-from { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; }
.email-box-preview { font-size: 0.875rem; color: #9ca3af; margin-top: 0.375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =================== EMAIL DETAIL =================== */
.email-header {
  background: #fdf2f8;
  border: 2px solid #fce7f3;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.email-header-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
@media (min-width: 768px) { .email-header-grid { grid-template-columns: 1fr 1fr; } }
.email-header-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #6b7280; }
.email-header-label { font-weight: 500; }

/* Email content */
.email-content {
  background: white;
  border: 2px solid #fce7f3;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
}
.email-content img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.email-content a { color: #db2777; text-decoration: underline; text-underline-offset: 2px; }
.email-content table { max-width: 100%; border-collapse: collapse; }
.email-content td, .email-content th { padding: 0.5rem; border: 1px solid #e5e7eb; }

/* Pre (plain text) */
.email-text-content {
  white-space: pre-wrap;
  font-size: 0.875rem;
  color: #374151;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  line-height: 1.6;
}

/* =================== LOADING =================== */
.loading { display: flex; justify-content: center; align-items: center; padding: 3rem 0; }
.loading-spinner {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ec4899;
  border-bottom-color: #ec4899;
  animation: spin 1.2s linear infinite;
}
.loading-label { margin-left: 1rem; color: #ec4899; animation: pulse-soft 2s infinite; }

/* =================== EMPTY STATE =================== */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state-icon { color: #f9a8d4; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; color: #1f2937; margin-bottom: 0.5rem; }
.empty-state p { color: #6b7280; font-size: 0.875rem; }

/* =================== FEATURES GRID =================== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { text-align: center; }
.feature-card:hover { border-color: #f9a8d4; }
.feature-icon { color: #ec4899; margin-bottom: 1rem; }
.feature-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-desc { color: #6b7280; }

/* =================== NOTIFICATION =================== */
.notification {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s;
  z-index: 100;
}
.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { background: #10b981; }
.notification.error { background: #ef4444; }
.notification.info { background: #3b82f6; }

/* =================== MISC =================== */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.hidden { display: none; }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }

/* =================== ANIMATIONS =================== */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes bounce-small {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes fadeInCard { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.7s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-bounce-small { animation: bounce-small 2s ease-in-out infinite; }

/* =================== CONTENT PAGES =================== */
.content { padding: 2rem 0; }
.content h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.content h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.content h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content p { font-size: 1rem; line-height: 1.75; color: #4b5563; margin-bottom: 1rem; }
.content p:last-child { margin-bottom: 0; }
.content a { color: #db2777; text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: #be185d; }
.content strong { font-weight: 600; color: #1f2937; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content li { font-size: 1rem; line-height: 1.75; color: #4b5563; margin-bottom: 0.25rem; }
.content li:last-child { margin-bottom: 0; }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.content th {
  text-align: left;
  font-weight: 600;
  color: #374151;
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid #fce7f3;
  background: #fdf2f8;
}
.content td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #fce7f3;
  color: #4b5563;
}
.content tr:last-child td { border-bottom: none; }
.content ol li { margin-bottom: 0.5rem; }
@media (max-width: 640px) {
  .content { padding: 1.25rem 0; }
}
.animate-fade-in-card { animation: fadeInCard 0.5s ease-out forwards; }
