/* Custom premium style system for Video Editing Course Summary website */

:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(22, 30, 49, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glow-1: rgba(59, 130, 246, 0.15);
  --glow-2: rgba(139, 92, 246, 0.15);
  --font-title: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background glowing blur spheres */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.glow-bg::before, .glow-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.glow-bg::before {
  width: 400px;
  height: 400px;
  background: var(--glow-1);
  top: 10%;
  right: 15%;
}

.glow-bg::after {
  width: 500px;
  height: 500px;
  background: var(--glow-2);
  bottom: 10%;
  left: 10%;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
}

/* Header */
header {
  padding: 5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

header h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Card (Glassmorphism) */
.section-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-header .icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Slide Viewer component */
.slide-viewer {
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-container {
  position: relative;
  flex-grow: 1;
}

.slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide-number {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.slide h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.slide-body {
  font-size: 1.05rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-weight: 300;
  border-left: 3px solid var(--secondary-color);
  padding-left: 1rem;
}

.slide-list {
  list-style: none;
  padding-left: 0.5rem;
}

.slide-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.slide-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Timeline Component in Slide 2 */
.timeline {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-item .time {
  display: block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-item .font-glow {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.timeline-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Slide Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.slide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
}

.slide-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.slide-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tip-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

.tip-item .num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.3);
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}

.tip-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.tip-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Quote box */
.quote-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px dashed rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
  margin-top: 1rem;
}

/* Slide Controls */
.slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.control-btn:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 999px;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

/* Workflow Steps */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transform: translateX(4px);
}

.step-card.highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.step-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-badge-core {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.step-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Prompt Box (Copyable) */
.prompt-box {
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.prompt-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.prompt-box pre {
  padding: 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #60a5fa;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Length Comparison Grid */
.length-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.length-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
}

.length-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.length-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Accordion style for Tips Section */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
}

.accordion-header .emoji {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.accordion-header .title {
  flex-grow: 1;
}

.accordion-header .arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
  border-color: rgba(255, 255, 255, 0.03);
}

.accordion-content ul {
  padding: 1.5rem 2rem;
  list-style: none;
}

.accordion-content li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.accordion-content li strong {
  color: var(--text-main);
  font-weight: 500;
  display: inline-block;
  min-width: 80px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-color);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-container p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }
  
  .timeline {
    flex-direction: column;
    gap: 1rem;
  }
  
  .grid-2, .tips-grid, .length-comparison {
    grid-template-columns: 1fr;
  }

  .slide-viewer {
    min-height: 480px;
  }
}
