/**
 * DigiFoxStudio - Dark Theme Specific Styles
 * Enhanced dark mode styling and theming
 * 
 * @package DigiFoxStudio
 */

/* ===================================
   DARK THEME ENHANCEMENTS
   =================================== */

/* Smooth Dark Backgrounds */
body {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a0a 100%);
  background-attachment: fixed;
}

/* Dark Content Sections with Subtle Gradients */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at top left,
    rgba(255, 107, 53, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Enhanced Card Shadows for Dark Theme */
.service-card,
.portfolio-item,
.contact-item,
.post-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.service-card:hover,
.portfolio-item:hover,
.post-card:hover {
  box-shadow: 
    0 10px 40px rgba(255, 107, 53, 0.2),
    0 0 60px rgba(255, 107, 53, 0.1);
}

/* ===================================
   GLOW EFFECTS FOR DARK THEME
   =================================== */

/* Subtle glow on headings */
h1, h2 {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

/* Button glow effects */
.btn-primary {
  box-shadow: 
    0 4px 15px rgba(255, 107, 53, 0.3),
    0 0 30px rgba(255, 107, 53, 0.1);
}

.btn-primary:hover {
  box-shadow: 
    0 6px 25px rgba(255, 107, 53, 0.4),
    0 0 40px rgba(255, 107, 53, 0.2);
}

/* Input focus glow */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 
    0 0 0 3px rgba(255, 107, 53, 0.1),
    0 0 20px rgba(255, 107, 53, 0.05);
}

/* ===================================
   DARK THEME CONTENT BLOCKS
   =================================== */

/* Dark theme specific blockquote */
blockquote {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.05) 0%,
    transparent 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Code blocks in dark theme */
pre {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(37, 37, 37, 0.9) 100%
  );
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Tables in dark theme */
table {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 107, 53, 0.05) 0%,
    transparent 100%
  );
}

/* ===================================
   DARK THEME OVERLAYS
   =================================== */

/* Portfolio overlay enhancement */
.portfolio-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.95) 0%,
    rgba(15, 15, 15, 0.8) 50%,
    transparent 100%
  );
}

/* Dark modal/lightbox backgrounds */
.modal-backdrop,
.lightbox-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

/* ===================================
   DARK THEME BORDERS & DIVIDERS
   =================================== */

/* Enhanced border styles */
.service-card,
.contact-item,
.widget {
  border-color: rgba(255, 255, 255, 0.05);
}

.service-card:hover,
.contact-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
}

/* Horizontal rules */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-border) 50%,
    transparent 100%
  );
  margin: 3rem 0;
}

/* ===================================
   DARK THEME SCROLLBAR
   =================================== */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-orange) 0%,
    var(--primary-orange-hover) 100%
  );
  border-radius: 6px;
  border: 2px solid var(--dark-bg);
}

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

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-orange) var(--dark-bg);
}

/* ===================================
   DARK THEME SELECTION
   =================================== */

::selection {
  background-color: var(--primary-orange);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--primary-orange);
  color: white;
  text-shadow: none;
}

/* ===================================
   DARK THEME FORM ELEMENTS
   =================================== */

/* Enhanced input styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  background: linear-gradient(
    135deg,
    rgba(37, 37, 37, 0.5) 0%,
    rgba(37, 37, 37, 0.8) 100%
  );
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checkbox and radio custom styling */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-border);
  border-radius: 4px;
  background-color: var(--dark-tertiary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

input[type="checkbox"]:checked::after {
  content: '✓';
  display: block;
  text-align: center;
  color: white;
  font-weight: bold;
  line-height: 16px;
}

/* ===================================
   DARK THEME TOOLTIPS
   =================================== */

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 0.5rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.95) 0%,
    rgba(255, 133, 85, 0.95) 100%
  );
  color: white;
  font-size: 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary-orange);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* ===================================
   DARK THEME BADGES & PILLS
   =================================== */

.badge,
.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background: linear-gradient(
    135deg,
    var(--dark-secondary) 0%,
    var(--dark-tertiary) 100%
  );
  color: var(--text-gray);
  border: 1px solid var(--accent-border);
}

.badge-primary,
.pill-primary {
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-hover) 100%
  );
  color: white;
  border-color: var(--primary-orange);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ===================================
   DARK THEME PROGRESS BARS
   =================================== */

.progress-bar {
  height: 8px;
  background-color: var(--dark-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-orange) 0%,
    var(--primary-orange-hover) 100%
  );
  border-radius: 4px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* ===================================
   DARK THEME ALERTS & NOTIFICATIONS
   =================================== */

.alert {
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  border-left: 4px solid;
  background: var(--dark-secondary);
}

.alert-success {
  border-left-color: #10b981;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.1) 0%,
    transparent 100%
  );
  color: #10b981;
}

.alert-warning {
  border-left-color: #f59e0b;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 100%
  );
  color: #f59e0b;
}

.alert-error {
  border-left-color: #ef4444;
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.1) 0%,
    transparent 100%
  );
  color: #ef4444;
}

.alert-info {
  border-left-color: #3b82f6;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 100%
  );
  color: #3b82f6;
}

/* ===================================
   DARK THEME SKELETON LOADERS
   =================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--dark-secondary) 0%,
    var(--dark-tertiary) 50%,
    var(--dark-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-heading {
  height: 2rem;
  margin-bottom: 1rem;
}

.skeleton-image {
  height: 200px;
  width: 100%;
}