/* Export PowerShell Module Documentation Styles - Premium Edition */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* Modern CSS Reset and Base Styles */
:root {
  /* Purple Color Palette */
  --primary-color: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-light: #8b5cf6;
  --secondary-color: #1e1b4b;
  --secondary-light: #312e81;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #f1f5f9;
  --code-bg: #f1f5f9;
  --code-color: #334155;
  --border-color: #e2e8f0;
  --footer-bg: #f1f5f9;
  --footer-text: #1e293b;
  --footer-link: #6d28d9;
  --footer-link-hover: #8b5cf6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max-width: 1280px;
  --header-height: 70px;
  --content-padding: clamp(1rem, 5vw, 2rem);
  --section-spacing: clamp(3rem, 8vw, 6rem);
  --element-spacing: clamp(1.5rem, 4vw, 3rem);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Dark Mode Colors */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary-color: #e2e8f0;
    --secondary-light: #f1f5f9;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #0f172a;
    --code-bg: #1e293b;
    --code-color: #e2e8f0;
    --border-color: #334155;
    --footer-bg: #1e1b4b;
    --footer-text: #e2e8f0;
    --footer-link: #a78bfa;
    --footer-link-hover: #c4b5fd;
  }
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

p, ul, ol {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  font-weight: 500;
}

a:hover, a:focus {
  color: var(--primary-light);
}

strong {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  width: 100%;
}

section {
  margin-bottom: var(--section-spacing);
}

/* Header & Navigation */
header {
  background-color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
}

.logo::before {
  content: '🚀';
  font-size: 1.5rem;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1.75rem;
  width: calc(100% - 1.75rem);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.logo:hover::after {
  transform: scaleX(1);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

nav a {
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
  border-radius: var(--radius-full);
}

nav a:hover, nav a:focus {
  color: var(--primary-light);
}

nav a:hover::after, nav a:focus::after {
  transform: scaleX(1);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
  padding: clamp(4rem, 15vh, 8rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero code {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  z-index: -1;
}

.btn:hover::before, .btn:focus::before {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.feature-card:hover, .feature-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before, .feature-card:focus-within::before {
  transform: scaleX(1);
}

.feature-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary-color);
}

.feature-card h3::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: bold;
}

.feature-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-card code {
  display: block;
  margin-top: auto;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--code-bg);
  color: var(--code-color);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid var(--border-color);
}

/* Code Blocks */
pre {
  background-color: var(--code-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
  position: relative;
}

pre code {
  background-color: transparent;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--code-color);
}

pre::before {
  content: 'PowerShell';
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-bottom-left-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
}

code {
  font-family: var(--font-mono);
  background-color: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--code-color);
  border: 1px solid var(--border-color);
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

thead {
  background-color: var(--primary-color);
  color: white;
}

th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

tr:last-child td {
  border-bottom: none;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
}

ul {
  list-style-type: none;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
}

ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--footer-text);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-section p, .footer-section li {
  color: var(--footer-text);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.footer-links li::before {
  display: none;
}

.footer-links a {
  color: var(--footer-link);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover, .footer-links a:focus {
  color: var(--footer-link-hover);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--footer-text);
  opacity: 0.5;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--footer-link);
}

.footer-bottom a:hover, .footer-bottom a:focus {
  color: var(--footer-link-hover);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--footer-text);
  transition: all var(--transition-fast);
}

.social-link:hover, .social-link:focus {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(109, 40, 217, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(109, 40, 217, 0);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* Responsive Styles */
@media (max-width: 1024px) {
  :root {
    --section-spacing: clamp(2.5rem, 6vw, 5rem);
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-color);
    height: 100vh;
    width: 80%;
    max-width: 300px;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 5;
    gap: 1rem;
  }
  
  nav ul.active {
    transform: translateX(0);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  footer .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  pre {
    padding: 1rem;
  }
  
  pre::before {
    display: none;
  }
}

/* Print Styles */
@media print {
  header, footer, .hero {
    background: none !important;
    color: black !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    text-decoration: underline;
  }
  
  .btn, nav, .mobile-nav-toggle {
    display: none;
  }
}
