/* MLDiscord.com - Custom Styles */
/* Tailwind CSS is loaded via CDN in HTML files */

/* Additional custom styles for calming grey and navy blue theme */
:root {
  --navy-blue: #1E3A5F;
  --navy-dark: #152238;
  --navy-light: #2D4A6B;
  --blue-primary: #2563EB;
  --blue-dark: #1E40AF;
  --blue-light: #DBEAFE;
  --grey-bg: #F5F7FA;
  --grey-bg-alt: #E8EAED;
  --grey-medium: #64748B;
  --grey-light: #CBD5E1;
  --grey-text: #334155;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Subtle gradient background */
body {
  background: linear-gradient(135deg, #F5F7FA 0%, #E8EAED 50%, #F5F7FA 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow-x: hidden;
}

/* Animated blurry bubbles */
.bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.05);
  filter: blur(40px);
  animation: float 20s infinite ease-in-out;
  opacity: 0.6;
}

.bubble:nth-child(1) {
  width: 300px;
  height: 300px;
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.bubble:nth-child(2) {
  width: 200px;
  height: 200px;
  left: 50%;
  top: 60%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.bubble:nth-child(3) {
  width: 250px;
  height: 250px;
  left: 80%;
  top: 10%;
  animation-delay: 10s;
  animation-duration: 28s;
}

.bubble:nth-child(4) {
  width: 180px;
  height: 180px;
  left: 30%;
  top: 70%;
  animation-delay: 15s;
  animation-duration: 32s;
}

.bubble:nth-child(5) {
  width: 220px;
  height: 220px;
  left: 70%;
  top: 40%;
  animation-delay: 8s;
  animation-duration: 27s;
}

.bubble:nth-child(6) {
  width: 160px;
  height: 160px;
  left: 20%;
  top: 50%;
  animation-delay: 12s;
  animation-duration: 35s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, -100px) scale(0.9);
  }
  75% {
    transform: translate(40px, -30px) scale(1.05);
  }
}

/* Subtle gradient animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Ensure content is above bubbles */
main, header, footer {
  position: relative;
  z-index: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--grey-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-medium);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-blue);
}

/* Discord widget container */
.discord-widget {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Project card hover effect */
.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Markdown content styling */
.markdown-content {
  line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--navy-blue);
}

.markdown-content p {
  margin-bottom: 1rem;
}

.markdown-content code {
  background-color: var(--grey-light);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.markdown-content pre {
  background-color: var(--navy-dark);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.markdown-content a {
  color: var(--navy-blue);
  text-decoration: underline;
}

.markdown-content a:hover {
  color: var(--navy-dark);
}

/* Admin form styling */
.admin-form {
  max-width: 800px;
}

/* Loading spinner */
.spinner {
  border: 3px solid var(--grey-light);
  border-top: 3px solid var(--navy-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

/* Pill-shaped header */
.pill-header {
  background: white;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 1.5rem auto 0.5rem auto;
  max-width: 1400px;
  padding: 1rem 2rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

