/**
 * CareerBridge MVP - English Version - Custom Styles
 * Additional CSS for English layout support
 * 
 * Features:
 * - Left-to-right (LTR) text direction support
 * - English typography optimizations
 * - Form styling enhancements
 * - Animation and transition effects
 * 
 * @author TheManOfCareer
 * @version 1.0.0 - English Edition
 */

/* ============================================================================
   ENGLISH LAYOUT SUPPORT
   ============================================================================ */

/* Ensure LTR direction for English content */
[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* English typography optimizations */
[dir="ltr"] body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: -0.025em;
}

[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4, [dir="ltr"] h5, [dir="ltr"] h6 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.05em;
}

/* ============================================================================
   NAVIGATION ADJUSTMENTS
   ============================================================================ */

/* Language toggle button spacing for English */
[dir="ltr"] .language-toggle {
  margin-left: 1rem;
}

[dir="ltr"] .language-toggle button {
  margin-left: 0.25rem;
  margin-right: 0;
}

/* Navigation icons alignment */
[dir="ltr"] .nav-icon {
  margin-right: 0.5rem;
  margin-left: 0;
}

/* Back button icon */
[dir="ltr"] .back-arrow {
  transform: scaleX(-1); /* Flip arrow for English LTR */
}

/* ============================================================================
   FORM ENHANCEMENTS
   ============================================================================ */

/* Form input focus states */
.form-input {
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

/* Form validation states */
.form-input.valid {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.form-input.invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-input.warning {
  border-color: #f59e0b;
  background-color: #fffbeb;
}

/* Submit button enhancements */
.submit-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================================
   ALERT/MESSAGE SYSTEM
   ============================================================================ */

/* Base alert styles */
.alert {
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #10b981;
  color: white;
}

.alert-error {
  background-color: #ef4444;
  color: white;
}

.alert-info {
  background-color: #3b82f6;
  color: white;
}

.alert-warning {
  background-color: #f59e0b;
  color: white;
}

/* Alert close button */
.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0;
  margin-left: 12px;
}

.alert-close:hover {
  opacity: 1;
}

/* ============================================================================
   CARD AND COMPONENT ENHANCEMENTS
   ============================================================================ */

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Interactive elements */
.interactive-scale {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.interactive-scale:hover {
  transform: scale(1.02);
}

.interactive-scale:active {
  transform: scale(0.98);
}

/* ============================================================================
   ANIMATION CLASSES
   ============================================================================ */

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in animations */
.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bounce animation */
.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for highlights */
.pulse-highlight {
  animation: pulseHighlight 2s infinite;
}

@keyframes pulseHighlight {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

/* ============================================================================
   RESPONSIVE DESIGN ENHANCEMENTS
   ============================================================================ */

/* Mobile optimizations */
@media (max-width: 640px) {
  [dir="ltr"] .mobile-text-center {
    text-align: center;
  }
  
  [dir="ltr"] .mobile-stack {
    flex-direction: column;
  }
  
  .card-mobile {
    margin-bottom: 1rem;
  }
  
  .button-mobile {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  [dir="ltr"] .tablet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
  [dir="ltr"] .desktop-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================ */

/* Focus states for accessibility */
.focus-visible:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .alert {
    border: 2px solid;
  }
  
  .form-input {
    border-width: 2px;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-after: always;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Text utilities for English */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Spacing utilities */
.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Flexbox utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Color utilities */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shadow utilities */
.shadow-soft {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Border utilities */
.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
}