
:root {
  --accent-line: #fbc067f1;
  --text-light: #FFFFFF;
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
  --banner-border: 3px solid var(--accent-line);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background: url('collageBG.png') left top/cover no-repeat fixed;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(30deg); }
}

.site-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 3px solid var(--accent-line);
  box-shadow: 0 4px 20px rgba(251, 192, 103, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 192, 103, 0.2), transparent);
  transition: left 0.5s ease;
}

.main-nav a:hover::before {
  left: 100%;
}

.main-nav a:hover {
  border-color: var(--accent-line);
  color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 192, 103, 0.3);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(251, 192, 103, 0.3), rgba(251, 192, 103, 0.1));
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 70%;
  right: 15%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 85%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.center-banner {
  position: absolute;
  margin: 3rem 0;
  z-index: 10;
}

.banner {
  position: relative;
  width: 100vw;
  display: inline-block;
  padding: 3rem 6rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: var(--banner-border);
  box-shadow: 0 0 40px rgba(251, 192, 103, 0.4);
  animation: bannerGlow 3s ease-in-out infinite alternate;
  box-sizing: border-box;
}

@keyframes bannerGlow {
  0% { box-shadow: 0 0 40px rgba(251, 192, 103, 0.4); }
  100% { box-shadow: 0 0 60px rgba(251, 192, 103, 0.6); }
}

.banner h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(251, 192, 103, 0.5);
  animation: titleGlow 2s ease-in-out infinite alternate;
  margin: 0;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 20px rgba(251, 192, 103, 0.5); }
  100% { text-shadow: 0 0 30px rgba(251, 192, 103, 0.8), 0 0 40px rgba(255, 255, 255, 0.3); }
}

.legend {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-align: center;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
}

.legend-top {
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

.legend-bottom {
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border-top: 3px solid var(--accent-line);
  box-shadow: 0 -4px 20px rgba(251, 192, 103, 0.3);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Articles Layout Structure */
.articles-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 100px 2rem 80px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.leftcolumn {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rightcolumn {
  flex: 0 0 28%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card styling — consistent with your homepage glassmorphism */
.card {
  background: rgba(0, 0, 0, 0.7);
  border: var(--banner-border);
  padding: 2rem;
  box-shadow: 0 0 20px rgba(251, 192, 103, 0.3);
  border-radius: 0;
}

/* Category Navigation */
.category-nav {
  margin: 1rem 0;
}

.category-nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.category-nav a:hover {
  color: var(--accent-line);
}

/* Article List Items */
#article-list {
  list-style: none;
  padding-left: 0;
}

#article-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

#article-list li a {
  color: var(--text-light);
  text-decoration: underline;
}

#article-list li a:hover {
  color: var(--accent-line);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .articles-layout {
    flex-direction: column;
  }
  .leftcolumn, .rightcolumn {
    flex: 0 0 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .banner {
    padding: 1.5rem 2rem;
  }

  .main-content {
    padding: 100px 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 1.5rem;
  }

  .legend {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Articles Page Styles */

.articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 120px 2rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

.articles-header {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 2rem;
}

.articles-header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: center;
  text-decoration-line: underline;

  /* Multi-layered text-shadow to simulate an outline */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 0 20px rgba(17, 16, 15, 0.3);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  transform: rotate(-1deg);
}

.category-nav a {
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--accent-line);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-nav a:hover {
  background: var(--accent-line);
  color: #000;
}

.articles-list {
  background: rgba(0,0,0,0.75);
  border: var(--banner-border);
  padding: 2rem;
  box-shadow: 0 0 20px rgba(251,192,103,0.3);
}

.articles-list ul {
  list-style: none;
}

.articles-list li {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.articles-list a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.articles-list a:hover {
  color: var(--accent-line);
}

.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.articles-sidebar .card {
  background: rgba(0,0,0,0.85);
  border: var(--banner-border);
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(251,192,103,0.2);
}

.about-card h2,
.recent-card h3 {
  font-family: var(--font-heading);
  color: var(--text-light);
  margin-bottom: 1rem;
}

.articles-sidebar p,
.articles-sidebar li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.recent-card ul {
  list-style: none;
  padding-left: 0;
}

.recent-card li {
  margin-bottom: 0.8rem;
}

@media(max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .category-nav {
    transform: none;
  }
}

/* Post Page Styles */

.post {
  background: rgba(0, 0, 0, 0.85);
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 100px auto;
  border: 2px solid var(--accent-line);
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-light);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.7;
}

.post-tags {
  margin-top: 0.5rem;
}

.post-tags .tag {
  display: inline-block;
  background: var(--accent-line);
  color: #000;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  margin: 0 0.2rem;
  font-size: 0.75rem;
}

.post-content h2 {
  font-size: 2rem;
  color: var(--text-light);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  margin-top: 2rem;
}

.post-content p, .post-content ul {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.post-content ul {
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.8rem;
}

.checked {
  color: var(--accent-line);
  font-size: 1.5rem;
}

.rating-section {
  margin-top: 2rem;
}

.rating-section h2 {
  font-size: 2rem;
  color: var(--text-light);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  margin-bottom: 1rem;
}

.back-link {
  padding-top: 2rem;
}

.back-link a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.back-link a:hover {
  text-decoration: underline;
}