/*
Theme Name: EvidenceForChrist.org
Theme URI: https://github.com/benja-admin/videoflix
Author: Ben
Author URI: https://gaylor.media
Description: A modern WordPress theme that replicates Netflix's video browsing experience with horizontal scrolling rows, hover effects, video previews, and a cinematic billboard hero section. Perfect for video streaming sites, movie databases, and entertainment platforms.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videoflix
Tags: video, entertainment, streaming, netflix, dark, custom-post-type, full-width-template, featured-images, custom-menu, threaded-comments
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Colors */
  --primary-bg: #141414;
  --secondary-bg: #000000;
  --card-bg: #2f2f2f;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #f1f1f1;
  --accent-red: #e50914;
  --accent-red-hover: #f40612;
  --hover-bg: #3f3f3f;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --border-color: #404040;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--primary-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-red);
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   Layout
   ============================================ */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  transition: background-color var(--transition-normal);
  padding: var(--spacing-md);
}

.site-header.scrolled {
  background-color: var(--primary-bg);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   Navigation
   ============================================ */
.main-navigation ul {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.main-navigation a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.main-navigation a:hover {
  color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--secondary-bg);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-red);
  color: var(--text-primary);
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  color: var(--text-primary);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}
.mx-auto{ margin:auto;}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none !important;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1023px) {
  :root {
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 767px) {
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }
  
  .main-navigation ul {
    gap: var(--spacing-md);
  }
  
  .main-navigation a {
    font-size: var(--font-size-xs);
  }
}



/* ========================================
   Welcome Message (Empty State)
======================================== */

.welcome-message {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}


/* Foreground content */
.welcome-message .welcome-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
}


.welcome-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.welcome-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 2rem;
    }
    
    .welcome-content p {
        font-size: 16px;
    }
}



/* ========================================
   Page Template Styles
======================================== */

.page-content-wrapper,
.single-post-wrapper {
    padding: 100px 0 60px;
    min-height: 70vh;
}

.page-article,
.single-post-article {
/* 	margin:100px; */
    max-width: 868px;
    margin: 0 auto;
}

.page-header,
.post-header {
    border-bottom: 1px solid var(--border-color);
}


/* ========================================
   Archive Template Styles
======================================== */

.archive-wrapper {
    padding: 100px 0 60px;
    min-height: 70vh;
}

.archive-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.archive-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.archive-posts {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.archive-post-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

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

.archive-post-thumbnail {
    border-radius: 4px;
    overflow: hidden;
}

.archive-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post-thumbnail:hover img {
    transform: scale(1.05);
}

.archive-post-content {
    display: flex;
    flex-direction: column;
}

.archive-post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-post-title a:hover {
    color: var(--accent-red);
}

.archive-post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.archive-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--accent-red);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-wrapper {
        padding: 80px 0 40px;
    }
    
    .archive-title {
        font-size: 32px;
    }
    
    .archive-post-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-post-thumbnail img {
        height: 250px;
    }
    
    .archive-post-title {
        font-size: 24px;
    }
}

/* ========================================
   404 Error Page Styles
======================================== */

.error-404-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.error-404-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.error-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    margin-bottom: 60px;
}

.error-suggestions {
    margin-top: 80px;
    text-align: left;
}

.error-suggestions h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.suggestion-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.suggestion-item:hover {
    transform: scale(1.05);
}

.suggestion-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.suggestion-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.suggestion-item a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .error-404-wrapper {
        padding: 80px 0 40px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 32px;
    }
    
    .error-description {
        font-size: 16px;
    }
    
    .suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

