/* 
 * InstantViralContent.com Utilities Stylesheet
 * Contains utility classes and specialized components
 */

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }
.delay-900 { animation-delay: 900ms; }
.delay-1000 { animation-delay: 1000ms; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 99, 255, 0.8);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--white);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.badge-accent {
  background-color: var(--accent);
  color: var(--dark);
}

.badge-success {
  background-color: var(--accent-secondary);
  color: var(--white);
}

.badge-warning {
  background-color: #FF9500;
  color: var(--dark);
}

.badge-danger {
  background-color: #FF3B30;
  color: var(--white);
}

.badge-pill {
  border-radius: 50rem;
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--medium);
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font-size: 0.7rem;
}

/* Progress Bars */
.progress {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50rem;
  margin-bottom: 1rem;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary);
  transition: width 0.6s ease;
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  from { background-position: 1rem 0; }
  to { background-position: 0 0; }
}

/* Stats Cards */
.stats-card {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stats-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.stats-label {
  font-size: 0.9rem;
  color: var(--medium);
  margin-bottom: 0;
}

.stats-trend {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.stats-trend.positive {
  color: var(--accent-secondary);
}

.stats-trend.negative {
  color: var(--primary);
}

.stats-trend i {
  margin-right: 0.25rem;
}

/* Avatars */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
  color: var(--medium);
  font-weight: 600;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  font-size: 1.2rem;
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -10px;
  border: 2px solid var(--white);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* Rich Content Styles */
.rich-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.rich-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.rich-content h4 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.rich-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.rich-content ul, .rich-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.rich-content li {
  margin-bottom: 0.5rem;
}

.rich-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: rgba(108, 99, 255, 0.05);
  font-style: italic;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rich-content table th {
  background-color: var(--light);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.rich-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rich-content table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Info Box */
.info-box {
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  position: relative;
}

.info-box::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  font-size: 1.25rem;
}

.info-box-content {
  padding-left: 2.5rem;
}

.info-box-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-box.info {
  background-color: rgba(108, 99, 255, 0.1);
  border-left: 4px solid var(--secondary);
}

.info-box.info::before {
  content: "\f05a";
  color: var(--secondary);
}

.info-box.success {
  background-color: rgba(0, 191, 166, 0.1);
  border-left: 4px solid var(--accent-secondary);
}

.info-box.success::before {
  content: "\f00c";
  color: var(--accent-secondary);
}

.info-box.warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--accent);
}

.info-box.warning::before {
  content: "\f071";
  color: var(--accent);
}

.info-box.danger {
  background-color: rgba(255, 51, 102, 0.1);
  border-left: 4px solid var(--primary);
}

.info-box.danger::before {
  content: "\f06a";
  color: var(--primary);
}

/* Content Tabs */
.content-tabs {
  margin: 2rem 0;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-link {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--medium);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-link.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Steps Component */
.steps {
  display: flex;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--medium);
  max-width: 150px;
  margin: 0 auto;
}

.step-item.completed .step-number {
  background-color: var(--accent-secondary);
  color: var(--white);
}

.step-item.completed:not(:last-child)::after {
  background-color: var(--accent-secondary);
}

.step-item.active .step-number {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(108, 99, 255, 0.2);
}

/* Interactive Elements */
.clipboard-input {
  position: relative;
}

.clipboard-input input {
  padding-right: 40px;
}

.clipboard-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: none;
  border: none;
  color: var(--medium);
  cursor: pointer;
  transition: color 0.3s ease;
}

.clipboard-btn:hover {
  color: var(--secondary);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.share-btn-twitter {
  background-color: #1DA1F2;
}

.share-btn-facebook {
  background-color: #4267B2;
}

.share-btn-linkedin {
  background-color: #0077B5;
}

.share-btn-pinterest {
  background-color: #E60023;
}

.share-btn-reddit {
  background-color: #FF4500;
}

/* Markdown Preview */
.markdown-preview {
  padding: 1.5rem;
  background-color: var(--light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* Editor Style */
.editor-wrapper {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.editor-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 3px;
  color: var(--medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--dark);
}

.editor-btn.active {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--secondary);
}

.editor-content {
  padding: 1rem;
  min-height: 200px;
  overflow-y: auto;
}

/* Color Picker */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--dark);
  border-radius: 50%;
}

/* Rating Stars */
.rating {
  display: flex;
  margin: 1rem 0;
}

.rating-star {
  color: #ddd;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-star.filled {
  color: #FFD700;
}

.rating-star.half-filled {
  position: relative;
  color: #ddd;
}

.rating-star.half-filled::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #FFD700;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  z-index: 2;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-date {
  display: block;
  font-size: 0.9rem;
  color: var(--medium);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 40px;
  }

  .timeline-icon {
    left: 40px;
    margin-left: 0;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
}

/* Counter */
.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Notification Badge */
.notification-badge {
  position: relative;
  display: inline-block;
}

.notification-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--secondary);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--secondary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Drag & Drop Zone */
.dropzone {
  padding: 2rem;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  background-color: var(--light);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--secondary);
  background-color: rgba(108, 99, 255, 0.05);
}

.dropzone-icon {
  font-size: 2rem;
  color: var(--medium);
  margin-bottom: 1rem;
}

.dropzone-text {
  color: var(--medium);
}

.dropzone-text strong {
  color: var(--secondary);
  text-decoration: underline;
}

/* File Upload Preview */
.file-preview {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.file-preview-icon {
  margin-right: 0.75rem;
  color: var(--medium);
}

.file-preview-info {
  flex: 1;
}

.file-preview-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.file-preview-size {
  font-size: 0.8rem;
  color: var(--medium);
}

.file-preview-remove {
  background: none;
  border: none;
  color: var(--medium);
  cursor: pointer;
  transition: color 0.2s ease;
}

.file-preview-remove:hover {
  color: var(--primary);
}

/* Pricing Cards */
.pricing-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  position: relative;
  border: 2px solid var(--secondary);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.pricing-duration {
  font-size: 1rem;
  color: var(--medium);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-feature {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.pricing-feature i {
  margin-right: 0.5rem;
  color: var(--accent-secondary);
}

.pricing-feature.disabled {
  color: var(--light-medium);
  text-decoration: line-through;
}

.pricing-feature.disabled i {
  color: var(--light-medium);
}

.pricing-cta {
  width: 100%;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background-color: var(--light);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--secondary);
  color: var(--white);
}

/* Sortable List */
.sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sortable-item {
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  cursor: move;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sortable-item:hover {
  background-color: var(--light);
  box-shadow: var(--shadow-sm);
}

.sortable-item.dragging {
  opacity: 0.5;
}

.sortable-handle {
  color: var(--medium);
  margin-right: 1rem;
  cursor: move;
}

.sortable-content {
  flex: 1;
}

/* Calendar Widget */
.calendar-widget {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendar-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary);
  color: var(--white);
}

.calendar-title {
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.calendar-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: rgba(0, 0, 0, 0.05);
}

.calendar-day {
  padding: 0.75rem;
  text-align: center;
  background-color: var(--white);
  position: relative;
}

.calendar-weekday {
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 0.8rem;
}

.calendar-date {
  margin-top: 0.5rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-date:hover {
  background-color: var(--light);
}

.calendar-date.today {
  background-color: var(--primary);
  color: var(--white);
}

.calendar-date.event {
  position: relative;
}

.calendar-date.event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
}

.calendar-date.selected {
  background-color: var(--secondary);
  color: var(--white);
}

.calendar-date.disabled {
  color: var(--light-medium);
  cursor: not-allowed;
}

/* Search Results */
.search-result {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.search-result:hover {
  background-color: var(--light);
}

.search-result-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.search-result-title a {
  color: var(--secondary);
}

.search-result-url {
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.search-result-description {
  color: var(--medium);
  margin-bottom: 0.5rem;
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--light-medium);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* VIRAL CONTENT SPECIFIC */

/* Platform Icon */
.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Trending Topic Badge */
.trending-topic {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
}

.trending-topic i {
  margin-right: 0.5rem;
}

/* Engagement Meter */
.engagement-meter {
  height: 6px;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.engagement-level {
  height: 100%;
  background: linear-gradient(90deg, #FFC107, #FF3366);
  width: 0;
  transition: width 1s ease;
}

.engagement-label {
  font-size: 0.8rem;
  color: var(--medium);
  display: flex;
  justify-content: space-between;
}

/* Template Preview Hover */
.template-preview-hover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.template-preview-hover img {
  transition: transform 0.3s ease;
}

.template-preview-hover:hover img {
  transform: scale(1.05);
}

.template-preview-hover::after {
  content: "Preview";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-preview-hover:hover::after {
  opacity: 1;
}

/* Content Format Tag */
.content-format {
  display: inline-flex;
  align-items: center;
  background-color: var(--light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.content-format i {
  margin-right: 0.5rem;
  color: var(--secondary);
}

/* Headline Rating */
.headline-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.headline-score {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
}

.headline-gauge {
  flex: 1;
}

.headline-aspects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.headline-aspect {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.headline-aspect.good {
  background-color: rgba(0, 191, 166, 0.1);
  color: var(--accent-secondary);
}

.headline-aspect.neutral {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--secondary);
}

.headline-aspect.improve {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--accent);
}

/* Content Difficulty Indicator */
.content-difficulty {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.difficulty-level {
  margin-right: 0.5rem;
  font-weight: 600;
}

.difficulty-dots {
  display: flex;
  gap: 3px;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
}

.difficulty-level.beginner .difficulty-dot:nth-child(1) {
  background-color: var(--accent-secondary);
}

.difficulty-level.intermediate .difficulty-dot:nth-child(1),
.difficulty-level.intermediate .difficulty-dot:nth-child(2) {
  background-color: var(--accent);
}

.difficulty-level.advanced .difficulty-dot:nth-child(1),
.difficulty-level.advanced .difficulty-dot:nth-child(2),
.difficulty-level.advanced .difficulty-dot:nth-child(3) {
  background-color: var(--primary);
}

/* User Feedback Widgets */
.feedback-options {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.feedback-option {
  flex: 1;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback-option:hover {
  border-color: var(--secondary);
  background-color: rgba(108, 99, 255, 0.05);
}

.feedback-option.selected {
  border-color: var(--secondary);
  background-color: rgba(108, 99, 255, 0.1);
}

.feedback-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--medium);
}

.feedback-option.selected .feedback-icon {
  color: var(--secondary);
}

/* Trend Direction Indicator */
.trend-direction {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.trend-direction i {
  margin-right: 0.25rem;
}

.trend-up {
  color: var(--accent-secondary);
}

.trend-down {
  color: var(--primary);
}

.trend-stable {
  color: var(--secondary);
}

/* Content Length Meter */
.content-length-meter {
  margin: 1rem 0;
}

.length-progress {
  height: 8px;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.length-bar {
  height: 100%;
  background-color: var(--secondary);
  width: 0;
  transition: width 0.5s ease;
}

.length-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--medium);
}

.length-status {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Platform Recommendation */
.platform-recommendation {
  background-color: rgba(108, 99, 255, 0.05);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.platform-recommendation-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.platform-recommendation-title i {
  margin-right: 0.5rem;
  color: var(--secondary);
}

/* Template Selector */
.template-selector {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.template-option {
  flex: 0 0 auto;
  width: 150px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-option:hover {
  border-color: var(--secondary);
  background-color: rgba(108, 99, 255, 0.05);
}

.template-option.selected {
  border-color: var(--secondary);
  background-color: rgba(108, 99, 255, 0.1);
}

.template-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--medium);
}

.template-option.selected .template-icon {
  color: var(--secondary);
}

.template-name {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Analytics Card */
.analytics-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.analytics-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.analytics-period {
  font-size: 0.8rem;
  color: var(--medium);
}

.analytics-chart {
  height: 200px;
  margin-bottom: 1rem;
}

.analytics-footer {
  display: flex;
  justify-content: space-between;
}

.analytics-stat {
  text-align: center;
}

.analytics-value {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.analytics-label {
  font-size: 0.8rem;
  color: var(--medium);
}

/* Hashtag Card */
.hashtag-card {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.hashtag-card:hover {
  transform: translateX(5px);
}

.hashtag-name {
  flex: 1;
  font-weight: 500;
}

.hashtag-popularity {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Content Calendar Event */
.calendar-event {
  position: relative;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-event:hover {
  transform: translateX(5px);
}

.calendar-event.instagram {
  background-color: rgba(225, 48, 108, 0.1);
  border-left: 3px solid #E1306C;
}

.calendar-event.facebook {
  background-color: rgba(66, 103, 178, 0.1);
  border-left: 3px solid #4267B2;
}

.calendar-event.twitter {
  background-color: rgba(29, 161, 242, 0.1);
  border-left: 3px solid #1DA1F2;
}

.calendar-event.tiktok {
  background-color: rgba(0, 0, 0, 0.1);
  border-left: 3px solid #000000;
}

.calendar-event.youtube {
  background-color: rgba(255, 0, 0, 0.1);
  border-left: 3px solid #FF0000;
}

.calendar-event-time {
  font-size: 0.8rem;
  color: var(--medium);
  margin-bottom: 0.25rem;
}

.calendar-event-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.calendar-event-platform {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.calendar-event-platform i {
  margin-right: 0.25rem;
}

/* Content Creation Progress */
.content-progress {
  margin: 1.5rem 0;
}

.progress-steps {
  display: flex;
  position: relative;
  margin-bottom: 1.5rem;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--light);
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--medium);
  transition: all 0.3s ease;
}

.progress-step.completed .progress-dot {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.progress-step.active .progress-dot {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 0 5px rgba(108, 99, 255, 0.1);
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.progress-step.completed .progress-label {
  color: var(--secondary);
}

.progress-content {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Inspiration Card */
.inspiration-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.inspiration-card::before {
  content: """;
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 8rem;
  color: rgba(108, 99, 255, 0.1);
  font-family: Georgia, serif;
}

.inspiration-content {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
}

.inspiration-source {
  text-align: right;
  font-weight: 500;
}

.inspiration-refresh {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.inspiration-refresh:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* Clipboard Widget */
.clipboard-widget {
  position: relative;
}

.clipboard-content {
  padding: 1rem;
  background-color: var(--light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
  padding-right: 40px;
}

.clipboard-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--medium);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.clipboard-btn:hover {
  color: var(--secondary);
}

/* Platform Indicator */
.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.platform-pill i {
  margin-right: 0.4rem;
}

.platform-pill.instagram {
  background-color: rgba(225, 48, 108, 0.1);
  color: #E1306C;
}

.platform-pill.facebook {
  background-color: rgba(66, 103, 178, 0.1);
  color: #4267B2;
}

.platform-pill.twitter {
  background-color: rgba(29, 161, 242, 0.1);
  color: #1DA1F2;
}

.platform-pill.tiktok {
  background-color: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.platform-pill.youtube {
  background-color: rgba(255, 0, 0, 0.1);
  color: #FF0000;
}

.platform-pill.linkedin {
  background-color: rgba(0, 119, 181, 0.1);
  color: #0077B5;
}

.platform-pill.pinterest {
  background-color: rgba(230, 0, 35, 0.1);
  color: #E60023;
}

.platform-pill.reddit {
  background-color: rgba(255, 69, 0, 0.1);
  color: #FF4500;
}

.platform-pill.snapchat {
  background-color: rgba(255, 252, 0, 0.1);
  color: #FFFC00;
}

/* Idea Card */
.idea-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.idea-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.idea-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.idea-type {
  background-color: var(--light);
  color: var(--medium);
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  margin-right: 0.75rem;
}

.idea-title {
  flex: 1;
  font-weight: 600;
}

.idea-save {
  background: none;
  border: none;
  color: var(--medium);
  cursor: pointer;
  transition: color 0.2s ease;
}

.idea-save:hover, .idea-save.saved {
  color: var(--primary);
}

.idea-content {
  margin-bottom: 1rem;
}

.idea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.idea-tag {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--secondary);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* Content Score */
.content-score {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.score-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.score-value {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--secondary) 0%, var(--secondary) 80%, var(--light) 80%, var(--light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
}

.score-value-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.score-details {
  flex: 1;
}

.score-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.score-description {
  color: var(--medium);
  font-size: 0.9rem;
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.score-metric {
  background-color: var(--light);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.metric-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--medium);
}

/* Custom Scrollbar for elements */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.5) #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.5);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 99, 255, 0.8);
}

/* Content Preview Frame */
.content-preview-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  margin-bottom: 2rem;
}

.preview-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--dark);
  color: var(--white);
}

.preview-platform-icon {
  margin-right: 0.75rem;
}

.preview-platform-name {
  font-weight: 500;
  flex: 1;
}

.preview-actions {
  display: flex;
  gap: 0.5rem;
}

.preview-action-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.preview-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.preview-content {
  padding: 1.5rem;
  min-height: 300px;
}

.preview-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--light);
}

.preview-metrics {
  display: flex;
  gap: 1rem;
  color: var(--medium);
  font-size: 0.9rem;
}

.preview-metric {
  display: flex;
  align-items: center;
}

.preview-metric i {
  margin-right: 0.4rem;
}

/* Custom Radio Group */
.custom-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.custom-radio {
  display: none;
}

.custom-radio-label {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--light);
  color: var(--medium);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.custom-radio-label i {
  margin-right: 0.5rem;
}

.custom-radio:checked + .custom-radio-label {
  background-color: var(--secondary);
  color: var(--white);
}

/* Viral Score Indicator */
.viral-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.viral-score-display {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.viral-score-number {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
}

.viral-details {
  flex: 1;
}

.viral-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.viral-status {
  color: var(--medium);
  margin-bottom: 0.75rem;
}

.viral-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.viral-factor {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.viral-factor.positive {
  background-color: rgba(0, 191, 166, 0.1);
  color: var(--accent-secondary);
}

.viral-factor.negative {
  background-color: rgba(255, 51, 102, 0.1);
  color: var(--primary);
}