/**
 * Unified Modern Design System for MyOMR Job Portal
 * This file ensures consistent, modern design across all pages
 */

/* Import modern form styles */
@import url("post-job-form-modern.css");

/* Shared Modern Components */
.modern-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

/* Modern Hero Section - Consistent across pages */
.hero-modern {
  background: linear-gradient(135deg, #008552 0%, #00b86b 50%, #22c55e 100%);
  position: relative;
  padding: 3.5rem 0;
  overflow: hidden;
}

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

.hero-modern .container {
  position: relative;
  z-index: 2;
}

.hero-modern h1,
.hero-modern .display-4,
.hero-modern-title {
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
  margin-bottom: 1rem;
}

.hero-modern-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-modern-title {
    font-size: 2rem;
  }
  .hero-modern-subtitle {
    font-size: 1.1rem;
  }
}

/* Modern Card Component */
.card-modern {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 133, 82, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #008552 0%, #00b86b 50%, #22c55e 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover::before {
  transform: scaleX(1);
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 133, 82, 0.2);
}

/* Modern Job Card */
.job-card-modern {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 133, 82, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.job-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #008552 0%, #00b86b 50%, #22c55e 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card-modern:hover::before {
  transform: scaleX(1);
}

.job-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 133, 82, 0.2);
}

.job-card-modern .job-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.job-card-modern .job-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.job-card-modern .job-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.job-card-modern .job-title a:hover {
  color: #008552;
}

.job-card-modern .company-name {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 1rem;
}

.job-card-modern .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.job-card-modern .badge-modern {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-modern-primary {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0c4a6e;
  border: 1px solid #7dd3fc;
}

.badge-modern-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
}

.badge-modern-warning {
  background: linear-gradient(45deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Success/Info Pages */
.success-page-modern,
.info-page-modern {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.success-card-modern,
.info-card-modern {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 133, 82, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.success-card-modern::before,
.info-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #008552 0%, #00b86b 50%, #22c55e 100%);
  transform: scaleX(1);
}

.success-icon-modern {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #008552 0%, #22c55e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 133, 82, 0.3);
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 133, 82, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 133, 82, 0.4);
  }
}

.info-icon-modern {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-modern {
    padding: 2.5rem 0 !important;
  }

  .card-modern,
  .job-card-modern {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .success-card-modern,
  .info-card-modern {
    padding: 2rem 1.5rem;
  }
}
