/* ==========================================
 * Recruitment Flyer Widget Style
 * Litera Publishing
 * ========================================== */

:root {
  --oprec-primary: #091f4e;
  --oprec-primary-rgb: 9, 31, 78;
  --oprec-secondary: #246a14;
  --oprec-secondary-rgb: 36, 106, 20;
  --oprec-accent: #77b6ca;
  --oprec-light: #f8fbfc;
  --oprec-dark: #1e293b;
  --oprec-success: #10b981;
}

/* Floating Recruitment Badge */
.oprec-badge {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--oprec-primary) 0%, #1a3a7a 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(9, 31, 78, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.oprec-badge:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(9, 31, 78, 0.4);
  color: #fff;
}

.oprec-badge-pulse {
  position: relative;
  display: flex;
  width: 10px;
  height: 10px;
}

.oprec-badge-pulse .dot-core {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--oprec-success);
}

.oprec-badge-pulse .dot-pulse {
  animation: oprec-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--oprec-success);
  opacity: 0.75;
}

@keyframes oprec-ping {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.oprec-badge-text {
  letter-spacing: 0.5px;
}

/* Modal Overlay with Glassmorphism */
.oprec-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 31, 78, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.oprec-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container/Card (Interactive Flyer) */
.oprec-flyer-card {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.oprec-modal-overlay.active .oprec-flyer-card {
  transform: translateY(0) scale(1);
}

/* Left Panel - Visual & Branding */
.oprec-flyer-left {
  position: relative;
  background: linear-gradient(135deg, var(--oprec-primary) 0%, #0d1e3d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  overflow: hidden;
}

.oprec-flyer-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  mix-blend-mode: overlay;
  transition: transform 10s ease;
}

.oprec-flyer-card:hover .oprec-flyer-left-bg {
  transform: scale(1.08);
}

.oprec-flyer-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 31, 78, 0.1) 0%, rgba(9, 31, 78, 0.9) 100%);
  z-index: 1;
}

.oprec-flyer-left-content {
  position: relative;
  z-index: 2;
}

.oprec-logo-mini {
  max-width: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.oprec-flyer-left h4 {
  color: #77b6ca;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.oprec-flyer-left h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.oprec-flyer-left p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Right Panel - Information & Details */
.oprec-flyer-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Close Button */
.oprec-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--oprec-dark);
  z-index: 10;
}

.oprec-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: rotate(90deg);
}

.oprec-header-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(36, 106, 20, 0.1);
  color: var(--oprec-secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  width: fit-content;
}

.oprec-title {
  color: var(--oprec-primary);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.oprec-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Key Features Grid */
.oprec-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.oprec-key-card {
  background: var(--oprec-light);
  border: 1px solid rgba(9, 31, 78, 0.05);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.oprec-key-card:hover {
  background: rgba(9, 31, 78, 0.02);
  transform: translateY(-2px);
  border-color: rgba(9, 31, 78, 0.1);
}

.oprec-key-card i {
  font-size: 20px;
  color: var(--oprec-secondary);
  margin-bottom: 6px;
  display: block;
}

.oprec-key-card h5 {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 600;
}

.oprec-key-card p {
  font-size: 11px;
  color: var(--oprec-dark);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Curriculum/Skills section */
.oprec-skills-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--oprec-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.oprec-skills-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.oprec-skills-list li {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.oprec-skills-list li i {
  color: var(--oprec-success);
  font-size: 14px;
}

/* Footer & Buttons */
.oprec-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oprec-btn-primary {
  background: linear-gradient(135deg, var(--oprec-secondary) 0%, #1e5610 100%);
  color: #ffffff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(36, 106, 20, 0.2);
  display: block;
  text-decoration: none;
}

.oprec-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 106, 20, 0.3);
  color: #ffffff;
}

.oprec-footer-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
}

.oprec-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.oprec-btn-wa:hover {
  color: #15803d;
  text-decoration: underline;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .oprec-flyer-card {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .oprec-flyer-left {
    padding: 30px;
    height: 180px;
    justify-content: flex-end;
  }
  
  .oprec-flyer-left h2 {
    font-size: 22px;
    margin-bottom: 5px;
  }
  
  .oprec-flyer-left p {
    font-size: 12px;
    display: none; /* Hide description on mobile to save space */
  }
  
  .oprec-flyer-right {
    padding: 25px;
  }
  
  .oprec-title {
    font-size: 20px;
  }
  
  .oprec-skills-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 20px;
  }
  
  .oprec-key-grid {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .oprec-badge {
    bottom: 20px;
    left: 20px;
    padding: 10px 16px;
    font-size: 12px;
  }
}
