/* Page-specific presentation rules for the resume page. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  --primary-color: var(--primary-green, #289a3f);
  --hover-color: var(--accent-green, #15bb62);
  --background-color: var(--background-darker, #010e1b);
  --page-background: var(--background-dark, #09203a);
  --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;

  line-height: 1;
}

.header {
  text-align: center;
  padding: 20px 0;
  background: var(--page-background, #09203a);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.btn-download {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn.btn-download:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

.btn.btn-view {
  background-color: white;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
}

.btn.btn-view:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
}

.btn.btn-back {
  background-color: white;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
}

.btn.btn-back:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 220px);
}

.pdf-page {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
  cursor: none !important;
}

.pdf-page:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.pdf-page img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-note,
.preview-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
}

.preview-fallback {
  display: grid;
  gap: 12px;
  justify-items: center;
  color: var(--text-gray-light, #d9e1e8);
}

.preview-fallback-help {
  color: var(--text-gray-light, #d9e1e8);
}
.pdf-grid .loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* PDF Viewer Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  height: 90vh;
  background: white;
  border-radius: 10px;
  position: relative;
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.footer {
  text-align: center;
  padding: 20px 0;
  background: var(--page-background, #09203a);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
  .pdf-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    height: 85vh;
  }
}

/* Ensure the aurora background stays fixed to the viewport during scroll */
.aurora-bg {
  position: fixed !important;
}

.inline-style-1 {
  color: #f0f0f0 !important;
}
