/* Base Styles */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Blog Banner */
.blog-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="150" r="80" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="400" r="100" fill="rgba(255,255,255,0.08)"/><circle cx="1000" cy="100" r="60" fill="rgba(255,255,255,0.12)"/><circle cx="400" cy="450" r="70" fill="rgba(255,255,255,0.09)"/><path d="M100,300 Q300,200 500,300 T900,300" stroke="rgba(255,255,255,0.15)" stroke-width="3" fill="none"/><path d="M200,100 Q400,50 600,100 T1000,100" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.blog-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-description {
  font-size: 1.3rem;
  color: #f0f0f0;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.quantum-vectors {
  margin-top: 2rem;
  font-size: 3rem;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  letter-spacing: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.quantum-vectors .vector {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.quantum-vectors .vector:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Dirac Portrait (public domain image overlay) */
.blog-banner .dirac-portrait {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  width: clamp(140px, 18vw, 240px);
  opacity: 0.14;
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
}
.blog-banner .dirac-portrait img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(110%) brightness(125%);
}
@media (max-width: 768px) {
  .blog-banner .dirac-portrait { display: none; }
}

/* Feynman Portrait (public domain image overlay) */
.blog-banner .feynman-portrait {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: clamp(140px, 18vw, 240px);
  opacity: 0.14;
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
}
.blog-banner .feynman-portrait img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(110%) brightness(125%);
}
@media (max-width: 768px) {
  .blog-banner .feynman-portrait { display: none; }
}

/* Blog Post Preview */
.blog-post-preview {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 2rem;
}

.post-preview-header {
  margin-bottom: 1rem;
}

.post-preview-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.post-preview-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-preview-title a:hover {
  color: #3498db;
}

.post-preview-meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-preview-author {
  margin-left: 1rem;
}

.post-preview-excerpt {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #2980b9;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
}

.post-tags .badge {
  font-weight: normal;
  padding: 0.25rem 0.75rem;
}

/* Individual Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #3498db;
}

.post-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.post-meta {
  color: #7f8c8d;
  font-size: 1rem;
}

.post-author {
  margin-left: 1rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 3rem;
}

.post-content h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content pre {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
}

.post-footer {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid #e5e5e5;
}

/* Sidebar */
.sidebar {
  padding-left: 2rem;
}

.sidebar-module {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.sidebar-module h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.sidebar-module p {
  margin-bottom: 0;
  color: #555;
}

.sidebar-module ol {
  padding-left: 0;
}

.sidebar-module ol li {
  margin-bottom: 0.5rem;
}

.sidebar-module a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-module a:hover {
  color: #2980b9;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: #f8f9fa;
  margin-top: 7rem;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar {
    padding-left: 0;
    margin-top: 3rem;
  }

  .blog-title {
    font-size: 2rem;
  }

  .post-title {
    font-size: 2rem;
  }
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.pagination .page-link {
  color: #3498db;
  background-color: #fff;
  border: 1px solid #3498db;
  font-weight: 500;
}

.pagination .page-item.active .page-link {
  background-color: #3498db;
  border-color: #3498db;
  color: #fff;
}

.pagination .page-link:hover {
  color: #fff;
  background-color: #2980b9;
  border-color: #2980b9;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

/* About Page */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-page h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3498db;
}

.about-page h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content ul {
  margin-bottom: 1.5rem;
}

.about-content li {
  margin-bottom: 0.5rem;
}

.contact-links {
  list-style: none;
  padding-left: 0;
}

.contact-links li {
  margin-bottom: 0.75rem;
}

.contact-links a {
  color: #3498db;
  text-decoration: none;
}

.contact-links a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Form Controls */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.highlight-box p {
    margin-bottom: 10px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.contact-cta {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.contact-cta p {
    margin-bottom: 10px;
}

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

.newsletter-signup {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.newsletter-form {
    max-width: 400px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-form .form-control {
    flex: 1;
}

.newsletter-form .btn {
    white-space: nowrap;
}

.location-map {
    text-align: center;
    margin: 20px 0;
}

.florida-map-small {
    width: 25%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

.map-caption {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #0a3622;
    background-color: #d1e7dd;
    border-color: #a3cfbb;
}

.alert-danger {
    color: #58151c;
    background-color: #f8d7da;
    border-color: #f1aeb5;
}