/*
Theme Name: Tafsir Vlog Creator
Theme URI: https://example.com/tafsir-vlog-theme
Author: WordPress Developer
Author URI: https://example.com
Description: A premium dark-themed WordPress theme for content creators and travel vloggers. Features a modern card-based design with gold accents, custom post types for videos, gallery, and gear, plus a social media hub. Fully responsive with smooth animations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tafsir-vlog
Tags: dark, portfolio, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   TAFSIR VLOG CREATOR - CUSTOM STYLES
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --gold: #cba846;
  --gold-hover: #b8963e;
  --gold-muted: rgba(203, 168, 70, 0.15);

  /* Background Colors */
  --bg-body: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-section-alt: #0f0f0f;

  /* Text Colors */
  --text-white: #ffffff;
  --text-muted: #a1a1aa;
  --text-more-muted: #71717a;
  --text-disabled: #52525b;

  /* Border Colors */
  --border-default: #262626;
  --border-hover: #363636;
  --border-gold: rgba(203, 168, 70, 0.3);

  /* Social Brand Colors */
  --youtube: #FF0000;
  --instagram: #E1306C;
  --tiktok: #000000;
  --facebook: #1877F2;
  --pinterest: #E60023;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 500ms ease-out;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-muted);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-heading {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.section-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--gold);
  color: var(--bg-body);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

/* --- Cards --- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-default);
}

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

.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-white);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 60;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 55;
  padding: 80px 32px 32px;
  transition: right var(--transition-normal);
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 54;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* Hero entrance animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-profile { animation: heroFadeUp 600ms ease-out forwards; }
.hero-subtitle { animation: heroFadeUp 500ms ease-out 200ms forwards; opacity: 0; }
.hero-heading { animation: heroFadeUp 500ms ease-out 300ms forwards; opacity: 0; }
.hero-desc { animation: heroFadeUp 500ms ease-out 400ms forwards; opacity: 0; }
.hero-buttons { animation: heroFadeUp 500ms ease-out 500ms forwards; opacity: 0; }

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-default);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.footer-social a {
  color: var(--text-more-muted);
  font-size: 20px;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-default);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-disabled);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-white);
}

.filter-tab.active {
  background-color: var(--gold-muted);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 400ms ease-out;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-white);
  font-size: 24px;
  cursor: pointer;
  z-index: 41;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-white);
  font-size: 32px;
  cursor: pointer;
  padding: 16px;
  z-index: 41;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* --- Form Styles --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background-color: var(--bg-body);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-white);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section-heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 28px;
  }

  .section-label {
    font-size: 11px;
  }
}
