/* CutestUI Ribbons Component Styles */

/* Example container styles */
.ribbon-example {
  position: relative;
  width: 100%;
  height: 120px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ribbon-example .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #495057;
}

/* Code block styles */
.code-block {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

/* Section title styles */
.section-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
}

/* Feature list styles */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
}

.feature-list li i {
  color: #007bff;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* Base ribbon styles */
.ribbon {
  position: absolute;
  z-index: 1000;
  overflow: visible;
}

.ribbon-content {
  display: block;
  width: 160px;
  height: 30px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: white;
  white-space: nowrap;
  line-height: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Corner positioning */
.ribbon-top-right {
  top: 0;
  right: 0;
}

.ribbon-top-right .ribbon-content {
  transform: rotate(45deg);
  transform-origin: top right;
  position: absolute;
  top: 75px;
  right: -40px;
  z-index: 1000;
}

.ribbon-top-left {
  top: 0;
  left: 0;
}

.ribbon-top-left .ribbon-content {
  transform: rotate(-45deg);
  transform-origin: top left;
  position: absolute;
  top: 75px;
  left: -40px;
  z-index: 1000;
}

.ribbon-bottom-right {
  bottom: 0;
  right: 0;
}

.ribbon-bottom-right .ribbon-content {
  transform: rotate(-45deg);
  transform-origin: bottom right;
  position: absolute;
  bottom: 75px;
  right: -40px;
  z-index: 1000;
}

.ribbon-bottom-left {
  bottom: 0;
  left: 0;
}

.ribbon-bottom-left .ribbon-content {
  transform: rotate(45deg);
  transform-origin: bottom left;
  position: absolute;
  bottom: 75px;
  left: -40px;
  z-index: 1000;
}

/* Color variations */
.ribbon-primary .ribbon-content {
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
}

.ribbon-secondary .ribbon-content {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

.ribbon-success .ribbon-content {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.ribbon-info .ribbon-content {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.ribbon-warning .ribbon-content {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.ribbon-danger .ribbon-content {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.ribbon-light .ribbon-content {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #4b5563;
}

.ribbon-dark .ribbon-content {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Size variations */
.ribbon-sm .ribbon-content {
  width: 120px;
  height: 24px;
  font-size: 10px;
}

.ribbon-sm.ribbon-top-right .ribbon-content {
  top: 15px;
  right: -10px;
}

.ribbon-sm.ribbon-top-left .ribbon-content {
  top: 15px;
  left: -10px;
}

.ribbon-sm.ribbon-bottom-right .ribbon-content {
  bottom: 15px;
  right: -10px;
}

.ribbon-sm.ribbon-bottom-left .ribbon-content {
  bottom: 15px;
  left: -10px;
}

.ribbon-lg .ribbon-content {
  width: 180px;
  height: 36px;
  font-size: 14px;
}

.ribbon-lg.ribbon-top-right .ribbon-content {
  top: 12px;
  right: -25px;
}

.ribbon-lg.ribbon-top-left .ribbon-content {
  top: 12px;
  left: -25px;
}

.ribbon-lg.ribbon-bottom-right .ribbon-content {
  bottom: 12px;
  right: -25px;
}

.ribbon-lg.ribbon-bottom-left .ribbon-content {
  bottom: 12px;
  left: -25px;
}

/* Rounded ribbons */
.ribbon-rounded .ribbon-content {
  border-radius: 6px;
}

/* Shadow variations */
.ribbon-shadow-sm .ribbon-content {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ribbon-shadow-lg .ribbon-content {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Shadow effect */
.ribbon-shadow {
  z-index: 1000;
}

.ribbon-shadow .ribbon-content {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom text colors */
.ribbon-text-primary .ribbon-content {
  color: #007bff;
}

.ribbon-text-secondary .ribbon-content {
  color: #6c757d;
}

.ribbon-text-success .ribbon-content {
  color: #28a745;
}

.ribbon-text-white .ribbon-content {
  color: #fff !important;
}

.ribbon-text-black .ribbon-content {
  color: #000 !important;
}

/* Animation */
@keyframes ribbon-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.ribbon-pulse .ribbon-content {
  animation: ribbon-pulse 2s infinite;
  transform-origin: center;
}

/* Glow effect */
.ribbon-glow .ribbon-content {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Enhanced glow effect for different colors */
.ribbon-primary.ribbon-glow .ribbon-content {
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
}

.ribbon-success.ribbon-glow .ribbon-content {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.ribbon-warning.ribbon-glow .ribbon-content {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.ribbon-danger.ribbon-glow .ribbon-content {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  /* Keep container positioning at corners */
  .ribbon-top-right, .ribbon-top-left, .ribbon-bottom-right, .ribbon-bottom-left {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  
  /* Adjust ribbon content for small screens */
  .ribbon .ribbon-content {
    width: 140px;
    height: 28px;
    font-size: 10px;
    line-height: 28px;
  }
  
  /* Adjust positioning of ribbon content */
  .ribbon-top-right .ribbon-content {
    top: 70px;
    right: -40px;
  }
  
  .ribbon-top-left .ribbon-content {
    top: 70px;
    left: -40px;
  }
  
  .ribbon-bottom-right .ribbon-content {
    bottom: 70px;
    right: -40px;
  }
  
  .ribbon-bottom-left .ribbon-content {
    bottom: 70px;
    left: -40px;
  }
  
  /* Adjust sizes for small screens */
  .ribbon-sm .ribbon-content {
    width: 120px;
    height: 24px;
    font-size: 9px;
    line-height: 24px;
  }
  
  .ribbon-sm .ribbon-top-right .ribbon-content,
  .ribbon-sm .ribbon-top-left .ribbon-content {
    top: 165px;
  }
  
  .ribbon-sm .ribbon-bottom-right .ribbon-content,
  .ribbon-sm .ribbon-bottom-left .ribbon-content {
    bottom: -25px;
  }
  
  .ribbon-sm .ribbon-top-right .ribbon-content,
  .ribbon-sm .ribbon-bottom-right .ribbon-content {
    right: 100px;
  }
  
  .ribbon-sm .ribbon-top-left .ribbon-content,
  .ribbon-sm .ribbon-bottom-left .ribbon-content {
    left: -100px;
  }
  
  .ribbon-lg .ribbon-content {
    width: 160px;
    height: 32px;
    font-size: 11px;
    line-height: 32px;
  }
  
  .ribbon-lg .ribbon-top-right .ribbon-content,
  .ribbon-lg .ribbon-top-left .ribbon-content {
    top: 125px;
  }
  
  .ribbon-lg .ribbon-bottom-right .ribbon-content,
  .ribbon-lg .ribbon-bottom-left .ribbon-content {
    bottom: 15px;
  }
  
  .ribbon-lg .ribbon-top-right .ribbon-content,
  .ribbon-lg .ribbon-bottom-right .ribbon-content {
    right: 35px;
  }
  
  .ribbon-lg .ribbon-top-left .ribbon-content,
  .ribbon-lg .ribbon-bottom-left .ribbon-content {
    left: -35px;
  }
}