/* Contact page styles */

#contact-auth-section {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.contact-auth-prompt h3,
.contact-protected-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-auth-prompt p {
  margin-bottom: 0.5rem;
  color: #495057;
  line-height: 1.6;
}

.contact-auth-prompt p:last-child {
  margin-bottom: 0;
}

.inline-login-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: inherit;
  font-weight: 500;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.inline-login-btn:hover {
  background: #3367d6;
}

.auth-note {
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
}

/* Protected content styles */
.contact-protected-content {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.email-container {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #e8f5e8;
  border-radius: 6px;
  border-left: 4px solid #28a745;
}

.protected-email {
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f5132;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.protected-email:hover {
  color: #198754;
  text-decoration: underline;
}

.protected-email::before {
  content: "✉️";
  font-size: 1.25rem;
}

.contact-note {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Dark mode support - Hugo-coder theme specific */
body.colorscheme-dark #contact-auth-section {
  background-color: #2a2a2a;
  border-color: #333;
}

body.colorscheme-dark .contact-auth-prompt h3,
body.colorscheme-dark .contact-protected-content h3 {
  color: #8cc8ff;
}

body.colorscheme-dark .contact-auth-prompt p {
  color: #ccc;
}

body.colorscheme-dark .auth-note,
body.colorscheme-dark .contact-note {
  color: #999;
}

body.colorscheme-dark .email-container {
  background-color: #1a2f1a;
  border-left-color: #28a745;
}

body.colorscheme-dark .protected-email {
  color: #90ee90;
}

body.colorscheme-dark .protected-email:hover {
  color: #98fb98;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #contact-auth-section {
    margin: 1rem 0;
    padding: 1.5rem;
  }
  
  .protected-email {
    font-size: 1rem;
  }
}