/*
 * email-check.css
 * Estilo premium para Validador de Configurações de E-mail - SinapseTech
 * Inspirado nos padrões modernos do site: glassmorphism, gradientes, dark mode, responsividade
 */

:root {
  --primary: #00e0c6;
  --secondary: #2d3748;
  --background: #181c24;
  --card-bg: rgba(32, 38, 50, 0.85);
  --glass: rgba(40, 48, 60, 0.55);
  --border-glass: rgba(255,255,255,0.12);
  --success: #00e0c6;
  --warning: #ffd166;
  --error: #ff4e4e;
  --text: #f4f4f4;
  --muted: #a0aec0;
  --accent: linear-gradient(90deg, #00e0c6 0%, #3a86ff 100%);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
  --radius: 18px;
  --font-main: 'Poppins', 'Inter', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #232946 0%, #16181d 100%);
  font-family: var(--font-main);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 32px 16px 0 16px;
}

header, footer {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container img {
  height: 40px;
  filter: drop-shadow(0 2px 6px #00e0c6cc);
}

.header-nav a, .footer-links a {
  color: var(--primary);
  font-weight: 500;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover, .footer-links a:hover {
  color: #fff;
}

.share-icons .share-button {
  background: var(--glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--primary);
  margin-left: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.share-icons .share-button:hover {
  background: var(--primary);
  color: #232946;
}

.container {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px 24px 24px;
}

.tool-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.tool-header .tool-title {
  font-size: 2.2rem;
  letter-spacing: -1px;
  font-weight: 700;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  margin-bottom: 0;
  flex: 1 1 300px;
  min-width: 200px;
}

.intro-section {
  margin-bottom: 24px;
}
.intro-text {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.input-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px 0 rgba(0,224,198,0.07);
  padding: 24px;
  margin-bottom: 32px;
  border: 1.5px solid var(--border-glass);
}
.panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.panel-header .panel-icon {
  color: var(--primary);
  font-size: 1.4rem;
  margin-right: 10px;
}
.panel-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
.panel-content {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.input-group {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
}
.input-group label {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary);
  display: flex;
  align-items: center;
}
.input-group input {
  background: var(--glass);
  border: 1.5px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 6px;
  outline: none;
  transition: border 0.2s;
}
.input-group input:focus {
  border: 1.5px solid var(--primary);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 #00e0c644;
  transition: background 0.2s, transform 0.12s;
  margin-top: 0;
  margin-right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
@media (max-width: 600px) {
  .tool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tool-header .tool-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
  .tool-actions {
    width: 100%;
    gap: 8px;
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 6px;
  }
}
.btn-primary:hover {
  background: linear-gradient(90deg, #3a86ff 0%, #00e0c6 100%);
  transform: translateY(-2px) scale(1.04);
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px 0;
}
.loading-spinner {
  border: 5px solid #2d3748;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  animation: spin 1.1s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.results-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  margin-bottom: 28px;
  border: 1.5px solid var(--border-glass);
}
.results-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
}
.results-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.summary-score {
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 22px;
  box-shadow: 0 2px 12px #00e0c633;
  animation: pulseScore 1.2s infinite alternate;
}
@keyframes pulseScore {
  0% { box-shadow: 0 2px 12px #00e0c633; }
  100% { box-shadow: 0 4px 22px #3a86ff44; }
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
  justify-content: flex-start;
}
.result-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
@media (max-width: 700px) {
  .results-grid {
    gap: 16px;
  }
}
.result-card {
  background: var(--glass);
  border-radius: 14px;
  border: 1.5px solid var(--border-glass);
  box-shadow: 0 2px 16px #00e0c61a;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 180px;
  transition: box-shadow 0.18s, border 0.18s, transform 0.15s;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.result-card:hover {
  box-shadow: 0 8px 32px #00e0c644;
  border: 1.5px solid var(--primary);
  transform: translateY(-3px) scale(1.025);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.status-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: 8px;
  background: var(--muted);
  box-shadow: 0 0 0 2px var(--border-glass);
  transition: background 0.2s;
}
.result-card.status-ok .status-indicator {
  background: var(--success);
}
.result-card.status-warning .status-indicator {
  background: var(--warning);
}
.result-card.status-error .status-indicator {
  background: var(--error);
}
.explanation {
  color: var(--muted);
  font-size: 0.99rem;
  margin-bottom: 10px;
}
.result-content {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 10px;
  min-height: 32px;
}
.card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.learn-more {
  color: var(--primary);
  font-size: 0.97rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.learn-more:hover {
  color: #fff;
}

/* Info Cards */
.info-section {
  margin: 38px 0 0 0;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .info-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.info-card {
  background: var(--glass);
  border-radius: 12px;
  border: 1.5px solid var(--border-glass);
  box-shadow: 0 2px 12px #00e0c61a;
  min-width: 0;
  min-height: 140px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.18s, transform 0.15s;
  box-sizing: border-box;
  z-index: 1;
}
.info-card:hover {
  box-shadow: 0 8px 32px #00e0c644;
  border: 1.5px solid var(--primary);
  transform: translateY(-2px) scale(1.02);
}
.info-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.info-card h3 {
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  font-weight: 600;
}
.info-card p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* Notification */
.notification {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: var(--glass);
  color: #fff;
  border-radius: 10px;
  padding: 16px 28px;
  box-shadow: 0 2px 16px #00e0c633;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9999;
}
.notification.active {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
footer {
  margin-top: 38px;
  font-size: 1.02rem;
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-logo img {
  height: 36px;
  filter: drop-shadow(0 2px 6px #00e0c6cc);
}
.footer-links a {
  margin: 0 10px;
}
.version {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Responsividade */
/* Corrigido acima: grid-template-columns aplicado individualmente para .results-grid e .info-cards */
@media (max-width: 900px) {
  .container {
    padding: 18px 4px 14px 4px;
  }
}
@media (max-width: 600px) {
  .page-wrapper {
    padding: 10px 2px 0 2px;
  }
  header, footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px;
  }
  .logo-container img, .footer-logo img {
    height: 32px;
  }
  .tool-header .tool-title {
    font-size: 1.3rem;
  }
  .results-title, .section-title {
    font-size: 1.05rem;
  }
}
