/* ResumeVolt Modern Custom CSS */

/* CSS Variables - Professional with Modern Flair */
:root {
  /* Primary Colors - Refined Purple (from archive but more professional) */
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --primary-50: #faf5ff;
  --primary-100: #f3e8ff;
  --primary-200: #e9d5ff;
  
  /* Secondary Colors - Teal (from archive) */
  --secondary: #14b8a6;
  --secondary-light: #2dd4bf;
  --secondary-dark: #0d9488;
  --secondary-50: #f0fdfa;
  
  /* Accent Colors - Orange (from archive) */
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --accent-50: #fff7ed;
  
  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Neutral Colors */
  --light: #f8f9fa;
  --dark: #1f2937;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows - Enhanced depth */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Border Radius */
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;
}

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

/* Honeypot field - completely hidden from users */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
  position: relative;
  min-height: 100vh;
}

/* Background Image with Low Opacity */
.page-background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
}

/* Navigation Enhancements */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary) !important;
  transition: color 0.2s;
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

.nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: var(--primary) !important;
  background-color: var(--gray-50);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 80px);
  width: 100%;
  background-color: transparent;
}

/* Page Container */
.page-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Content Wrapper for Centered Content */
.content-wrapper {
  position: relative;
  z-index: 100;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
}

/* Modern Card Styles - Professional with Visual Interest */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 100;
  border: 1px solid var(--gray-100);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.98);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
  border-color: var(--primary-200);
}

.card-lg {
  max-width: 500px;
  padding: 1.75rem;
}

/* Feature Cards - Enhanced from Archive Design (Ultra Compact - 65% size) */
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 0.875rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  opacity: 0;
  transition: var(--transition);
}

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

.feature-card:hover::before {
  opacity: 1;
}

/* Feature card header - icon and title on same line, title can wrap */
.feature-card .feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  vertical-align: top;
  margin-bottom: 0;
  margin-right: 0;
}

.feature-card h3,
.feature-card .h4,
.feature-card .h5 {
  font-size: 1.15rem;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  vertical-align: top;
  padding-top: 0.125rem;
  text-align: center;
}

.feature-card p {
  font-size: 0.75rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.feature-card ul {
  font-size: 0.7rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.feature-card ul li {
  margin-bottom: 0.375rem;
}

.feature-card ul li i {
  font-size: 0.65rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.625rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 1rem;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

/* Typography */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* Full-width white background section for content */
.page-content-wrapper {
  background: white;
  width: 100%;
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.page-content-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

/* Header Container - Wrapper for page headers */
.header-container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.header-container .row {
  margin-bottom: 0;
  /* Don't override Bootstrap's row margins - they're needed for the grid system */
  padding: 0;
}

.header-container h1,
.header-container h2,
.header-container h3 {
  font-size: 2.5rem; /* display-6 */
  font-weight: 700;
  color: #000000; /* Match homepage black */
  margin-bottom: 1.5rem; /* mb-4 */
}

.header-container .lead {
  color: hsl(220, 9%, 46%); /* Match homepage lead color */
  font-weight: 600;
  margin-bottom: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
  background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background-color: white;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.errorlist {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
}

.error-message {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.help-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Button Styles - Enhanced with Archive Colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Link Styles */
.auth-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.auth-link p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Dashboard Stat Cards */
.dashboard-stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  border: none;
  height: 100%;
}

.dashboard-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.dashboard-stat-card.secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #0d9488 100%);
}

.dashboard-stat-card.accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
}

/* Bootstrap Overrides - Use Archive Colors */
:root {
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-secondary: #14b8a6;
  --bs-secondary-rgb: 20, 184, 166;
  --bs-success: #10b981;
  --bs-danger: #ef4444;
  --bs-warning: #f59e0b;
  --bs-info: #3b82f6;
}

/* Bootstrap Button Overrides */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.btn-secondary {
  --bs-btn-bg: var(--secondary);
  --bs-btn-border-color: var(--secondary);
  --bs-btn-hover-bg: var(--secondary-dark);
  --bs-btn-hover-border-color: var(--secondary-dark);
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  border: none;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* Resume Preview Card - Full Width */
.resume-preview-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  background: white;
  overflow: hidden;
}

.resume-preview-card .card-header {
  padding: 1rem 1.5rem;
  background: var(--primary) !important;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-preview-card .card-body {
  padding: 0;
  width: 100%;
}

.resume-preview-card iframe {
  width: 100%;
  display: block;
  border: none;
}

.resume-preview {
  background-color: white;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 800px;
  font-size: 0.875rem;
  border: 1px solid var(--gray-200);
}

.resume-section {
  margin-bottom: 1.5rem;
}

.resume-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.resume-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.resume-contact {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.resume-section-title {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* Job Match Score */
.job-match-score {
  background: linear-gradient(to right, var(--gray-50), var(--gray-100));
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

/* Skill Match Bar */
.skill-match-bar {
  width: 100%;
  background-color: var(--gray-200);
  border-radius: 9999px;
  height: 0.75rem;
  overflow: hidden;
}

.skill-match-progress {
  height: 100%;
  border-radius: 9999px;
  transition: all 0.3s;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Federal Upload Zone */
.federal-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #f8fafc;
  cursor: pointer;
}

.federal-upload-zone:hover {
  border-color: #7c3aed;
  background: #f3f4f6;
}

.federal-upload-zone.drag-active {
  border-color: #7c3aed;
  background: #ede9fe;
}

.gradient-accent {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
}

/* Fed2Next Specific Styles */
.full-width-section {
  background: white;
  width: 100%;
  padding: 2rem 0;
}

.upload-icon {
  font-size: 3rem;
  color: #9ca3af;
}

.upload-icon-success {
  font-size: 3rem;
}

.browse-files-link {
  cursor: pointer;
}

.translation-example-text {
  font-size: 0.75rem;
  line-height: 1.4;
}

.document-icon {
  font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header adjustments for mobile */
  .header-container {
    padding: 1rem 0.75rem;
    margin-top: 1rem;
  }
  
  .header-container h1,
  .header-container h2,
  .header-container h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .header-container .lead {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* Page content wrapper - reduce padding on mobile */
  .page-content-wrapper {
    padding: 1rem 0;
  }
  
  .page-content-container {
    padding: 0.75rem 0.75rem !important;
  }
  
  /* Typography adjustments */
  .page-title {
    font-size: 1.5rem;
  }
  
  /* Card adjustments */
  .card {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }
  
  .content-wrapper {
    padding: 1rem 0.75rem;
  }
  
  /* Feature cards - stack on mobile */
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .feature-card h3,
  .feature-card .h4,
  .feature-card .h5 {
    font-size: 1rem;
  }
  
  .feature-card p {
    font-size: 0.8rem;
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Button adjustments */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Homepage left column - proper mobile spacing */
  .homepage-left-column {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    padding-top: 0.5rem !important;
  }
  
  /* On desktop, restore original padding */
  @media (min-width: 992px) {
    .homepage-left-column {
      padding-right: 20px !important;
      padding-top: 10px !important;
    }
  }
  
  /* Ensure Bootstrap container works on mobile */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Fix page-content-container padding on mobile */
  .page-content-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  /* Ensure columns stack properly on mobile */
  [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  /* Fix feature card spacing on mobile */
  .row.g-3 > [class*="col-"] {
    margin-bottom: 1rem;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .header-container {
    padding: 0.75rem 0.5rem;
    margin-top: 0.5rem;
  }
  
  .header-container h1,
  .header-container h2,
  .header-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .header-container .lead {
    font-size: 0.9rem;
  }
  
  .page-content-wrapper {
    padding: 0.75rem 0;
  }
  
  .page-content-container {
    padding: 0.5rem 0.75rem !important;
  }
  
  .feature-card {
    padding: 0.75rem;
  }
  
  .feature-card h3,
  .feature-card .h4,
  .feature-card .h5 {
    font-size: 0.95rem;
  }
  
  .feature-card p {
    font-size: 0.75rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.rounded-custom {
  border-radius: var(--radius);
}

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

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--primary);
  color: white;
}

/* Processing/Loading States */
#processingMessage {
    animation: fadeIn 0.3s ease-in;
}

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

#uploadBtn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#uploadBtnLoading {
    display: inline-flex;
    align-items: center;
}

/* Review Page Styles */
.experience-block,
.education-block,
.certification-block {
    transition: all 0.2s ease;
}

.experience-block:hover,
.education-block:hover,
.certification-block:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.achievement-item {
    min-height: 60px;
}

.achievement-text {
    resize: vertical;
}
