/* blog.css - Tema Futuristik untuk Blog StickNext Saga Rail */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #e8ebff;
  font-family: 'Orbitron', monospace;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Futuristic Loader */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 26, 0.98) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease-out;
  backdrop-filter: blur(5px);
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-rings {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.loader-ring {
  position: absolute;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loader-ring:nth-child(1) {
  width: 120px;
  height: 120px;
  border-top: 3px solid #00ffe0;
  border-right: 3px solid rgba(0, 255, 224, 0.3);
  animation-duration: 1.5s;
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.5);
}

.loader-ring:nth-child(2) {
  width: 90px;
  height: 90px;
  top: 15px;
  left: 15px;
  border-top: 3px solid #00a4ff;
  border-left: 3px solid rgba(0, 164, 255, 0.3);
  animation-duration: 1.2s;
  animation-direction: reverse;
  box-shadow: 0 0 15px rgba(0, 164, 255, 0.5);
}

.loader-ring:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 30px;
  left: 30px;
  border-bottom: 3px solid #ff6b6b;
  border-right: 3px solid rgba(255, 107, 107, 0.3);
  animation-duration: 0.9s;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.loader-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00ffe0;
  border-radius: 50%;
  animation: orbit 3s linear infinite;
  box-shadow: 0 0 5px #00ffe0;
}

.loader-particle:nth-child(1) { animation-delay: 0s; }
.loader-particle:nth-child(2) { animation-delay: 0.5s; background: #00a4ff; box-shadow: 0 0 5px #00a4ff; }
.loader-particle:nth-child(3) { animation-delay: 1s; background: #ff6b6b; box-shadow: 0 0 5px #ff6b6b; }
.loader-particle:nth-child(4) { animation-delay: 1.5s; }
.loader-particle:nth-child(5) { animation-delay: 2s; background: #00a4ff; box-shadow: 0 0 5px #00a4ff; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

.loader-text {
  font-size: 1.2rem;
  color: #00ffe0;
  text-shadow: 0 0 10px rgba(0, 255, 224, 0.8);
  animation: glitch 1.5s infinite;
  margin-top: 1rem;
}

@keyframes glitch {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 224, 0.8); }
  10% { text-shadow: 2px 0 #ff6b6b, -2px 0 #00a4ff; }
  20% { text-shadow: -2px 0 #00a4ff, 2px 0 #ff6b6b; }
  30% { text-shadow: 0 2px #00ffe0, 0 -2px #ff6b6b; }
  40% { text-shadow: 0 -2px #ff6b6b, 0 2px #00a4ff; }
  50% { text-shadow: 1px 1px #00ffe0, -1px -1px #00a4ff; }
  60% { text-shadow: -1px 1px #ff6b6b, 1px -1px #00ffe0; }
  70% { text-shadow: 0 0 10px rgba(0, 255, 224, 0.8); }
}

.loader-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ffe0, #00a4ff, #ff6b6b);
  border-radius: 2px;
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.blog-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 224, 0.3);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.2);
}

.blog-hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #00ffe0;
  text-shadow: 0 0 15px rgba(0, 255, 224, 0.8);
  margin: 0 0 1rem;
  background: linear-gradient(45deg, #00ffe0, #00a4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #d2e7ff;
  margin: 0;
}

.stats-section {
  margin-bottom: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 224, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 224, 0.1), transparent);
  transition: left 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 255, 224, 0.3);
  border-color: #00ffe0;
}

.stat-card strong {
  display: block;
  color: #aaddff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card span {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f7ff;
  text-shadow: 0 0 10px rgba(240, 247, 255, 0.5);
}

.reload-btn {
  background: linear-gradient(45deg, #00ffe0, #00a4ff);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 224, 0.3);
  display: block;
  margin: 0 auto;
  font-family: 'Orbitron', monospace;
}

.reload-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 255, 224, 0.5);
}

.reload-btn:active {
  transform: scale(0.95);
}

.search-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.search-filter input,
.search-filter select {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 255, 224, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #e8ebff;
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-filter input:focus,
.search-filter select:focus {
  outline: none;
  border-color: #00ffe0;
  box-shadow: 0 0 10px rgba(0, 255, 224, 0.5);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.blog-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 224, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00ffe0, #00a4ff);
  opacity: 0;
  transition: opacity 0.3s;
}

.blog-card:hover::after {
  opacity: 1;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 255, 224, 0.2);
  border-color: #00ffe0;
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  color: #7cd7ff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card small {
  color: #99b7d8;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1rem;
}

.blog-card p {
  color: #d2e7ff;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.blog-card a {
  color: #99d7ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.blog-card a:hover {
  color: #00ffe0;
  text-shadow: 0 0 5px rgba(0, 255, 224, 0.5);
}

.note-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 224, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.note-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00ffe0, #00a4ff);
  opacity: 0;
  transition: opacity 0.3s;
}

.note-item:hover::after {
  opacity: 1;
}

.note-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 255, 224, 0.2);
  border-color: #00ffe0;
}

.note-item h2 {
  margin: 0 0 0.5rem;
  color: #7cd7ff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-item small {
  color: #99b7d8;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1rem;
}

.note-item p {
  color: #d2e7ff;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.note-item a.update-link {
  color: #99d7ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.note-item a.update-link:hover {
  color: #00ffe0;
  text-shadow: 0 0 5px rgba(0, 255, 224, 0.5);
}

.badge {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 224, 0.4);
  color: #e8ebff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron', monospace;
}

.pagination button:hover,
.pagination button.active {
  background: rgba(0, 255, 224, 0.2);
  border-color: #00ffe0;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(0, 255, 224, 0.3);
  color: #99b7d8;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero {
    padding: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .search-filter {
    flex-direction: column;
    align-items: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .note-item {
    padding: 1rem;
  }

  .note-item h2 {
    font-size: 1.2rem;
  }
}

/* Animasi loading */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.note-item {
  animation: fadeIn 0.5s ease-out;
}

.stat-card {
  animation: fadeIn 0.5s ease-out;
}

/* Search Highlight */
mark {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: #fff;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

/* Error Message */
.error-message {
  color: #ff5f5f;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 95, 95, 0.1);
  border: 1px solid rgba(255, 95, 95, 0.3);
  border-radius: 10px;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(255, 95, 95, 0.5);
}