﻿:root {
  --pride-purple: #7c3aed;
  --pride-pink: #ec4899;
  --pride-blue: #3b82f6;
  --pride-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
  font-family: "Montserrat", sans-serif;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background: var(--pride-gradient) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ff0080 0%, #ff8c00 25%, #40e0d0 50%, #9333ea 75%, #ff0080 100%);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  padding: 10rem 2rem 6rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2.5rem;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.non-animation {
  animation: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.search-bar {
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  border-radius: 50px;
  padding: 15px 25px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--pride-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#main-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.blog-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.blog-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card .card-text {
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-category {
  background: var(--pride-gradient);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge-category a {
  color: white;
  text-decoration: none;
}

.blog-listing > div:nth-child(1) .blog-card div.listing-image, .related-posts > div.container > div > div:nth-child(6) > article.related-card > div.post-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  height: 250px;
}

.blog-listing > div:nth-child(2) .blog-card div.listing-image, .related-posts > div.container > div > div:nth-child(5) > article.related-card > div.post-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  height: 250px;
}

.blog-listing > div:nth-child(3) .blog-card div.listing-image, .related-posts > div.container > div > div:nth-child(4) > article.related-card > div.post-image {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  height: 250px;
}

.blog-listing > div:nth-child(4) .blog-card div.listing-image, .related-posts > div.container > div > div:nth-child(3) > article.related-card > div.post-image {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  height: 250px;
}

.blog-listing > div:nth-child(5) .blog-card div.listing-image, .related-posts > div.container > div > div:nth-child(2) > article.related-card > div.post-image {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  height: 250px;
}

.blog-listing > div:nth-child(6) .blog-card div.listing-image, .related-posts > div.container > div > div:nth-child(1) > article.related-card > div.post-image {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  height: 250px;
}

.post-date {
  color: #6b7280;
  font-size: 0.9rem;
}

.author-info {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.author-info .author-name {
  color: #374151;
  font-weight: 600;
}

.read-time {
  color: #9ca3af;
}

.btn-pride {
  background: var(--pride-gradient);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-pride:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.section-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--pride-gradient);
  border-radius: 2px;
}

.featured-post {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.featured-post img {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.featured-content {
  padding: 2rem;
}

footer {
  background: #1f2937;
  color: white;
  padding: 40px 0 20px;
  margin-top: 80px;
}

.filter-btn {
  border-radius: 20px;
  padding: 8px 20px;
  margin: 5px;
  border: 2px solid #e5e7eb;
  background: white;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--pride-gradient);
  border-color: transparent;
  color: white;
}

.pagination {
  margin-top: 3rem;
}

.pagination .page-link {
  color: var(--pride-purple);
  border-radius: 50%;
  margin: 0 5px;
  border: 2px solid #e5e7eb;
}

.pagination .page-link:hover {
  background: var(--pride-gradient);
  color: white;
  border-color: transparent;
}

.pagination .page-item.active .page-link {
  background: var(--pride-gradient);
  border-color: transparent;
}

/* Accessibility improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}

/* Article */
.article-header {
  text-align: left;
  /* background: var(--pride-gradient);*/
  color: white;
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-header .article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.article-header .article-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}
.article-header .author-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}
.article-header .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.article-header .author-info {
  flex: 1;
}
.article-header .author-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}
.article-header .article-meta-text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

.tags-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0.25rem;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tag:hover {
  background: var(--pride-gradient);
  color: white;
}

/* Make sure the featured image can overlap */
.featured-image-container {
  position: relative;
  z-index: 2;
}
