/* Shared styles for content pages (ideas, memos, essays, blog posts) */
/* Color scheme: Blue-Purple gradient spectrum */
/* Essays: Royal Blue #4169E1 | Memos: Teal #20B2AA | Ideas: Purple #8B5CF6 | Blog: Slate Blue #6B7FD7 */

/* Main container */
.idea,
.flashcard,
.essay,
.post {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

/* Badge - Individual colors per content type */
.essay-badge {
  position: absolute;
  top: -10px;
  right: 30px;
  background: linear-gradient(135deg, #4169E1 0%, #2a52c7 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(65, 105, 225, 0.4);
}

.flashcard-badge {
  position: absolute;
  top: -10px;
  right: 30px;
  background: linear-gradient(135deg, #20B2AA 0%, #1a9388 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(32, 178, 170, 0.4);
}

.idea-badge {
  position: absolute;
  top: -10px;
  right: 30px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7c3aed 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.post-badge {
  position: absolute;
  top: -10px;
  right: 30px;
  background: linear-gradient(135deg, #6B7FD7 0%, #5668c7 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(107, 127, 215, 0.4);
}

/* Header - Individual colors per content type */
.essay-header {
  border-bottom: 3px solid #4169E1;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.flashcard-header {
  border-bottom: 3px solid #20B2AA;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.idea-header {
  border-bottom: 3px solid #8B5CF6;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.post-header {
  border-bottom: 3px solid #6B7FD7;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

/* Title - Individual colors per content type */
.essay-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #4169E1 0%, #2a52c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flashcard-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #20B2AA 0%, #1a9388 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.idea-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #8B5CF6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #6B7FD7 0%, #5668c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.idea-subtitle,
.flashcard-subtitle,
.essay-subtitle,
.post-subtitle {
  font-size: 20px;
  color: #555;
  font-weight: 400;
  margin: 15px 0 0 0;
  font-style: italic;
  line-height: 1.4;
}

/* Date */
.idea-date,
.flashcard-date,
.essay-date,
.post-date {
  font-size: 14px;
  color: #888;
  margin: 10px 0 0 0;
  font-weight: 400;
}

/* Metadata box - Individual colors per content type */
.essay-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef1fa 100%);
  border-radius: 10px;
  border-left: 5px solid #4169E1;
}

.flashcard-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8faf8 100%);
  border-radius: 10px;
  border-left: 5px solid #20B2AA;
}

.idea-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #f3f0fc 100%);
  border-radius: 10px;
  border-left: 5px solid #8B5CF6;
}

.post-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2fa 100%);
  border-radius: 10px;
  border-left: 5px solid #6B7FD7;
}

/* Metadata items */
.idea-stage,
.idea-priority,
.idea-domain,
.flashcard-topic,
.essay-topic,
.essay-category,
.essay-reading-time,
.post-category {
  display: flex;
  align-items: center;
  gap: 10px;
}

.idea-stage strong,
.idea-priority strong,
.idea-domain strong,
.flashcard-topic strong,
.essay-topic strong,
.essay-category strong,
.essay-reading-time strong,
.post-category strong {
  font-weight: 700;
  color: #444;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Metadata badge colors - Individual per content type */
.essay-topic span,
.essay-category span,
.essay-reading-time span {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  background-color: white;
  color: #4169E1;
  border: 2px solid #4169E1;
  box-shadow: 0 2px 6px rgba(65, 105, 225, 0.3);
}

.flashcard-topic span {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  background-color: white;
  color: #20B2AA;
  border: 2px solid #20B2AA;
  box-shadow: 0 2px 6px rgba(32, 178, 170, 0.3);
}

.idea-stage span,
.idea-priority span,
.idea-domain span {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  background-color: white;
  color: #8B5CF6;
  border: 2px solid #8B5CF6;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.post-category span {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  background-color: white;
  color: #6B7FD7;
  border: 2px solid #6B7FD7;
  box-shadow: 0 2px 6px rgba(107, 127, 215, 0.3);
}



/* Content */
.idea-content,
.flashcard-content,
.essay-content,
.post-content {
  line-height: 1.8;
  font-size: 17px;
  color: #333;
  margin-bottom: 30px;
}

.idea-content h2,
.flashcard-content h2,
.essay-content h2,
.post-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2a2a2a;
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.idea-content h3,
.flashcard-content h3,
.essay-content h3,
.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #3a3a3a;
  margin-top: 28px;
  margin-bottom: 12px;
}

.idea-content p,
.flashcard-content p,
.essay-content p,
.post-content p {
  margin-bottom: 15px;
}

.idea-content a,
.flashcard-content a,
.essay-content a,
.post-content a {
  color: var(--thingsai-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.idea-content a:hover,
.flashcard-content a:hover,
.essay-content a:hover,
.post-content a:hover {
  opacity: 0.9;
  border-bottom-color: var(--thingsai-cyan);
}

.idea-content ul,
.idea-content ol,
.flashcard-content ul,
.flashcard-content ol,
.essay-content ul,
.essay-content ol,
.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.idea-content li,
.flashcard-content li,
.essay-content li,
.post-content li {
  margin-bottom: 10px;
}

.idea-content strong,
.flashcard-content strong,
.essay-content strong,
.post-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

.idea-content em,
.flashcard-content em,
.essay-content em,
.post-content em {
  font-style: italic;
  color: #555;
}

.idea-content code,
.flashcard-content code,
.essay-content code,
.post-content code {
  background-color: #f4f4f4;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: #c7254e;
}

.idea-content pre,
.flashcard-content pre,
.essay-content pre,
.post-content pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.idea-content pre code,
.flashcard-content pre code,
.essay-content pre code,
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.idea-content blockquote,
.flashcard-content blockquote,
.essay-content blockquote,
.post-content blockquote {
  border-left: 4px solid #00CED1;
  margin: 20px 0;
  padding: 15px 20px;
  background-color: #f9f9fc;
  font-style: italic;
  color: #555;
}

.idea-content img,
.flashcard-content img,
.essay-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 10px;
}

[data-theme="dark"] .idea-content img,
[data-theme="dark"] .flashcard-content img,
[data-theme="dark"] .essay-content img,
[data-theme="dark"] .post-content img {
  background-color: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.idea-content figure,
.flashcard-content figure,
.essay-content figure,
.post-content figure {
  margin: 30px 0;
  text-align: center;
}

.idea-content figcaption,
.flashcard-content figcaption,
.essay-content figcaption,
.post-content figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Dark mode support */
[data-theme="dark"] .idea,
[data-theme="dark"] .flashcard,
[data-theme="dark"] .essay,
[data-theme="dark"] .post {
  background: linear-gradient(to bottom, #1a1a1a 0%, #252525 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .idea-title,
[data-theme="dark"] .flashcard-title,
[data-theme="dark"] .essay-title,
[data-theme="dark"] .post-title {
  color: #f0f0f0;
}

[data-theme="dark"] .idea-subtitle,
[data-theme="dark"] .flashcard-subtitle,
[data-theme="dark"] .essay-subtitle,
[data-theme="dark"] .post-subtitle {
  color: #b0b0b0;
}

[data-theme="dark"] .idea-date,
[data-theme="dark"] .flashcard-date,
[data-theme="dark"] .essay-date,
[data-theme="dark"] .post-date {
  color: #888;
}

[data-theme="dark"] .idea-metadata,
[data-theme="dark"] .flashcard-metadata,
[data-theme="dark"] .essay-metadata,
[data-theme="dark"] .post-metadata {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f3a3a 100%);
}

[data-theme="dark"] .idea-stage strong,
[data-theme="dark"] .idea-priority strong,
[data-theme="dark"] .idea-domain strong,
[data-theme="dark"] .flashcard-topic strong,
[data-theme="dark"] .essay-topic strong,
[data-theme="dark"] .essay-category strong,
[data-theme="dark"] .essay-reading-time strong,
[data-theme="dark"] .post-category strong {
  color: #d8d8d8;
}

/* Dark mode badge colors - Individual per content type */
[data-theme="dark"] .essay-topic span,
[data-theme="dark"] .essay-category span,
[data-theme="dark"] .essay-reading-time span {
  background-color: #1a1a1a;
  color: #4169E1;
  border-color: #4169E1;
}

[data-theme="dark"] .flashcard-topic span {
  background-color: #1a1a1a;
  color: #20B2AA;
  border-color: #20B2AA;
}

[data-theme="dark"] .idea-stage span,
[data-theme="dark"] .idea-priority span,
[data-theme="dark"] .idea-domain span {
  background-color: #1a1a1a;
  color: #8B5CF6;
  border-color: #8B5CF6;
}

[data-theme="dark"] .post-category span {
  background-color: #1a1a1a;
  color: #6B7FD7;
  border-color: #6B7FD7;
}

[data-theme="dark"] .idea-content,
[data-theme="dark"] .flashcard-content,
[data-theme="dark"] .essay-content,
[data-theme="dark"] .post-content {
  color: #d8d8d8;
}

[data-theme="dark"] .idea-content h2,
[data-theme="dark"] .flashcard-content h2,
[data-theme="dark"] .essay-content h2,
[data-theme="dark"] .post-content h2 {
  color: #f0f0f0;
  border-bottom-color: #404040;
}

[data-theme="dark"] .idea-content h3,
[data-theme="dark"] .flashcard-content h3,
[data-theme="dark"] .essay-content h3,
[data-theme="dark"] .post-content h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .idea-content strong,
[data-theme="dark"] .flashcard-content strong,
[data-theme="dark"] .essay-content strong,
[data-theme="dark"] .post-content strong {
  color: #f0f0f0;
}

[data-theme="dark"] .idea-content em,
[data-theme="dark"] .flashcard-content em,
[data-theme="dark"] .essay-content em,
[data-theme="dark"] .post-content em {
  color: #b0b0b0;
}

[data-theme="dark"] .idea-content blockquote,
[data-theme="dark"] .flashcard-content blockquote,
[data-theme="dark"] .essay-content blockquote,
[data-theme="dark"] .post-content blockquote {
  background-color: #2a2a2a;
  color: #b0b0b0;
}
