/*
Theme Name: GeneratePress Child - CV Builder
Theme URI: https://yourwebsite.com
Description: Child theme untuk CV Builder publik (ATS-friendly, profesional, elegan, dan berkelas)
Author: Muhammad Cory
Template: generatepress
Version: 2.1
Text Domain: generatepress-child
*/

/* Font & Variable */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@500;700&display=swap');

:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #0b3d91;
  --accent-2: #1f6feb;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --muted: #6b7280;
  --border: #e6e9ef;
  --radius: 14px;
  --max-width: 980px;
  --font-main: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-title: 'Playfair Display', serif;
}

/* Global */
body {
  background: var(--bg);
  font-family: var(--font-main);
  color: #0f172a;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease;
}

/* Wrapper */
.gp-cvbuilder-wrap {
  max-width: var(--max-width);
  margin: 48px auto;
  padding: 36px;
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 60px rgba(12, 18, 30, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.8s ease forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.cv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.cv-top .title {
  display: flex;
  flex-direction: column;
}
.cv-top h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--accent);
  letter-spacing: -0.5px;
}
.cv-top p.lead {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Grid Layout */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}

/* Form Card */
.cv-form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(12, 18, 30, 0.06);
  transition: all 0.25s ease;
}
.cv-form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 111, 235, 0.08);
}

/* Form */
.cv-form h2 {
  margin: 0 0 14px 0;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  border-left: 4px solid var(--accent-2);
  padding-left: 8px;
}
.field {
  margin-bottom: 14px;
}
label {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 6px;
  font-weight: 600;
}
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  color: #0f172a;
  transition: box-shadow .18s ease, border-color .18s ease, transform .1s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 6px 20px rgba(31,111,235,0.1);
  transform: scale(1.01);
}
textarea { min-height: 88px; resize: vertical; }
.helper {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31,111,235,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(31,111,235,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(11,61,145,0.12);
}
.btn-ghost:hover {
  background: rgba(11,61,145,0.05);
}

/* Preview Card */
.cv-preview-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  position: sticky;
  top: 28px;
  box-shadow: 0 10px 24px rgba(12,18,30,0.05);
  transition: all 0.25s ease;
}
.cv-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(12,18,30,0.07);
}

/* CV Content */
.cv-preview-main {
  font-family: 'Times New Roman', Georgia, serif;
}
.cv-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
}
.cv-contact {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.cv-section {
  margin-top: 18px;
}
.cv-section h3 {
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: #0f172a;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
}
.cv-section p, .cv-section ul {
  margin: 0;
  padding: 0;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.55;
}
.cv-section ul {
  list-style: disc;
  padding-left: 20px;
}

/* Photo */
.cv-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  float: right;
  margin-left: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  transition: all 0.3s ease;
}
.cv-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(31,111,235,0.2);
}

/* Toast / Notif */
.cv-toast {
  position: fixed;
  right: 20px;
  bottom: 28px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.2);
  display: none;
  z-index: 9999;
  font-weight: 600;
}

/* Responsive */
@media (max-width:980px){
  .cv-grid { grid-template-columns: 1fr; }
  .cv-preview-card { position: relative; top: auto; margin-top: 24px; }
  .cv-photo { float: none; display: block; margin: 0 0 12px 0; width: 86px; height: 86px; }
  .gp-cvbuilder-wrap { margin: 20px; padding: 24px; }
}

/* Print */
@media print {
  body { background: #fff; }
  .gp-cvbuilder-wrap { box-shadow: none; border: none; padding: 0; }
  .cv-form-card, .btn, .cv-top { display: none; }
  .cv-preview-card { box-shadow: none; border: none; padding: 0; }
}

/* Footer Copyright */
.cv-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.3px;
}
.cv-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.cv-footer a:hover {
  text-decoration: underline;
}
.cv-footer span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #9ca3af;
}
