/**
 * EII Platform Global Theme
 * The Enterprising Entrepreneur Institute
 * Converted from Tailwind to vanilla CSS
 */

/* ============================================
   CSS VARIABLES - COLOR PALETTE
   ============================================ */

:root {
    /* Background & Foreground */
    --background: #faf9f7;
    --foreground: #120a02;
    
    /* Card Colors */
    --card: #ffffff;
    --card-foreground: #120a02;
    
    /* Popover Colors */
    --popover: #ffffff;
    --popover-foreground: #120a02;
    
    /* Primary Colors (Dark Brown/Black) */
    --primary: #120a02;
    --primary-foreground: #faf9f7;
    
    /* Secondary Colors */
    --secondary: #4a2f0f;
    --secondary-foreground: #faf9f7;
    
    /* Muted Colors */
    --muted: #f5f4f2;
    --muted-foreground: #6b5d4f;
    
    /* Accent Colors (Orange) */
    --accent: #f78500;
    --accent-foreground: #faf9f7;
    
    /* Destructive Colors */
    --destructive: #dc2626;
    --destructive-foreground: #faf9f7;
    
    /* Border & Input */
    --border: #e5e3df;
    --input: #e5e3df;
    --ring: #f78500;
    
    /* Border Radius */
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Sidebar Colors */
    --sidebar: #120a02;
    --sidebar-foreground: #faf9f7;
    --sidebar-primary: #f78500;
    --sidebar-primary-foreground: #faf9f7;
    --sidebar-accent: #f78500;
    --sidebar-accent-foreground: #faf9f7;
    --sidebar-border: #2d1f0f;
    --sidebar-ring: #f78500;
    
    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Courier New', monospace;
}

/* ============================================
   DARK MODE COLORS
   ============================================ */

.dark {
    --background: #120a02;
    --foreground: #faf9f7;
    --card: #1f1409;
    --card-foreground: #faf9f7;
    --popover: #1f1409;
    --popover-foreground: #faf9f7;
    --primary: #faf9f7;
    --primary-foreground: #120a02;
    --secondary: #2d1f0f;
    --secondary-foreground: #faf9f7;
    --muted: #261a0d;
    --muted-foreground: #a89580;
    --accent: #f78500;
    --accent-foreground: #faf9f7;
    --destructive: #ef4444;
    --destructive-foreground: #faf9f7;
    --border: #2d1f0f;
    --input: #2d1f0f;
    --ring: #f78500;
    --sidebar: #1f1409;
    --sidebar-foreground: #faf9f7;
    --sidebar-primary: #faf9f7;
    --sidebar-primary-foreground: #120a02;
    --sidebar-accent: #261a0d;
    --sidebar-accent-foreground: #faf9f7;
    --sidebar-border: #2d1f0f;
    --sidebar-ring: #f78500;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: #e67700;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
}

.btn-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-destructive:hover {
    background-color: #b91c1c;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.card-content {
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(247, 133, 0, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: var(--destructive);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.badge-muted {
    background-color: var(--muted);
    color: var(--muted-foreground);
}

.badge-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #fff3e0;
    border-color: #f78500;
    color: #e67700;
}

.alert-error {
    background-color: #fee2e2;
    border-color: var(--destructive);
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #fff3e0;
    border-color: #f78500;
    color: #e67700;
}

/* ============================================
   GRADIENTS & PATTERNS
   ============================================ */

.gradient-animated {
    background: linear-gradient(135deg, #120a02, #f78500, #120a02);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-static {
    background: linear-gradient(135deg, #120a02 0%, #4a2f0f 25%, #f78500 75%, #120a02 100%);
}

.pattern-dots {
    background-image: radial-gradient(circle, rgba(247, 133, 0, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(247, 133, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 133, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(247, 133, 0, 0.05) 10px,
        rgba(247, 133, 0, 0.05) 20px
    );
}

/* ============================================
   EFFECTS
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neumorphic {
    box-shadow: 
        8px 8px 16px rgba(18, 10, 2, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(247, 133, 0, 0.2);
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--muted-foreground);
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.text-destructive {
    color: var(--destructive);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-muted {
    background-color: var(--muted);
}

.rounded {
    border-radius: var(--radius);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: 9999px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.animate-slideUp {
    animation: slideUp 0.3s ease;
}

.animate-slideDown {
    animation: slideDown 0.3s ease;
}

/* ============================================
   TRANSITIONS
   ============================================ */

.transition-all {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
    transition: transform 0.2s ease;
}


/* Professional UI Enhancements */

/* Visited links should not change color */
/* a:visited {
  color: var(--foreground);
}

a:visited:hover {
  color: var(--accent);
} */

/* Smooth transitions for better UX */
button, .btn, input, select, textarea {
  transition: all 0.2s ease-in-out;
}

/* Professional button styles */
.btn, button[type="submit"], button[type="button"] {
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover, button[type="submit"]:hover, button[type="button"]:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn:active, button[type="submit"]:active, button[type="button"]:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Professional card styles */
.card, .course-card, .stat-card {
  transition: all 0.3s ease;
}

.card:hover, .course-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Professional form inputs */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(247, 133, 0, 0.1);
  border-color: var(--accent);
}

/* Loading states */
.btn:disabled, button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Professional spacing */
.section-spacing {
  margin-bottom: 2rem;
}

/* Success/Completion states use orange instead of green */
.success-state, .completed-state {
  color: var(--accent);
  background-color: #fff3e0;
}

/* Professional hover effects */
.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}
