/* resume.css - Minimalistic Resume Display */

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume-head {
  padding: var(--space-3xl) var(--space-2xl);
  margin: 0 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-3xl);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  /* Add animation */
  animation: fadeInUp 0.8s ease-out;
}

.resume-head::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
}

.resume-head .left {
  position: relative;
  z-index: 1;
}

.resume-head h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-head .muted {
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

/* Action Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.actions .btn {
  flex: 1;
  min-width: 160px;
  justify-content: center;
  gap: var(--space-sm);
}

/* Meta Pills */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.meta .pill {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: var(--text-xs);
  border: 1px solid rgba(8, 145, 178, 0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.meta .pill:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Quick Links Card */
.mini {
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.mini h3 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
  font-family: var(--font-sans);
  font-weight: 700;
}

.mini-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  position: relative;
  overflow: hidden;
}

.mini-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.mini-link:hover::before {
  transform: scaleY(1);
}

.mini-link:hover {
  border-color: var(--primary);
  transform: translateX(8px);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  background: var(--primary-lighter);
}

.mini-link::after {
  content: '→';
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  font-size: var(--text-lg);
}

.mini-link:hover::after {
  transform: translateX(4px);
  color: var(--primary);
}

.mini-link:last-child {
  margin-bottom: 0;
}

/* PDF Viewer Section */
.viewer {
  padding: 0;
  /* margin-top: var(--space-2xl); */
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  /* Add animation */
  animation: fadeInUp 1s ease 0.2s both;
}

.pdf-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  margin: var(--space-xl);
}

.pdf {
  width: 100%;
  height: min(85vh, 1000px);
  border: 0;
  display: block;
  background: white;
}

/* Loading State */
.pdf-wrap.loading {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.pdf-wrap.loading::after {
  content: 'Loading resume...';
  color: var(--text-tertiary);
  font-size: var(--text-lg);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .resume-head {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
  }

  .mini {
    max-width: 500px;
  }

  .pdf {
    height: 75vh;
  }
}

@media (max-width: 768px) {
  .resume-head {
    padding: var(--space-xl);
  }

  .resume-head h1 {
    font-size: var(--text-4xl);
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .viewer {
    margin-top: var(--space-xl);
  }

  .pdf-wrap {
    margin: var(--space-md);
  }

  .pdf {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .resume-head::before {
    width: 250px;
    height: 250px;
  }

  .meta .pill {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .pdf {
    height: 60vh;
  }
}
