/* Horror Articles Styles */
:root {
  --accent-orange: #FF7518;
  --accent-red: #FF4444;
  --accent-green: #44FF44;
  --dark-bg: #000;
  --darker-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-light: #E0E0E0;
  --text-muted: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Alegreya', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.articles-container {
  min-height: 100vh;
  position: relative;
}

/* Header */
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 2px solid var(--accent-orange);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-button {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: 1px solid transparent;
}

.back-button:hover {
  background: var(--accent-orange);
  color: var(--dark-bg);
  transform: scale(1.05);
}

.header-content {
  text-align: center;
  flex: 1;
}

.articles-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(255, 117, 24, 0.5);
  margin-bottom: 0.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(255, 117, 24, 0.5); }
  to { text-shadow: 0 0 30px rgba(255, 117, 24, 0.8), 0 0 40px rgba(255, 117, 24, 0.3); }
}

.articles-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Admin Menu */
.admin-menu {
  position: relative;
}

.admin-button {
  background: var(--accent-orange);
  color: var(--dark-bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.admin-button:hover {
  background: #e55a2b;
  transform: scale(1.05);
}

.admin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #333;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--accent-orange);
  color: var(--dark-bg);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--card-bg);
  border-top: 4px solid var(--accent-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin: 1rem 0 2rem 0;
  padding: 0 1rem;
}

.hero-image {
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
  margin: 0 auto 2rem auto;
  border: 3px solid var(--accent-orange);
  display: block;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-light);
  font-style: italic;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
  margin: 0;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.article-card {
  background: var(--card-bg);
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 117, 24, 0.3);
}

.article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--darker-bg);
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-author {
  font-weight: bold;
}

.article-date {
  font-style: italic;
}

.article-summary {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-tag {
  background: var(--accent-orange);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.read-more-button {
  background: linear-gradient(135deg, var(--accent-orange), #e55a2b);
  color: var(--dark-bg);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.read-more-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4);
}

/* Empty State */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.empty-content {
  text-align: center;
  max-width: 500px;
}

.empty-content h2 {
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.empty-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-orange), #e55a2b);
  color: var(--dark-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.submit-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4);
}

/* Error State */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-content h2 {
  font-size: 2.5rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.error-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.retry-button {
  background: linear-gradient(135deg, var(--accent-red), #aa2222);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .articles-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .articles-title {
    font-size: 2rem;
  }
  
  .hero-image {
    max-width: 95vw;
    margin-bottom: 1.5rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  
  .article-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .articles-title {
    font-size: 1.5rem;
  }
  
  .article-content {
    padding: 1rem;
  }
  
  .article-title {
    font-size: 1.2rem;
  }
} 