/**
 * Features Page Styles
 * Page-specific styles for features.html and features-original.html
 * Shared docs styles are in docs.css
 */

/* Slideshow */
.slideshow {
  position: relative;
  max-width: 100%;
  margin: 1rem 0;
  border-radius: 0.375rem;
  overflow: visible;
}

.slideshow-container {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 0.375rem;
  overflow: hidden;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.slide.aiab-active {
  display: block;
}

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

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 4rem 1.5rem 1.5rem;
  text-align: left;
}

.slide-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.slide-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

.slide-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slide-dot.aiab-active {
  background: var(--color-primary, #ed8b00);
}

.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.3s ease;
  z-index: 2;
}

.slide-prev:hover,
.slide-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slide-prev {
  left: 1rem;
}

.slide-next {
  right: 1rem;
}

/* Helper Classes Demo */
.helper-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.helper-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
}

.helper-item h5 {
  margin: 0 0 0.5rem 0;
  color: #495057;
}

.helper-item .demo {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helper-item code {
  background: #e9ecef;
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
  font-size: 0.875rem;
}

/* Spacing Helpers */
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 1rem;
}
.ml-4 {
  margin-left: 1.5rem;
}
.ml-5 {
  margin-left: 3rem;
}

.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 1rem;
}
.mr-4 {
  margin-right: 1.5rem;
}
.mr-5 {
  margin-right: 3rem;
}

.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 1rem;
}
.pt-4 {
  padding-top: 1.5rem;
}
.pt-5 {
  padding-top: 3rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 1rem;
}
.pb-4 {
  padding-bottom: 1.5rem;
}
.pb-5 {
  padding-bottom: 3rem;
}

.pl-1 {
  padding-left: 0.25rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-3 {
  padding-left: 1rem;
}
.pl-4 {
  padding-left: 1.5rem;
}
.pl-5 {
  padding-left: 3rem;
}

.pr-1 {
  padding-right: 0.25rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-3 {
  padding-right: 1rem;
}
.pr-4 {
  padding-right: 1.5rem;
}
.pr-5 {
  padding-right: 3rem;
}

/* Text Utilities */
.aiab-text-left {
  text-align: left;
}
.aiab-text-center {
  text-align: center;
}
.aiab-text-right {
  text-align: right;
}
.aiab-text-justify {
  text-align: justify;
}

.aiab-text-uppercase {
  text-transform: uppercase;
}
.aiab-text-lowercase {
  text-transform: lowercase;
}
.aiab-text-capitalize {
  text-transform: capitalize;
}

.text-bold {
  font-weight: bold;
}
.text-light {
  font-weight: 300;
}
.text-normal {
  font-weight: normal;
}

/* Display Utilities */
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-inline {
  display: inline;
}
.d-inline-block {
  display: inline-block;
}
.d-flex {
  display: flex;
}
.aiab-d-grid {
  display: grid;
}

/* Flexbox Utilities */
.flex-row {
  flex-direction: aiab-row;
}
.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

.align-start {
  align-items: flex-start;
}
.align-center {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}
.align-stretch {
  align-items: stretch;
}

/* Float Utilities */
.float-left {
  float: left;
}
.float-right {
  float: right;
}
.float-none {
  float: none;
}

/* Position Utilities */
.position-static {
  position: static;
}
.position-relative {
  position: relative;
}
.position-absolute {
  position: absolute;
}
.position-fixed {
  position: fixed;
}
.position-sticky {
  position: sticky;
}

/* Border Utilities */
.border {
  border: 1px solid #dee2e6;
}
.border-top {
  border-top: 1px solid #dee2e6;
}
.border-bottom {
  border-bottom: 1px solid #dee2e6;
}
.border-left {
  border-left: 1px solid #dee2e6;
}
.border-right {
  border-right: 1px solid #dee2e6;
}
.border-none {
  border: none;
}

.rounded {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-none {
  border-radius: 0;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.shadow {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
}
.shadow-md {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.06);
}
.shadow-lg {
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.05);
}
.shadow-xl {
  box-shadow:
    0 20px 25px rgba(0, 0, 0, 0.1),
    0 10px 10px rgba(0, 0, 0, 0.04);
}
.shadow-none {
  box-shadow: none;
}

/* Color Utilities */
.aiab-text-primary {
  color: #007bff;
}
.text-secondary {
  color: #6c757d;
}
.aiab-text-success {
  color: #28a745;
}
.aiab-text-danger {
  color: #dc3545;
}
.aiab-text-warning {
  color: #ffc107;
}
.aiab-text-info {
  color: #17a2b8;
}
.text-light {
  color: #f8f9fa;
}
.text-dark {
  color: #343a40;
}
.aiab-text-muted {
  color: #6c757d;
}
.text-white {
  color: #fff;
}

.bg-primary {
  background-color: #007bff;
}
.bg-secondary {
  background-color: #6c757d;
}
.bg-success {
  background-color: #28a745;
}
.bg-danger {
  background-color: #dc3545;
}
.bg-warning {
  background-color: #ffc107;
}
.bg-info {
  background-color: #17a2b8;
}
.bg-light {
  background-color: #f8f9fa;
}
.bg-dark {
  background-color: #343a40;
}
.bg-white {
  background-color: #fff;
}
.bg-transparent {
  background-color: transparent;
}

/* Responsive Utilities */
@media (max-width: 767px) {
  .d-sm-none {
    display: none;
  }
  .d-sm-block {
    display: block;
  }
  .d-sm-flex {
    display: flex;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .d-md-none {
    display: none;
  }
  .d-md-block {
    display: block;
  }
  .d-md-flex {
    display: flex;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none;
  }
  .d-lg-block {
    display: block;
  }
  .d-lg-flex {
    display: flex;
  }
}

/* Icon styles for Lucide icons */
.aiab-icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 0.875em;
  height: 0.875em;
}
.icon-lg {
  width: 1.25em;
  height: 1.25em;
}
.icon-xl {
  width: 1.5em;
  height: 1.5em;
}

/* Component Gallery */
.component-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.aiab-component-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aiab-component-card h4 {
  margin: 0 0 1rem 0;
  color: #495057;
}

.component-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
