/*
Theme Name: FlashNow
Theme URI: https://flashnow.site
Author: FlashNow
Author URI: https://flashnow.site/about-us
Description: Professional, beautiful, and lightning-fast WordPress theme built specifically for US news websites like FlashNow. Clean modern design with excellent typography, full author attribution, Google-optimized structured data (NewsArticle, Organization, WebSite), Core Web Vitals friendly, fully responsive, dark mode support, and ready for high-traffic news publishing. Includes beautiful post cards, author boxes, related articles, and professional page layouts for About Us & Disclaimer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flashnow
Tags: news, journalism, responsive, seo-optimized, dark-mode, author-box, structured-data, fast, modern, one-column, two-columns, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ============================================
   FLASHNOW - Professional US News Theme
   Beautiful, Fast & Google-Ready
   ============================================ */

:root {
  --primary: #0f172a;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

.dark {
  --primary: #f1f5f9;
  --accent: #f87171;
  --accent-hover: #ef4444;
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

/* Base & Typography - Beautiful news reading experience */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

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

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

.article-content blockquote {
  border-left: 5px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.article-content img {
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--accent-hover);
}

/* News Cards - Stunning & Professional */
.news-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: #cbd5e1;
}

.dark .news-card:hover {
  border-color: #475569;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

.news-card .post-thumbnail {
  overflow: hidden;
}

.news-card img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.3s ease;
}

.news-card:hover img {
  transform: scale(1.08);
}

/* Category Badges */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: 9999px;
  background-color: #fee2e2;
  color: #991b1b;
  transition: all 0.2s ease;
}

.dark .category-badge {
  background-color: #450a0a;
  color: #fca5a5;
}

.category-badge:hover {
  background-color: #fecaca;
  transform: translateY(-1px);
}

/* Author Box */
.author-box {
  background: linear-gradient(to right, var(--card), #f8fafc);
  border: 1px solid var(--border);
}

.dark .author-box {
  background: linear-gradient(to right, var(--card), #1e293b);
}

/* Meta info */
.post-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.post-meta a {
  color: var(--text);
  font-weight: 500;
}

.post-meta a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 6px -1px rgb(220 38 38 / 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(220 38 38 / 0.3);
}

.btn-secondary {
  background-color: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.dark .btn-secondary:hover {
  background-color: #334155;
}

/* Share Buttons */
.share-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #475569;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.dark .share-btn {
  background-color: #334155;
  color: #cbd5e1;
  border-color: #475569;
}

.share-btn:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Navigation */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 1rem;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: calc(100% - 2rem);
}

/* Search Form */
.search-form {
  position: relative;
}

.search-form input {
  transition: all 0.3s ease;
  background-color: #f8fafc;
  border: 1px solid var(--border);
}

.dark .search-form input {
  background-color: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
  width: 320px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--text);
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0.75) 70%);
  z-index: 1;
  border-radius: 2.5rem;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #cbd5e1;
}

footer a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #f1f5f9;
}

/* Misc */
.sticky-nav {
  backdrop-filter: blur(20px);
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .search-form input:focus {
    width: 100%;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
}

/* Accessibility & Performance */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Print styles for articles */
@media print {
  .no-print {
    display: none !important;
  }
  .article-content {
    max-width: 100% !important;
  }
}