/**
 * Aure Hair Atelier - Elementor Reviews Widget Stylesheet
 * High-performance, luxury aesthetic, upward looping ticker & responsive form
 * Supports deep Elementor customizer overrides: typography, colors, padding, borders, shadows & buttons
 */

.aure-reviews-wrapper {
  --aure-gold: #D4AF37;
  --aure-gold-light: #F3E5AB;
  --aure-dark-card: #180F08;
  --aure-dark-border: #362416;
  --aure-text-light: #F4EFE6;
  --aure-text-muted: #9C9184;
  --aure-form-bg: #FFFFFF;
  --aure-form-text: #111827;
  --aure-btn-bg: #111827;
  --aure-btn-text: #FFFFFF;
  --card-height: 260px;
  --card-gap: 20px;
  --visible-items: 2;
  
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
  margin: 0 auto;
}

.aure-reviews-wrapper *,
.aure-reviews-wrapper *::before,
.aure-reviews-wrapper *::after {
  box-sizing: border-box;
}

/* 2-Column Grid Layout */
.aure-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

/* ==========================================
 * LEFT COLUMN: UPWARD REVIEWS LOOP TICKER
 * ========================================== */
.aure-reviews-left-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}

.aure-reviews-loop-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Dynamic height based on visible items, card height, and gap */
  height: calc(var(--visible-items, 2) * var(--card-height, 260px) + (var(--visible-items, 2) - 1) * var(--card-gap, 20px));
  border-radius: 20px;
  transition: height 0.3s ease;
}

.aure-reviews-track {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap, 20px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Individual Dark Review Card */
.aure-review-card {
  background-color: var(--aure-dark-card);
  border: 1px solid var(--aure-dark-border);
  border-radius: 20px;
  padding: 26px 30px;
  color: var(--aure-text-light);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--card-height, 260px);
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.aure-review-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.7);
}

.aure-review-card.aure-card-newly-added {
  animation: aureGoldPulse 1.2s ease-out;
}

@keyframes aureGoldPulse {
  0% {
    transform: scale(0.96);
    border-color: #D4AF37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  }
  50% {
    transform: scale(1.02);
    border-color: #F3E5AB;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.8);
  }
  100% {
    transform: scale(1);
    border-color: var(--aure-dark-border);
  }
}

/* Large Double Quotes Icon */
.aure-quote-icon {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 38px;
  line-height: 1;
  font-weight: bold;
  color: #FFFFFF;
  opacity: 0.95;
  margin-bottom: 6px;
  user-select: none;
  display: block;
}

/* Stars Row */
.aure-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.aure-star {
  font-size: 17px;
  line-height: 1;
  display: inline-block;
}

.aure-star-filled {
  color: var(--aure-gold);
  text-shadow: 0 0 2px rgba(212, 175, 55, 0.4);
}

.aure-star-empty {
  color: #4A3A2C;
}

/* Review Quote Body */
.aure-review-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #E2D9CE;
  font-style: italic;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Subtle Hairline Divider */
.aure-card-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

/* Author Row */
.aure-card-author-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aure-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.2px;
}

.aure-author-location {
  font-size: 12px;
  color: var(--aure-text-muted);
}

/* "See All Reviews" Button & Trigger */
.aure-see-all-container {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.aure-see-all-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--aure-gold) !important;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin: 0;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}

.aure-see-all-btn:hover {
  color: var(--aure-gold-light) !important;
  transform: translateX(4px);
}

.aure-see-all-btn .aure-arrow {
  transition: transform 0.2s ease;
  font-size: 14px;
  display: inline-block;
}

.aure-see-all-btn:hover .aure-arrow {
  transform: translateX(3px);
}

/* ==========================================
 * RIGHT COLUMN: "LEAVE A REVIEW" FORM
 * ========================================== */
.aure-reviews-right-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aure-review-form-card {
  background-color: var(--aure-form-bg);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  border: 1px solid #E5E7EB;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.aure-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--aure-form-text);
  margin: 0 0 20px 0;
  letter-spacing: -0.3px;
}

.aure-ajax-review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.aure-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aure-form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.aure-form-input,
.aure-form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #111827;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.aure-form-input:focus,
.aure-form-textarea:focus {
  border-color: var(--aure-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.aure-form-textarea {
  resize: vertical;
  min-height: 95px;
}

/* Interactive Star Rating Picker */
.aure-rating-picker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.aure-pick-star {
  background-color: #F3F4F6;
  border: 1px solid transparent;
  color: #9CA3AF;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.aure-pick-star svg,
.aure-pick-star .aure-star-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: block;
  margin: auto;
  pointer-events: none;
  flex-shrink: 0;
}

.aure-pick-star:hover {
  transform: scale(1.08);
}

.aure-pick-star.active {
  background-color: #111827;
  color: #FFFFFF;
}

.aure-form-group-rating .aure-form-label {
  display: block;
  width: 100%;
}

/* Form Message Banner */
.aure-form-message {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 4px;
}

.aure-form-message.success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.aure-form-message.warning {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.aure-form-message.error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Submit Button */
.aure-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background-color: var(--aure-btn-bg);
  color: var(--aure-btn-text);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.aure-submit-btn:hover {
  background-color: #261A10;
  color: #D4AF37;
}

.aure-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.aure-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #D4AF37;
  border-radius: 50%;
  animation: aureSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes aureSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================
 * "SEE ALL REVIEWS" POPUP MODAL
 * ========================================== */
.aure-reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aure-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.aure-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #140E0A;
  border: 1px solid #362416;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #F4EFE6;
  animation: aureModalPop 0.25s ease-out;
}

@keyframes aureModalPop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.aure-modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid #2B1D12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #1A110B;
}

.aure-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.aure-modal-subtitle {
  font-size: 12px;
  color: #D4AF37;
  margin: 4px 0 0 0;
}

.aure-modal-close {
  background: none !important;
  border: none !important;
  color: #9CA3AF !important;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.aure-modal-close:hover {
  color: #FFFFFF !important;
}

.aure-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.aure-modal-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aure-modal-review-card {
  background: #1C130C;
  border: 1px solid #2B1D12;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aure-modal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aure-modal-stars {
  display: flex;
  gap: 2px;
}

.aure-modal-verified {
  font-size: 11px;
  color: #34D399;
  font-weight: 600;
}

.aure-modal-text {
  font-size: 13px;
  line-height: 1.6;
  color: #E2D9CE;
  font-style: italic;
  margin: 0;
}

.aure-modal-author {
  font-size: 12.5px;
  color: #FFFFFF;
  display: flex;
  gap: 6px;
}

.aure-modal-author span {
  color: #9C9184;
}

/* ==========================================
 * RESPONSIVE MOBILE OPTIMIZATIONS
 * ========================================== */
@media (max-width: 900px) {
  .aure-reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aure-reviews-loop-viewport {
    height: calc(var(--visible-items, 2) * var(--card-height, 250px) + (var(--visible-items, 2) - 1) * var(--card-gap, 16px));
  }

  .aure-review-card {
    padding: 22px 24px;
  }

  .aure-review-form-card {
    padding: 26px 26px;
  }
}

@media (max-width: 480px) {
  .aure-reviews-wrapper {
    --card-height: 270px;
  }

  .aure-reviews-loop-viewport {
    height: calc(var(--visible-items, 1) * var(--card-height, 270px));
  }

  .aure-review-card {
    padding: 20px 20px;
  }

  .aure-quote-icon {
    font-size: 32px;
  }

  .aure-review-body {
    font-size: 13px;
    -webkit-line-clamp: 4;
  }

  .aure-review-form-card {
    padding: 22px 18px;
  }

  .aure-form-title {
    font-size: 20px;
  }

  .aure-pick-star {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}
