/**
 * QuickFetchPie Theme - Main CSS File
 * 
 * This file imports all CSS modules in the correct order:
 * 1. Variables (CSS custom properties)
 * 2. Reset (browser normalization)
 * 3. Base (typography and fundamental styles)
 * 4. Components (reusable UI components)
 * 5. Layout (page structure and layout)
 * 
 * The modular approach allows for better organization and maintainability.
 */

/* Import CSS modules in dependency order */
/* Note: These imports are handled by WordPress wp_enqueue_style in functions.php */
/* This file now contains only custom overrides and additional styles */

/**
 * Additional custom styles can be added below
 * These styles will override the imported modules if needed
 */

/* Force admin bar to be fixed */
@media screen and (max-width: 782px) {
  html #wpadminbar {
    position: fixed !important;
  }
}

/* Custom theme-specific overrides */

.site-footer {
  /* Add any custom footer styles here */
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Custom utility classes */
.text-gradient {
  background: var(--color-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--color-primary);
}

/* Custom focus styles for better accessibility */
.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: none;
  outline-offset: 2px;
}

/* Custom loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-primary);
  border-top: 2px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .widget-area,
  .back-to-top,

  
  .site-content {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  
  .entry-content {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .entry-title {
    font-size: 18pt;
    margin-bottom: 12pt;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
} 