/*
Theme Name: Phantom Findings
Theme URI: https://phantomfindings.productions
Author: Phantom Findings Productions
Author URI: https://phantomfindings.productions
Description: A custom WordPress theme for Phantom Findings Productions - Exploring cryptids, unexplained mysteries, and unsolved events through cinematic storytelling and investigative journalism.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phantom-findings
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --color-dark-blue: #1A1528;
  --color-deep-purple: #392B5B;
  --color-accent: #8B6EDE;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(to bottom, var(--color-dark-blue), var(--color-deep-purple));
  min-height: 100vh;
  line-height: 1.6;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(26, 21, 40, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.site-logo img {
  height: 3rem;
  width: auto;
}

.site-title {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.site-title .white-text {
  color: #fff;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-menu a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.social-links a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-accent);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 21, 40, 0.98);
    flex-direction: column;
    padding: 2rem;
    backdrop-filter: blur(10px);
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-links {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-deep-purple) 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 21, 40, 0.7), rgba(57, 43, 91, 0.7), rgba(0, 0, 0, 0.9));
  z-index: 2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #d1d5db;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: rgba(139, 110, 222, 0.8);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 25%;
  right: 25%;
  height: 4px;
  background: var(--color-accent);
}

.section-subtitle {
  color: #d1d5db;
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-card {
  background: rgba(57, 43, 91, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.video-content {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.video-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.video-title a:hover {
  color: var(--color-accent);
}

.video-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.video-date {
  color: var(--color-accent);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
}

.category-background {
  position: absolute;
  inset: 0;
}

.category-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category-card:hover .category-background img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-dark-blue), rgba(57, 43, 91, 0.3), transparent);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #fff;
}

.category-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(139, 110, 222, 0.8);
  color: var(--color-dark-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.category-title {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.category-card:hover .category-title {
  color: var(--color-accent);
}

.category-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.category-card:hover .category-description {
  opacity: 1;
  transform: translateY(0);
}

/* Category Videos Section */
#category-videos-section {
  background: rgba(57, 43, 91, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.category-videos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-videos-title {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
}

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

.category-video-card {
  background: rgba(26, 21, 40, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.category-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.category-video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.category-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-video-card:hover .category-video-thumbnail img {
  transform: scale(1.05);
}

.category-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-video-card:hover .category-video-overlay {
  opacity: 1;
}

.category-video-play {
  background: rgba(139, 110, 222, 0.9);
  color: var(--color-dark-blue);
  border-radius: 50%;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.category-video-card:hover .category-video-play {
  transform: scale(1.1);
}

.category-video-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.category-video-duration,
.category-video-type {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.category-video-type {
  background: rgba(139, 110, 222, 0.9);
  color: var(--color-dark-blue);
}

.category-video-content {
  padding: 1rem;
}

.category-video-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: #fff;
  transition: color 0.3s ease;
}

.category-video-card:hover .category-video-title {
  color: var(--color-accent);
}

.category-video-description {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.category-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-video-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.category-videos-state {
  text-align: center;
  padding: 2rem 0;
}

.category-videos-state.error {
  color: #f87171;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 1rem;
}

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

/* About Section */
.about-section {
  background: rgba(57, 43, 91, 0.2);
}

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

.about-text {
  color: #d1d5db;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  background: rgba(57, 43, 91, 0.3);
  padding: 2rem 1rem;
  border-radius: 12px;
  text-align: center;
}

.stat-icon {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(26, 21, 40, 0.8), rgba(57, 43, 91, 0.8));
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-badge {
  display: inline-block;
  background: rgba(139, 110, 222, 0.2);
  color: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.newsletter-form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(139, 110, 222, 0.2);
}

.newsletter-button {
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-button:hover {
  background: rgba(139, 110, 222, 0.8);
}

.newsletter-disclaimer {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Newsletter Messages */
.newsletter-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.newsletter-message-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.newsletter-message-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.newsletter-message-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Footer */
.site-footer {
  background: var(--color-dark-blue);
  color: #d1d5db;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(57, 43, 91, 0.3);
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  color: var(--color-accent);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* WordPress Core Classes */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.wp-caption {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
  border-radius: 8px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
  color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form-row {
    flex-direction: column;
  }
  
  .newsletter-input {
    min-width: auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .category-videos-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .category-videos-grid {
    grid-template-columns: 1fr;
  }
}

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }