@layer utilities {
  .font-cinzel {
    font-family: 'Cinzel', serif;
  }

  .font-orbitron {
    font-family: 'Orbitron', sans-serif;
  }

  .drop-shadow-red-glow {
    filter: drop-shadow(0 0 10px rgba(185, 28, 28, 0.7));
  }

  .drop-shadow-red-glow-lg {
    filter: drop-shadow(0 0 20px rgba(185, 28, 28, 0.9));
  }

  .shadow-red-glow {
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.5);
  }

  .shadow-red-glow-lg {
    box-shadow: 0 0 30px rgba(185, 28, 28, 0.7), 0 0 60px rgba(185, 28, 28, 0.3);
  }

  .bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
  }

  .animate-float {
    animation: float 6s ease-in-out infinite;
  }

  .animate-pulse-slow {
    /* Use the defined keyframes name 'pulseSlow' */
    animation: pulseSlow 4s ease-in-out infinite;
  }

  .smoke-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      radial-gradient(ellipse at 20% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 60%);
    animation: smokeMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }

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

  @keyframes smokeMove {
    0%, 100% {
      opacity: 0.3;
      transform: scale(1) rotate(0deg);
    }
    25% {
      opacity: 0.5;
      transform: scale(1.1) rotate(5deg);
    }
    50% {
      opacity: 0.4;
      transform: scale(1.05) rotate(-3deg);
    }
    75% {
      opacity: 0.6;
      transform: scale(1.08) rotate(7deg);
    }
  }

  .page-transition-enter {
    opacity: 0;
  }

  .page-transition-enter-active {
    opacity: 1;
    transition: opacity 500ms ease-in;
  }

  .page-transition-exit {
    opacity: 1;
  }

  .page-transition-exit-active {
    opacity: 0;
    transition: opacity 500ms ease-out;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: #000000;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Favicon styling to make it circular */
link[rel="icon"] {
  border-radius: 50%;
  overflow: hidden;
}

br{
  color: #7f1d1d;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.7);
  border-radius: 2px;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

.page-container {
  min-height: 100vh;
  position: relative;
  background: #000000;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 0, 0, 0.2) 0%, #000000 50%, #000000 100%);
  pointer-events: none;
}

.smoke-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 60%);
  animation: smokeMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes smokeMove {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.5;
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05) rotate(-3deg);
  }
  75% {
    opacity: 0.6;
    transform: scale(1.08) rotate(7deg);
  }
}

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

@keyframes pulseSlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

.drop-shadow-red {
  filter: drop-shadow(0 0 10px rgba(185, 28, 28, 0.7));
}

.drop-shadow-red-lg {
  filter: drop-shadow(0 0 20px rgba(185, 28, 28, 0.9));
}

.navbar {
  position: relative;
  z-index: 20;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(127, 29, 29, 0.5);
  padding: 1rem 2rem;
}

.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo svg {
  width: 32px;
  height: 32px;
  color: #b91c1c;
}

.logo h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: 0.1em;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  padding: 0.5rem 0.75rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: #7f1d1d;
  color: #fee2e2;
  border: 2px solid #991b1b;
}

.btn-primary:hover {
  background: #991b1b;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.7);
}

.btn-secondary {
  background: transparent;
  color: #ef4444;
  border: 2px solid #7f1d1d;
}

.btn-secondary:hover {
  background: rgba(127, 29, 29, 0.2);
  color: #f87171;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.5);
}

.btn:hover {
  transform: scale(1.05);
}

.center-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 2rem 2rem;
}

.welcome-container {
  text-align: center;
  max-width: 28rem;
  width: 100%;
}

.icon-container {
  margin-bottom: 3rem;
}

.icon-large {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  color: #b91c1c;
  filter: drop-shadow(0 0 20px rgba(185, 28, 28, 0.9));
}

.title-main {
  font-family: 'Cinzel', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #b91c1c;
  filter: drop-shadow(0 0 20px rgba(185, 28, 28, 0.9));
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.title-emphasis {
  font-family: 'Cinzel', serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: #ef4444;
  filter: drop-shadow(0 0 20px rgba(185, 28, 28, 0.9));
  animation: pulseSlow 4s ease-in-out infinite;
}

.subtitle {
  color: #9ca3af;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
}

.form-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border: 2px solid rgba(127, 29, 29, 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.max-width-56rem {
  max-width: 56rem;
}

.label-large {
  font-size: 1.25rem;
  font-family: 'Arial', sans-serif;
}

.input-large {
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  color: #f3f4f6;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.form-label .required {
  color: #f87171;
  margin-left: 0.25rem;
  font-weight: 700;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(127, 29, 29, 0.5);
  color: #e5e7eb;
  padding: 0.75rem 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-input[type="password"] {
  font-family: 'Courier New', monospace;
  -webkit-text-security: disc;
  -moz-text-security: disc;
  /* text-security: disc; */
}

.form-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.5);
}

.form-input::placeholder {
  color: #9ca3af;
}

.password-group {
  position: relative;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container .form-input {
  flex: 1;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: #f3f4f6;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.upload-area {
  cursor: pointer;
  display: block;
  border: 2px dashed rgba(127, 29, 29, 0.5);
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 108px;
}

.upload-area:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(185, 28, 28, 0.15);
}

.upload-area--compact {
  border: 1px dashed #ccc;
  padding: 0.75rem;
  text-align: center;
  margin-top: 0.5rem;
}

.click-text {
  margin-top: 6px;
}

.preview-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
}

.image-preview-container {
  text-align: center;
}

.download-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 8px;
  transition: background 0.2s;
}

.download-btn:hover {
  background: #444;
}

.inline-form {
  display: inline;
}

.upload-success {
  color: #9fe39f;
  font-weight: 700;
}

.temp-upload-form input[type="file"] {
  color: #fff;
}

.temp-upload-form button {
  background: #4aaf4a;
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background: #7f1d1d;
  color: #fee2e2;
  font-family: 'Cinzel', serif;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  border: 2px solid #991b1b;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: #991b1b;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.7), 0 0 60px rgba(185, 28, 28, 0.3);
  transform: scale(1.05);
}

.absolute-top-right {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 20;
}

.absolute-top-left {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 20;
}

.main-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: linear-gradient(to bottom, #111827, #000000);
  border: 2px solid rgba(127, 29, 29, 0.5);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.post-card:hover {
  border-color: #dc2626;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.7), 0 0 60px rgba(185, 28, 28, 0.3);
  transform: scale(1.05);
}

.post-image-container {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.post-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000, rgba(0, 0, 0, 0.5), transparent);
}

.post-content {
  padding: 1.25rem;
}

.post-title {
  font-family: 'Arial', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card:hover .post-title {
  color: #fca5a5;
}

.post-date {
  color: #6b7280;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.article-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(127, 29, 29, 0.5);
}

.article-image-container {
  position: relative;
  overflow: hidden;
}

.article-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.article-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000, transparent, transparent);
}

.article-content {
  padding: 2rem 3rem;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: 'Arial', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-meta {
  color: #6b7280;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.article-body {
  margin-bottom: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  /* -webkit-line-clamp: 3; */
  -webkit-box-orient: vertical;
  font-family: 'Arial', sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
}

.article-paragraph {
  color: #d1d5db;
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.article-footer {
  border-top: 2px solid rgba(127, 29, 29, 0.5);
  padding-top: 2rem;
}

/* Footer styles */
.site-footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(15, 15, 15, 0.9));
  border-top: 1px solid rgba(127,29,29,0.35);
  color: #cbd5e1;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}

.footer-left .footer-title {
  font-family: 'Arial', sans-serif;
  color: #ef4444;
  margin-bottom: 0.25rem;
}

.footer-desc {
  color: #9ca3af;
  font-family: 'Arial', sans-serif;
  font-size: 0.875rem;
}

.footer-right {
  text-align: right;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.footer-nav a {
  color: #fca5a5;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
}

.footer-copy {
  display: block;
  color: #6b7280;
  font-family: 'Arial', sans-serif;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right { text-align: left; }
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.upload-area {
  border: 2px dashed rgba(127, 29, 29, 0.5);
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #dc2626;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.5);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #b91c1c;
}

.upload-text {
  color: #e5e7eb;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.upload-subtext {
  color: #4b5563;
  font-size: 0.875rem;
}

.file-input {
  display: none;
}

.btn-submit--big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
}

.max-width-80rem {
  max-width: 80rem;
}

.btn-inline {
  display: inline-flex;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.btn-inline-small {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
}

.public-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.upload-preview {
  max-width: 100%;
  max-height: 240px;
  display: block;
  margin: 0 auto 8px auto;
  border: 2px solid rgba(127, 29, 29, 0.5);
}

.preview-container {
  display: flex;
  flex-direction: column;

.upload-error {
  color: #ffb4b4;
  background: rgba(127, 29, 29, 0.15);
  border: 1px solid rgba(127, 29, 29, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.input-error {
  color: #ffb4b4;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
  gap: 1rem;
}

.preview-image {
  max-height: 16rem;
  margin: 0 auto;
  border: 2px solid rgba(127, 29, 29, 0.5);
}

.remove-btn {
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.remove-btn:hover {
  color: #f87171;
}

textarea.form-input {
  resize: none;
  font-family: inherit;
}

@media (max-width: 768px) {
  .title-main {
    font-size: 2.5rem;
  }

  .title-emphasis {
    font-size: 3rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 1.5rem;
  }

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