
/*
Theme Name: DarkFantasyX Pro Upgraded
Theme URI: http://example.com/darkfantasyx
Author: Upgraded by ChatGPT (assistant)
Author URI: http://example.com
Description: Professional upgraded version of DarkFantasyX - responsive, SEO-ready, Gutenberg-friendly theme.
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: darkfantasyx-pro
Tags: dark, responsive, video, blog, seo, accessibility
*/

@charset "utf-8";



:root {
  --bg-dark: #181818;
  --bg-light: #fff;
  --text-dark: #f5f5f5;
  --text-light: #222;
  --accent: #de2600;
}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  margin: 0;
  color: var(--text-dark);
  background: var(--bg-dark);
  line-height: 1.4;
}
body[data-theme="dark"] {
  background: var(--bg-dark) !important;
  color: var(--text-dark) !important;
}
body[data-theme="light"] {
  background: var(--bg-light) !important;
  color: var(--text-light) !important;
}

a{ color:#f05454; text-decoration:none; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(12px, 4vw, 32px);
  padding-right: clamp(12px, 4vw, 32px);
}
.site-header, .site-footer{ background:#0b0b0b; padding:18px 0; }
.site-branding img{ height:44px; display:block; }
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.hero{ padding:18px 0; }
/* Auto-resizing grid for all devices */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  transition: background 0.2s, color 0.2s;
}
body[data-theme="dark"] .card {
  background: #181818;
  color: #f5f5f5;
}
body[data-theme="light"] .card {
  background: #f5f5f5;
  color: #222;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.card .meta{ padding:10px; font-size:14px; color:#ddd; }
.card .badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0,0,0,0.6);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #fff;
  z-index: 2;
}


@media (max-width:600px) {
  .card img { height: 120px; }
  .main-nav { justify-content: center; }
}

/* Accessibility: Focus Styles */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #de2600;
  outline-offset: 2px;
}

/* Modern Button Styles */
.btn, button, input[type="submit"] {
  background: #de2600;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn:hover, button:hover, input[type="submit"]:hover {
  background: #b81e00;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Card Hover Effect */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: #9aa0a6; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; background: #181818; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }

/* Responsive Typography */
h1, .brand-title { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* Image Polishing */
img, .card img {
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* Breadcrumb Styling */
.breadcrumb-nav {
  font-size: 14px;
  color: #9aa0a6;
  margin-bottom: 18px;
}
.breadcrumb-nav a {
  color: #de2600;
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* Footer Menu Styling */
.footer-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.footer-menu li {
  display: inline-block;
}
.footer-menu li a {
  color: #bdbdbd;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-menu li a:hover {
  color: #de2600;
}

/* Smooth Transitions for Major Elements */
.site-header, .site-footer, .main-nav, .btn, .card {
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

/* Form Styling */
input[type="search"], input[type="text"], input[type="email"], textarea {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 15px;
  transition: border 0.2s;
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #de2600;
  outline: none;
}

/* Add a subtle shadow to the hero section */
.hero {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 8px;
  background: rgba(20,20,20,0.85);
}

/* Add a fade-in animation to grid items */
.grid > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive spacing for .container */
@media (max-width: 600px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Header Layout and Functionality */
.header-inner {
  padding: 0;
}
.header-top {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-search {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
}
.header-search form {
  max-width: 420px;
  width: 100%;
}
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .profile-btn {
  margin-left: 8px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s;
}
.header-actions .profile-btn:hover {
  color: #de2600;
}
#menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s;
}
#menu-toggle:hover {
  color: #de2600;
}
#mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s;
}
#mode-toggle:hover {
  color: #de2600;
}
@media (max-width: 1024px) {
  .main-nav { display: none !important; }
  #menu-toggle { display: inline-block !important; }
  .header-search { flex: 1 1 100%; }
  .header-top { flex-wrap: wrap; }
  .header-actions { gap: 8px; }
  .header-search form { max-width: 100%; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 8px; }
  .header-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .site-branding, .header-actions { justify-content: center; }
  .header-search { justify-content: center; margin-bottom: 8px; }
  .header-search form { max-width: 100%; }
}
@media (min-width: 1025px) {
  .main-nav { display: block !important; }
  #menu-toggle { display: none !important; }
}
.main-nav {
  width: 100%;
  margin-top: 12px;
  background: #181818;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 8px 0;
  display: block;
}
.menu {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.menu li a:hover {
  background: #de2600;
  color: #fff;
}

/* Enhanced header dark/light mode styles */
.site-header[data-theme="dark"], .main-nav[data-theme="dark"] {
  background: #222 !important;
}
.site-header[data-theme="light"], .main-nav[data-theme="light"] {
  background: #f5f5f5 !important;
}
.menu li a[data-theme="dark"] {
  color: #e0e0e0 !important;
}
.menu li a[data-theme="light"] {
  color: #222 !important;
}

/* Search bar focus effect */
.search-field:focus {
  border-color: #de2600;
  box-shadow: 0 0 0 2px rgba(222,38,0,0.2);
}
.search-form label.focused .search-field {
  background: #fff;
  color: #222;
}

/* Profile modal (optional, hidden by default) */
#profile-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  color: #fff;
  padding: 32px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 9999;
  transition: background 0.2s, color 0.2s;
}
#profile-modal[data-theme="light"] {
  background: #fff;
  color: #222;
}

/* Mobile menu open state */
.main-nav.menu-open {
  display: block !important;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: #181818;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
}
@media (max-width: 1024px) {
  .main-nav.menu-open {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    background: #181818;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
  }
}
/* Only left sidebar visible, right sidebar hidden */
.sidebar-right {
  display: none !important;
}
/* Sidebar only visible on desktop, hidden on mobile */
@media (max-width: 1024px) {
  .sidebar-left {
    display: none !important;
  }
}

/* Mobile ad spaces styling */
.ad-space.ad-mobile-top, .ad-space.ad-mobile-bottom {
  display: block;
  width: 100%;
  background: #222;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 18px 10px;
  margin: 18px 0;
  text-align: center;
}
body[data-theme="light"] .ad-space.ad-mobile-top,
body[data-theme="light"] .ad-space.ad-mobile-bottom {
  background: #f5f5f5;
  color: #222;
}
/* Mobile menu overlay styles */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  transition: opacity 0.2s;
}
.main-nav.menu-open {
  z-index: 1001;
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 400px;
  background: #181818;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 24px 0;
}
body[data-theme="light"] .main-nav.menu-open {
  background: #f5f5f5;
}