/* Aurora Theme CSS - Modern Laravel Blog Theme */

/* Import UIKit base */
@import url('https://cdn.jsdelivr.net/npm/uikit@3.15.1/dist/css/uikit.min.css');

/* Aurora CSS Variables */
:root {
  --aurora-primary: #6366f1;
  --aurora-secondary: #14b8a6;
  --aurora-accent: #8b5cf6;
  --aurora-gradient: linear-gradient(135deg, #6366f1 0%, #14b8a6 50%, #8b5cf6 100%);
  --aurora-text: #1f2937;
  --aurora-light: #f8fafc;
  --aurora-dark: #0f172a;
  --aurora-success: #10b981;
  --aurora-warning: #f59e0b;
  --aurora-error: #ef4444;
  --aurora-border: rgba(99, 102, 241, 0.1);
  --aurora-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --aurora-shadow-lg: 0 8px 25px rgba(99, 102, 241, 0.15);
}

/* Dark mode variables */
.uk-dark {
  --aurora-text: #e2e8f0;
  --aurora-light: #1e293b;
  --aurora-dark: #0f172a;
  --aurora-border: rgba(99, 102, 241, 0.2);
  --aurora-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--aurora-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

.aurora-gradient-text {
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Aurora Components */

/* Header Styles */
.aurora-header {
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--aurora-border);
  transition: all 0.3s ease;
}

.dark .aurora-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.aurora-logo {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.aurora-logo:hover {
  transform: scale(1.05);
}

/* Navigation */
.aurora-nav-link {
  color: var(--aurora-text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.aurora-nav-link:hover {
  color: var(--aurora-primary);
  background: rgba(99, 102, 241, 0.1);
  text-decoration: none;
}

.aurora-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--aurora-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.aurora-nav-link:hover::after {
  width: 80%;
}

/* Cards */
.aurora-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--aurora-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--aurora-border);
  position: relative;
  overflow: hidden;
}

.aurora-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.aurora-card:hover::before {
  left: 100%;
}

.aurora-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aurora-shadow-lg);
  border-color: var(--aurora-primary);
}

.dark .aurora-card {
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .aurora-card:hover {
  background: #334155;
}

/* Buttons */
.btn-dwn {
  padding: 0.75em 1.5rem;
  background: var(--aurora-gradient);
  border-radius: 8px;
  color: #fff !important;
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-dwn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  color: #fff !important;
}

/* Badges */
.mynav {
  display: inline-block;
  border: 1px solid var(--aurora-primary);
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 8px;
  background: var(--aurora-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Images */
.aurora-image-container {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}

.aurora-image-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--aurora-shadow-lg);
}

.aurora-image-container img {
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
}

.aurora-image-container:hover img {
  transform: scale(1.02);
}

/* Content Sections */
.aurora-intro {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 184, 166, 0.05) 50%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid;
  border-image: var(--aurora-gradient) 1;
  border-radius: 8px;
  padding: 1.5rem;
}

.aurora-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--aurora-gradient);
  border-radius: 2px;
}

/* Author Section */
.aurora-author-section {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 184, 166, 0.05) 50%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--aurora-border);
  border-radius: 12px;
  padding: 2rem;
}

.aurora-author-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--aurora-gradient);
  border-radius: 2px;
}

/* Dark Mode Adjustments */
.dark .aurora-intro,
.dark .aurora-author-section {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Animation Utilities */
@keyframes aurora-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.4), 0 0 40px rgba(139, 92, 246, 0.3);
  }
}

.aurora-glow {
  animation: aurora-glow 2s ease-in-out infinite;
}

@keyframes aurora-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.aurora-pulse {
  animation: aurora-pulse 2s ease-in-out infinite;
}

/* Featured Post Enhancements */
.featured-post .uk-transition-toggle:hover .uk-transition-scale-up {
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .aurora-logo {
    height: 32px;
  }
  
  .aurora-nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .btn-dwn {
    padding: 0.6em 1.2rem;
    font-size: 0.9rem;
  }
  
  .aurora-card {
    border-radius: 8px;
  }
  
  .aurora-intro,
  .aurora-author-section {
    padding: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.aurora-nav-link:focus,
.btn-dwn:focus {
  outline: 2px solid var(--aurora-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .aurora-header,
  .darkmode-trigger,
  .uni-mobile-menu,
  .btn-dwn {
    display: none !important;
  }
  
  .aurora-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .aurora-gradient-text {
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--aurora-light);
}

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

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

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--aurora-text);
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--aurora-text);
}
