/* FAKENEWS Custom Styles */

/* Ticker Animation */
.ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-content {
  display: inline-block;
  animation: scroll-left 60s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-block;
  padding-right: 50px;
  font-weight: bold;
  color: #ef4444;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Featured Article Styling */
.featured-article {
  position: relative;
}

.featured-article::before {
  content: "FEATURED SATIRE";
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: white;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: bold;
  z-index: 10;
  border-radius: 0 0 0 8px;
}

/* Article Card Hover Effects */
.article-card {
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Satirical Content Styling */
.satire-watermark {
  position: relative;
}

.satire-watermark::after {
  content: "SATIRICAL CONTENT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

/* Button Styles */
.btn-satirical {
  background: linear-gradient(135deg, #1463ff, #0f52d6);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-satirical:hover {
  background: linear-gradient(135deg, #0f52d6, #0d47b8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 99, 255, 0.3);
}

/* Tag Chips */
.tag-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  transform: scale(1.05);
}

/* Responsive Ticker */
@media (max-width: 768px) {
  .ticker-content {
    animation: scroll-left 40s linear infinite;
  }
  
  .ticker-item {
    font-size: 14px;
    padding-right: 30px;
  }
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
  .mobile-menu {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Article Content Styling */
.article-content {
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.article-content h1 {
  font-size: 1.75rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.article-content h2 {
  font-size: 1.5rem;
}

.article-content h3 {
  font-size: 1.25rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid #1463ff;
  background: #f8fafc;
  margin: 2rem 0;
  padding: 1.5rem;
  font-style: italic;
  color: #374151;
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content strong {
  font-weight: 600;
  color: #1f2937;
}

.article-content em {
  font-style: italic;
  color: #4b5563;
}

.article-content a {
  color: #1463ff;
  text-decoration: underline;
  font-weight: 500;
}

.article-content a:hover {
  color: #1d4ed8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content code {
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #1e293b;
  font-family: 'Courier New', monospace;
}

/* Admin Panel Styling */
.admin-nav {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.admin-card {
  transition: all 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  ring: 2px;
  ring-color: #1463ff;
  border-color: #1463ff;
}

/* Status Badges */
.status-draft {
  background-color: #f3f4f6;
  color: #374151;
}

.status-scheduled {
  background-color: #fef3c7;
  color: #92400e;
}

.status-published {
  background-color: #d1fae5;
  color: #065f46;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #1463ff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .article-content h1,
  .article-content h2,
  .article-content h3 {
    page-break-after: avoid;
  }
  
  .article-content blockquote {
    page-break-inside: avoid;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .dark-mode .bg-white {
    background-color: #374151;
  }
  
  .dark-mode .text-gray-900 {
    color: #f9fafb;
  }
  
  .dark-mode .text-gray-600 {
    color: #d1d5db;
  }
  
  .dark-mode .border-gray-200 {
    border-color: #4b5563;
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #1463ff;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .tag-chip {
    border: 2px solid currentColor;
  }
  
  .btn-satirical {
    border: 2px solid #1463ff;
  }
  
  .ticker-item {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-content {
    animation: none;
    transform: none;
  }
  
  .article-card {
    transition: none;
  }
  
  .btn-satirical {
    transition: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
