/*
Theme Name: DualTheme
Theme URI: https://pardeeppatel.com
Author: Pardeep Patel
Author URI: https://pardeeppatel.com
Description: High-performance Dual-Identity WordPress Theme for Travel Filmmaker & Tech Systems Architect (PARDEEP.EXPEDITIONS & PARDEEP.DEV). Features interactive 3D physics follower, real-time split-screen draggable hero, Day/Night mode switch (☀️/🌙), 4K cinematic vlogs showcase, distributed systems repos, interactive Linux terminal CLI emulator, expeditions world map with animated waypoint pins, production & workstation gear arsenal, ambient soundscape engine, dynamic Table of Contents (TOC), and comprehensive Theme Options panel.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dualtheme
Tags: blog, portfolio, two-columns, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready, dark-mode
*/

/* -------------------------------------------------------------
   WORDPRESS CORE SPECIFIC OVERRIDES & ALIGNMENT STYLES
   ------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
  display: block;
  margin: 1.5rem auto;
}
.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}
.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}
a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}
a img.alignnone {
  margin: 5px 20px 20px 0;
}
a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}
a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wp-caption {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  max-width: 96%;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}
.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
  border-radius: 6px;
}
.wp-caption p.wp-caption-text {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 8px 0 4px;
  color: var(--text-muted, #94a3b8);
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #0b1329;
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* Gutenberg block support */
.entry-content .wp-block-image {
  margin-bottom: 2rem;
}
.entry-content .wp-block-image img {
  border-radius: 12px;
  height: auto;
  max-width: 100%;
}
.entry-content pre.wp-block-code {
  background: #0d1527;
  color: #38bdf8;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.entry-content blockquote.wp-block-quote {
  border-left: 4px solid var(--accent-primary, #f59e0b);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
body[data-persona="tech"] .entry-content blockquote.wp-block-quote {
  border-left-color: var(--accent-tech, #10b981);
  background: rgba(16, 185, 129, 0.04);
}

/* ==========================================================
   PROPORTIONAL LEAD TEXT & GUTENBERG TYPOGRAPHY RESTRAINT
   ========================================================== */
.entry-content .lead-text,
.article-prose .lead-text,
.entry-content .has-large-font-size,
.article-prose .has-large-font-size,
.entry-content .is-large-text,
.article-prose .is-large-text,
p.lead-text {
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  color: var(--text-main, #e2e8f0) !important;
  margin-bottom: 1.5rem !important;
}

html.theme-day .entry-content .lead-text,
html.theme-day .article-prose .lead-text,
html.theme-day .entry-content .has-large-font-size,
html.theme-day .article-prose .has-large-font-size,
body.theme-day .entry-content .lead-text,
body.theme-day .article-prose .lead-text,
body.theme-day .entry-content .has-large-font-size,
body.theme-day .article-prose .has-large-font-size,
html[data-theme="day"] p.lead-text,
body[data-theme="day"] p.lead-text {
  color: #1e293b !important;
}

/* ==========================================================
   LIGHT THEME (DAY MODE) CARDS & HIGH-CONTRAST SECTIONS
   ========================================================== */
html.theme-day .dualtheme-feature-card,
body.theme-day .dualtheme-feature-card,
html[data-theme="day"] .dualtheme-feature-card,
body[data-theme="day"] .dualtheme-feature-card,
html.theme-day .wp-block-column.dualtheme-feature-card,
body.theme-day .wp-block-column.dualtheme-feature-card,
html[data-theme="day"] .wp-block-column.dualtheme-feature-card,
body[data-theme="day"] .wp-block-column.dualtheme-feature-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html.theme-day .dualtheme-feature-card h3,
body.theme-day .dualtheme-feature-card h3,
html[data-theme="day"] .dualtheme-feature-card h3,
body[data-theme="day"] .dualtheme-feature-card h3 {
  color: #0f172a !important;
}

html.theme-day .dualtheme-feature-card p,
body.theme-day .dualtheme-feature-card p,
html.theme-day .dualtheme-feature-card li,
body.theme-day .dualtheme-feature-card li,
html.theme-day .dualtheme-feature-card span,
body.theme-day .dualtheme-feature-card span,
html[data-theme="day"] .dualtheme-feature-card p,
body[data-theme="day"] .dualtheme-feature-card p,
html[data-theme="day"] .dualtheme-feature-card li,
body[data-theme="day"] .dualtheme-feature-card li {
  color: #475569 !important;
}

html.theme-day .dualtheme-feature-card strong,
body.theme-day .dualtheme-feature-card strong,
html[data-theme="day"] .dualtheme-feature-card strong,
body[data-theme="day"] .dualtheme-feature-card strong {
  color: #0f172a !important;
}

/* Light Theme Contact Form Card */
html.theme-day .dualtheme-contact-form,
body.theme-day .dualtheme-contact-form,
html[data-theme="day"] .dualtheme-contact-form,
body[data-theme="day"] .dualtheme-contact-form {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06) !important;
}

html.theme-day .dualtheme-contact-form label,
body.theme-day .dualtheme-contact-form label,
html[data-theme="day"] .dualtheme-contact-form label,
body[data-theme="day"] .dualtheme-contact-form label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

html.theme-day .dualtheme-contact-form input[type="text"],
html.theme-day .dualtheme-contact-form input[type="email"],
html.theme-day .dualtheme-contact-form select,
html.theme-day .dualtheme-contact-form textarea,
body.theme-day .dualtheme-contact-form input[type="text"],
body.theme-day .dualtheme-contact-form input[type="email"],
body.theme-day .dualtheme-contact-form select,
body.theme-day .dualtheme-contact-form textarea,
html[data-theme="day"] .dualtheme-contact-form input,
body[data-theme="day"] .dualtheme-contact-form input,
html[data-theme="day"] .dualtheme-contact-form select,
body[data-theme="day"] .dualtheme-contact-form select,
html[data-theme="day"] .dualtheme-contact-form textarea,
body[data-theme="day"] .dualtheme-contact-form textarea {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html.theme-day .dualtheme-contact-form input::placeholder,
html.theme-day .dualtheme-contact-form textarea::placeholder,
body.theme-day .dualtheme-contact-form input::placeholder,
body.theme-day .dualtheme-contact-form textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

html.theme-day .dualtheme-contact-form select option,
body.theme-day .dualtheme-contact-form select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ==========================================================
   WORDPRESS COMMENTS SECTION & FORM (COMPLETE UI/UX)
   ========================================================== */
.comments-area {
  margin-top: 3.5rem !important;
  padding-top: 2.5rem !important;
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08)) !important;
}

html.theme-day .comments-area,
body.theme-day .comments-area,
html[data-theme="day"] .comments-area,
body[data-theme="day"] .comments-area {
  border-top-color: #e2e8f0 !important;
}

.comments-title,
.comment-reply-title,
#reply-title {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: var(--text-main, #ffffff) !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.3px !important;
}

html.theme-day .comments-title,
html.theme-day .comment-reply-title,
html.theme-day #reply-title,
body.theme-day .comments-title,
body.theme-day .comment-reply-title,
body.theme-day #reply-title,
html[data-theme="day"] .comment-reply-title,
body[data-theme="day"] .comment-reply-title {
  color: #0f172a !important;
}

#commentform {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-sizing: border-box !important;
}

html.theme-day #commentform,
body.theme-day #commentform,
html[data-theme="day"] #commentform,
body[data-theme="day"] #commentform {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05) !important;
}

#commentform p {
  margin: 0 !important;
}

#commentform .logged-in-as,
#commentform .comment-notes {
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  margin-bottom: 8px !important;
}

html.theme-day #commentform .logged-in-as,
html.theme-day #commentform .comment-notes,
body.theme-day #commentform .logged-in-as,
body.theme-day #commentform .comment-notes,
html[data-theme="day"] #commentform .logged-in-as,
body[data-theme="day"] #commentform .logged-in-as {
  color: #475569 !important;
}

#commentform .logged-in-as a,
#commentform .comment-notes a {
  color: var(--travel-primary, #f59e0b) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

#commentform .comment-form-comment {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#commentform label {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  margin-bottom: 4px !important;
}

html.theme-day #commentform label,
body.theme-day #commentform label,
html[data-theme="day"] #commentform label,
body[data-theme="day"] #commentform label {
  color: #1e293b !important;
}

#commentform textarea#comment {
  width: 100% !important;
  min-height: 140px !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  resize: vertical !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

html.theme-day #commentform textarea#comment,
body.theme-day #commentform textarea#comment,
html[data-theme="day"] #commentform textarea#comment,
body[data-theme="day"] #commentform textarea#comment {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

#commentform textarea#comment:focus {
  border-color: var(--travel-primary, #f59e0b) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
  width: 100% !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

html.theme-day #commentform input[type="text"],
html.theme-day #commentform input[type="email"],
html.theme-day #commentform input[type="url"],
body.theme-day #commentform input[type="text"],
body.theme-day #commentform input[type="email"],
body.theme-day #commentform input[type="url"],
html[data-theme="day"] #commentform input,
body[data-theme="day"] #commentform input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus {
  border-color: var(--travel-primary, #f59e0b) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

#commentform .form-submit {
  margin-top: 10px !important;
}

#commentform input#submit,
#commentform input[type="submit"] {
  display: inline-block !important;
  padding: 12px 32px !important;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
}

#commentform input#submit:hover,
#commentform input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
}

/* =============================================================
   DUALTHEME 1.0.7 - HIGH CONTRAST & UI POLISH ENHANCEMENTS
   ============================================================= */

/* 1. HERO SPLIT SECTION CONTRAST PROTECTION (Day & Night Modes)
   The hero split displays dark photographic & code streams, so its headlines,
   subtext, badges, and metrics must ALWAYS remain bright with high readability */
.hero-split-section .hero-headline,
body.theme-day .hero-split-section .hero-headline,
body.theme-night .hero-split-section .hero-headline,
html[data-theme="day"] .hero-split-section .hero-headline {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.hero-split-section .hero-subtext,
body.theme-day .hero-split-section .hero-subtext,
body.theme-night .hero-split-section .hero-subtext,
html[data-theme="day"] .hero-split-section .hero-subtext {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6) !important;
}

.hero-split-section .meta-val,
body.theme-day .hero-split-section .meta-val {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

.hero-split-section .meta-lbl,
body.theme-day .hero-split-section .meta-lbl {
  color: rgba(255, 255, 255, 0.78) !important;
}

.hero-split-section .hero-badge-pill,
.hero-split-section .hero-tag {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* 2. GUTENBERG CALLOUT & LIGHT BACKGROUND CONTRAST
   Ensures text inside light cyan, white, or light callout boxes is dark charcoal and legible */
.trip-glance-box,
.trip-glance-box p,
.trip-glance-box li,
.trip-glance-box span,
.trip-glance-box strong,
.has-pale-cyan-blue-background-color,
.has-pale-cyan-blue-background-color p,
.has-pale-cyan-blue-background-color li,
.has-pale-cyan-blue-background-color span,
.has-pale-cyan-blue-background-color strong,
.has-light-blue-background-color,
.has-light-blue-background-color p,
.has-very-light-gray-background-color,
.has-very-light-gray-background-color p,
.has-white-background-color,
.has-white-background-color p,
.github-code-callout,
.github-code-callout p,
.github-code-callout span,
.wp-block-group.has-background,
.wp-block-group.has-background p,
.wp-block-group.has-background li {
  color: #0f172a !important;
}

.trip-glance-box a,
.has-pale-cyan-blue-background-color a,
.github-code-callout a,
.wp-block-group.has-background a {
  color: #0284c7 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.trip-glance-box a:hover,
.has-pale-cyan-blue-background-color a:hover,
.github-code-callout a:hover,
.wp-block-group.has-background a:hover {
  color: #0369a1 !important;
}

/* 3. CONTACT & INQUIRIES SECTION (Day Mode Contrast) */
body.theme-day .method-val,
html[data-theme="day"] .method-val {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-day .method-label,
html[data-theme="day"] .method-label {
  color: #475569 !important;
  font-weight: 600 !important;
}

body.theme-day .contact-card,
html[data-theme="day"] .contact-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body.theme-day .newsletter-inline-box,
html[data-theme="day"] .newsletter-inline-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-day .newsletter-inline-box > div,
html[data-theme="day"] .newsletter-inline-box > div {
  color: #0f172a !important;
}

body.theme-day .newsletter-inline-box input[type="email"],
html[data-theme="day"] .newsletter-inline-box input[type="email"] {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-day .newsletter-inline-box input[type="email"]::placeholder,
html[data-theme="day"] .newsletter-inline-box input[type="email"]::placeholder {
  color: #94a3b8 !important;
}

body.theme-day .inquiry-type-radios label.radio-chip,
html[data-theme="day"] .inquiry-type-radios label.radio-chip {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
}

body.theme-day .inquiry-type-radios input[type="radio"]:checked + span,
body.theme-day .inquiry-type-radios label.radio-chip:has(input:checked) {
  background: #ffffff !important;
  border-color: #f59e0b !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-day .contact-form input,
body.theme-day .contact-form textarea,
html[data-theme="day"] .contact-form input,
html[data-theme="day"] .contact-form textarea {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-day .contact-form input:focus,
body.theme-day .contact-form textarea:focus {
  border-color: var(--travel-primary, #f59e0b) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* 4. FLOATING THEME SELECTOR - SMART ONE-CLICK COLLAPSE & SIZE OPTIMIZATION */
body.theme-day .floating-theme-switch.is-collapsed,
body.theme-night .floating-theme-switch.is-collapsed,
.floating-theme-switch.is-collapsed {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.floating-theme-switch.is-collapsed .floating-switch-inner {
  display: none !important;
}

.floating-theme-switch.is-collapsed .floating-switch-trigger {
  display: flex !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

body.theme-day .floating-theme-switch.is-collapsed .floating-switch-trigger {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.floating-theme-switch:not(.is-collapsed) {
  max-width: 230px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
}

.floating-switch-collapse-btn {
  cursor: pointer !important;
  padding: 2px 6px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
  transition: background 0.2s ease !important;
}

.floating-switch-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.theme-day .floating-switch-collapse-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}
