/* ==========================================
   R0ZZIN CHRONICLES - CUSTOM STYLES
   Additional styling and enhancements
   ========================================== */

/* ==========================================
   HEADER STYLING
   ========================================== */

.site-header {
  background: linear-gradient(135deg, rgba(44, 36, 22, 0.95) 0%, rgba(30, 36, 51, 0.95) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--r0z-gold);
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.mystical-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(230, 169, 37, 0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(167, 51, 53, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 40px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  from {
    background-position: 0 0, 40px 40px;
  }
  to {
    background-position: 100px 100px, 140px 140px;
  }
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.custom-logo-link {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.custom-logo-link:hover {
  transform: scale(1.05);
}

.custom-logo {
  max-height: 100px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(230, 169, 37, 0.3));
}

.site-identity {
  flex: 1;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-title a {
  background: linear-gradient(135deg, var(--r0z-gold) 0%, var(--r0z-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-title a:hover {
  text-shadow: 0 0 20px rgba(230, 169, 37, 0.5);
}

.site-description {
  color: var(--r0z-mist);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.5rem 0 0 0;
  letter-spacing: 0.05em;
}

/* Navigation */
.main-navigation {
  background: transparent;
  padding: 0;
}

.navbar-toggler {
  border: 2px solid var(--r0z-gold);
  color: var(--r0z-gold);
  padding: 0.5rem 1rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 169, 37, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E6A925' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: var(--r0z-mist) !important;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--r0z-gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--r0z-gold) !important;
}

.dropdown-menu {
  background: linear-gradient(135deg, rgba(44, 36, 22, 0.98) 0%, rgba(30, 36, 51, 0.98) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid var(--r0z-gold);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--r0z-mist) !important;
  font-family: var(--font-ui);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(230, 169, 37, 0.1);
  color: var(--r0z-gold) !important;
}

/* ==========================================
   POST CARDS
   ========================================== */

.posts-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 241, 220, 0.9) 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(230, 169, 37, 0.2);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--r0z-gold);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 36, 22, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.category-badge {
  background: linear-gradient(135deg, var(--r0z-gold) 0%, var(--r0z-ember) 100%);
  color: var(--r0z-ink);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.post-content-wrapper {
  padding: 2rem;
}

.entry-title {
  margin-bottom: 1rem;
}

.entry-title a {
  color: var(--r0z-ink);
  transition: color 0.3s ease;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--r0z-gold);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--r0z-ash);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--r0z-mist);
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-meta i {
  color: var(--r0z-gold);
}

.entry-meta a {
  color: var(--r0z-ash);
}

.entry-meta a:hover {
  color: var(--r0z-gold);
}

.entry-content {
  margin-bottom: 1.5rem;
}

.read-more-wrapper {
  text-align: left;
  margin-top: 1.5rem;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination-wrapper {
  margin: 3rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--r0z-mist);
  border-radius: 8px;
  color: var(--r0z-ink);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--r0z-gold);
  border-color: var(--r0z-gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 169, 37, 0.3);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.widget {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 241, 220, 0.9) 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(230, 169, 37, 0.2);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--r0z-crimson);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--r0z-gold);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--r0z-mist);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--r0z-ink-light);
  transition: all 0.3s ease;
  display: inline-block;
}

.widget ul li a:hover {
  color: var(--r0z-gold);
  transform: translateX(5px);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: linear-gradient(135deg, var(--r0z-midnight) 0%, var(--r0z-ink) 100%);
  color: var(--r0z-mist);
  margin-top: 4rem;
  position: relative;
}

.footer-gradient-divider {
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--r0z-gold) 25%, 
    var(--r0z-crimson) 50%, 
    var(--r0z-gold) 75%, 
    transparent 100%
  );
}

.footer-widgets {
  padding: 4rem 0;
}

.footer-widgets .widget {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(230, 169, 37, 0.3);
}

.footer-widgets .widget-title {
  color: var(--r0z-gold);
}

.footer-widgets .widget ul li a {
  color: var(--r0z-mist);
}

.footer-widgets .widget ul li a:hover {
  color: var(--r0z-gold-light);
}

.site-info {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.copyright-text {
  margin: 0;
  color: var(--r0z-mist);
}

.copyright-text a {
  color: var(--r0z-gold);
}

.separator {
  color: var(--r0z-ash);
  margin: 0 0.5rem;
}

.tagline {
  font-style: italic;
  color: var(--r0z-gold-light);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.footer-menu a {
  color: var(--r0z-mist);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--r0z-gold);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(230, 169, 37, 0.1);
  border: 2px solid var(--r0z-gold);
  border-radius: 50%;
  color: var(--r0z-gold);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--r0z-gold);
  color: var(--r0z-midnight);
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 6px 20px rgba(230, 169, 37, 0.4);
}

.credits {
  margin: 0.5rem 0 0 0;
  color: var(--r0z-ash);
}

.credits a {
  color: var(--r0z-mist);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--r0z-gold) 0%, var(--r0z-ember) 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(230, 169, 37, 0.5);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(44, 36, 22, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--r0z-gold);
  }
  
  .navbar-nav .nav-link::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .post-thumbnail {
    height: 250px;
  }
  
  .post-content-wrapper {
    padding: 1.5rem;
  }
  
  .entry-meta {
    font-size: 0.85rem;
    gap: 1rem;
  }
}
