/* ==========================================================================
   E-Portfolio PPL Siklus 1 - Component Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO & PROFILE CARD (GLASS PANEL)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 36px;
  padding-bottom: 40px;
}

.profile-card.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.profile-card.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #0d9488, #7c3aed);
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar {
  width: 155px;
  height: 155px;
  border-radius: var(--radius-full);
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-surface);
  display: block;
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: #10b981;
  border: 3px solid var(--bg-surface);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  z-index: 2;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.profile-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.tag-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-accent);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Profile Metadata Grid */
.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.meta-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.meta-label svg {
  color: var(--primary);
  flex-shrink: 0;
}

.meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.font-bold {
  font-weight: 700;
}

.text-accent {
  color: var(--accent-teal);
}

/* --------------------------------------------------------------------------
   2. LESSON PLAN / RANCANGAN PEMBELAJARAN SHOWCASE
   -------------------------------------------------------------------------- */
.lesson-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.lesson-plan-header {
  padding: 32px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(to right, var(--bg-surface), var(--bg-subtle));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.lesson-plan-title-area {
  max-width: 680px;
}

.lesson-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.tag-badge.accent {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  border-color: rgba(13, 148, 136, 0.3);
}

.plan-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.lesson-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

/* Lesson Goals Section */
.lesson-goals-box {
  padding: 24px 32px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.goals-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.goals-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.goal-bullet {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Components Sub-grid */
.components-section {
  padding: 32px;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.doc-component-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.doc-component-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.doc-card-top {
  margin-bottom: 16px;
}

.doc-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 8px;
}

.doc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.doc-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

.doc-pages-count {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. VIDEO PELAKSANAAN PRAKTIK MENGAJAR SHOWCASE
   -------------------------------------------------------------------------- */
.video-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: all var(--transition-normal);
}

.video-player-preview-side {
  position: relative;
  background: #000000;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.5s ease;
}

.video-player-preview-side:hover .video-thumb-bg {
  transform: scale(1.04);
}

.video-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.5) 100%);
}

.video-center-play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.play-pulse-btn {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  transition: transform var(--transition-fast);
}

.video-center-play:hover .play-pulse-btn {
  transform: scale(1.1);
  background: #dc2626;
}

.play-caption-text {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.video-duration-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Video Details Column */
.video-details-side {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.video-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.video-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.video-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.55;
}

.video-action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Timestamps / Phase Accordion */
.video-timestamps-wrap {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.timestamps-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timestamps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timestamp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.84rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.timestamp-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-accent);
}

.time-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.timestamp-info {
  display: flex;
  flex-direction: column;
}

.stage-title {
  font-weight: 700;
  color: var(--text-primary);
}

.stage-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. REFLECTION SECTION
   -------------------------------------------------------------------------- */
.reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.reflection-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.reflection-box.accent-green {
  border-top: 4px solid #10b981;
}

.reflection-box.accent-amber {
  border-top: 4px solid #f59e0b;
}

.reflection-box.accent-blue {
  border-top: 4px solid var(--primary);
  grid-column: 1 / -1;
}

.reflection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.reflection-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reflection-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reflection-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.mentor-quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quote-text {
  font-style: italic;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   5. MODALS (VIDEO & DOC VIEWER)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: all var(--transition-normal);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Video Modal Responsive Frame */
.video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000000;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* Document Viewer Modal Specifics */
.gdrive-pdf-container {
  position: relative;
  width: 100%;
  height: 74vh;
  min-height: 520px;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gdrive-pdf-iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pdf-loading-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #94a3b8;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 0;
  pointer-events: none;
}

.doc-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.doc-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.doc-tab-btn.active, .doc-tab-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.doc-paper-view {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  min-height: 380px;
}

.doc-sheet-header {
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.doc-sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.doc-sheet-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.doc-sheet-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-sheet-body h5 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 18px 0 8px 0;
}

/* Animation Keyframes */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Responsive Rules for Components */
@media (max-width: 900px) {
  .profile-card.glass-panel {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 24px;
  }
  .profile-name-row {
    justify-content: center;
  }
  .video-showcase-card {
    grid-template-columns: 1fr;
  }
  .reflection-grid, .mentor-quotes-grid {
    grid-template-columns: 1fr;
  }
}
