/* 4컷 만화 스타일 */
.comic-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2);
}

.comic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #FFB6C1;
}

.comic-title h2 {
  color: #FF69B4;
  margin: 0;
  font-size: 1.8em;
  font-weight: bold;
}

.comic-title-korean {
  color: #666;
  margin: 5px 0 0 0;
  font-size: 1.1em;
}

.comic-difficulty {
  background: #FF69B4;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
}

.comic-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.progress-bar {
  height: 6px;
  flex: 1;
  background: #FFE4E1;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.progress-bar.active {
  background: #FF69B4;
}

.comic-panel {
  background: #FFF8DC;
  border: 3px solid #FFB6C1;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-content {
  text-align: center;
  width: 100%;
}

/* 후리가나 스타일 */
.furigana-ruby {
  ruby-position: over;
  line-height: 2.2;
}

.furigana-ruby .kanji {
  font-size: 1em;
  color: #333;
}

.furigana-ruby .furigana {
  font-size: 0.6em;
  color: #FF69B4;
  font-weight: normal;
  line-height: 1;
}

.character-name {
  background: #FF69B4;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.8;
}

.character-name .furigana-ruby .kanji {
  color: white;
}

.character-name .furigana-ruby .furigana {
  color: #FFE4E1;
  font-size: 0.5em;
}

.scene-description {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.dialogue-bubble {
  background: white;
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 15px;
}

.dialogue-bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid white;
}

.dialogue-japanese {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.dialogue-romaji {
  color: #666;
  font-size: 1em;
}

.translation-section {
  margin-bottom: 20px;
}

.translation-toggle {
  background: #87CEEB;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.translation-toggle:hover {
  background: #4682B4;
}

.translation-text {
  background: #E6F3FF;
  border: 2px solid #87CEEB;
  border-radius: 15px;
  padding: 15px;
  margin-top: 10px;
  font-size: 1.1em;
  font-weight: 500;
  text-align: center;
}

.comic-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.nav-btn {
  background: #FF69B4;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background: #FF1493;
  transform: translateY(-2px);
}

.nav-btn:disabled {
  background: #DDD;
  cursor: not-allowed;
}

.panel-counter {
  color: #666;
  font-weight: bold;
}

.comic-info {
  margin-top: 30px;
}

.cultural-note,
.vocabulary {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cultural-note h3,
.vocabulary h3 {
  margin: 0 0 15px 0;
  color: #FF69B4;
  font-size: 1.2em;
}

.vocab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vocab-item {
  background: #F0E68C;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  border: 2px solid #DAA520;
}

/* 만화 목록 스타일 */
.comic-list h2 {
  color: #FF69B4;
  text-align: center;
  margin-bottom: 30px;
}

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

.comic-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.comic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
  border-color: #FF69B4;
}

.comic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comic-card h3 {
  color: #FF69B4;
  margin: 0;
  font-size: 1.3em;
}

.comic-card .comic-difficulty {
  background: #FF69B4;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
}

.comic-card-subtitle {
  color: #666;
  margin: 5px 0;
}

.comic-card-panels {
  color: #999;
  font-size: 0.9em;
  margin: 0;
}

/* 탭 스타일 */
.comic-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  background: white;
  border-radius: 25px;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto 30px auto;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  color: #666;
}

.tab-btn.active {
  background: #FF69B4;
  color: white;
}

.tab-btn:not(.active):hover {
  background: #FFE4E1;
  color: #FF69B4;
}

/* 일일 만화 헤더 */
.daily-comic-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.daily-comic-header h1 {
  color: #FF69B4;
  margin: 0 0 10px 0;
  font-size: 2em;
}

.daily-comic-header p {
  color: #666;
  margin: 0;
  font-size: 1.1em;
}

/* 모달 스타일 */
.comic-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.comic-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  position: relative;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #FF69B4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.modal-close:hover {
  background: #FF1493;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .comic-container {
    margin: 10px;
    padding: 15px;
  }
  
  .comic-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  
  .comic-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-btn {
    width: 100%;
  }
  
  .daily-comic-header h1 {
    font-size: 1.5em;
  }
  
  .comic-modal {
    padding: 10px;
  }
  
  .comic-modal-content {
    padding: 15px;
  }
}