/* Features Section */
.features {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

body.dark-mode .features {
  background: rgba(0, 0, 0, 0.3);
}

/* Carousel */
.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .carousel-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.feature-title {
  color: white;
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.feature-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
}

.feature-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6bcf7f;
  font-weight: bold;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 350px;
}

body.dark-mode .demo-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Demo Components */
.comment-demo {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.demo-comment {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.demo-comment:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

body.dark-mode .demo-comment {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .demo-comment:hover {
  background: rgba(0, 0, 0, 0.5);
}

.demo-comment.user-timestamp {
  border-left: 4px solid #ffd93d;
}

.demo-comment.user-only {
  border-left: 4px solid #ff6b6b;
}

.demo-comment.timestamp-only {
  border-left: 4px solid #4d96ff;
}

.demo-type {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.demo-content {
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.demo-timestamp {
  color: #4d96ff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-timestamp:hover {
  background: #4d96ff;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Carousel Navigation */
.carousel-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

body.dark-mode .carousel-btn {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .carousel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

body.dark-mode .indicator {
  background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .indicator.active {
  background: #667eea;
}

/* Toast Theme Previews */
.themes-demo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
}

.theme-preview {
  padding: 10px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
}

.theme-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.theme-name {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-align: center;
}

.toast-preview {
  display: flex;
  justify-content: center;
}

.toast-mini {
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  max-width: 100%;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Default Theme */
.default-theme {
  background: rgba(0, 0, 0, 0.1);
}

.default-theme .toast-mini {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border: 1px solid rgba(255, 107, 107, 0.5);
}

/* Modern Theme */
.modern-theme {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.modern-theme .toast-mini {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Minimal Theme */
.minimal-theme {
  background: rgba(248, 250, 252, 0.1);
}

.minimal-theme .toast-mini {
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments for theme previews */
body.dark-mode .default-theme .toast-mini {
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 107, 107, 0.6);
}

body.dark-mode .modern-theme .toast-mini {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .minimal-theme .toast-mini {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Colorful Theme */
.colorful-theme {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1),
    rgba(102, 126, 234, 0.1)
  );
}

.colorful-theme .toast-mini {
  background: linear-gradient(135deg, #ff6b6b, #667eea);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Glass Theme */
.glass-theme {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
}

.glass-theme .toast-mini {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gaming Theme */
.gaming-theme {
  background: rgba(0, 255, 127, 0.05);
}

.gaming-theme .toast-mini {
  background: rgba(0, 0, 0, 0.9);
  color: #00ff7f;
  border: 1px solid #00ff7f;
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
  font-family: "Courier New", monospace;
}

/* Dark mode adjustments for new themes */
body.dark-mode .colorful-theme .toast-mini {
  background: linear-gradient(135deg, #e53e3e, #5a67d8);
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

body.dark-mode .glass-theme .toast-mini {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .gaming-theme .toast-mini {
  background: rgba(0, 0, 0, 0.95);
  color: #00ff7f;
  border: 1px solid #00ff7f;
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.4);
}
