@charset "UTF-8";
/* WP Active Story - Frontend Styles */
.ae-story-stories-container {
  display: flex;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ae-story-stories-container * {
  box-sizing: border-box;
}

.ae-story-stories-slider {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ae-story-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  gap: 6px;
}

.ae-story-story-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 4px solid var(--nader-color-main);
  position: relative;
  transition: all 0.3s;
  margin-bottom: 8px;
}

.ae-story-story-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 4px;
  border-radius: 50px;
}

.ae-story-short-title {
  font-size: 12px;
  line-height: 1.3;
  color: #333;
  max-width: 100%;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .ae-story-story-item {
    width: 80px;
  }
  .ae-story-short-title {
    font-size: 11px;
  }
}
/* Story Popup */
.ae-story-story-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms ease, transform 300ms ease;
}

.ae-story-inner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%; /* 9:16 aspect ratio */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
@media (min-width: 768px) {
  .ae-story-inner-container {
    max-width: 405px;
    height: 720px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
@media (min-width: 1200px) {
  .ae-story-inner-container {
    max-width: 540px;
    height: 960px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.ae-story-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.ae-story-popup-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Control Buttons - Top Left */
.ae-story-control-buttons {
  position: absolute;
  top: 24px;
  left: 10px;
  z-index: 20;
  display: flex;
  gap: 2px;
}

.ae-story-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ae-story-control-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: white;
}
.ae-story-control-btn svg {
  fill: white;
  width: 20px;
  height: 20px;
}

/* Progress bars at the top - با رعایت RTL */
.ae-story-popup-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 2px;
  padding: 15px 10px 5px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  /* رعایت RTL برای جهت نوارها */
}
body.rtl .ae-story-popup-progress {
  direction: rtl; /* نوارها از راست به چپ */
}
body:not(.rtl) .ae-story-popup-progress {
  direction: ltr; /* نوارها از چپ به راست */
}

.ae-story-popup-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.ae-story-popup-progress-bar:hover {
  background: rgba(255, 255, 255, 0.4);
}

.ae-story-progress-fill {
  width: 0%;
  height: 100%;
  background: white;
  transition: width 50ms linear;
}

.ae-story-popup-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  /* مناطق کلیک برای ناوبری */
}
.ae-story-popup-media .ae-story-nav-left,
.ae-story-popup-media .ae-story-nav-right {
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ae-story-popup-media .ae-story-nav-left:hover,
.ae-story-popup-media .ae-story-nav-right:hover {
  opacity: 0.5;
}
.ae-story-popup-media .ae-story-nav-left {
  left: 0;
  justify-content: flex-start;
}
body.rtl .ae-story-popup-media .ae-story-nav-left {
  left: auto;
  right: 0;
}
.ae-story-popup-media .ae-story-nav-right {
  right: 0;
  justify-content: flex-end;
}
body.rtl .ae-story-popup-media .ae-story-nav-right {
  right: auto;
  left: 0;
}
.ae-story-popup-media .ae-story-nav-arrow {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  transition: all 0.3s;
}
.ae-story-popup-media .ae-story-nav-arrow svg {
  fill: white;
  width: 24px;
  height: 24px;
}
.ae-story-popup-media .ae-story-nav-arrow:hover {
  border: 2px solid white;
}

.ae-story-popup-media img,
.ae-story-popup-media video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Video specific styles */
.ae-story-popup-media video {
  background: #000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ae-story-story-circle {
    width: 80px;
    height: 80px;
  }
}
/* Scrollbar styling */
.ae-story-stories-container::-webkit-scrollbar {
  height: 6px;
}

.ae-story-stories-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: var(--nader-radius-r);
}

.ae-story-stories-container::-webkit-scrollbar-thumb {
  background: var(--nader-color-main);
  border-radius: var(--nader-radius-r);
}

.ae-story-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 60px 20px 20px;
  color: white;
  z-index: 10;
  text-align: center;
}
@media (max-width: 768px) {
  .ae-story-item-caption {
    padding: 40px 15px 15px;
  }
}

.ae-story-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .ae-story-item-title {
    font-size: 16px;
  }
}

.ae-story-item-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 8px 20px;
  border-radius: var(--nader-radius-r);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.ae-story-item-link:hover {
  background: white;
}
@media (max-width: 768px) {
  .ae-story-item-link {
    padding: 6px 15px;
    font-size: 13px;
  }
}

.ae-story-media-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.ae-story-media-content img, .ae-story-media-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ae-story-item-caption {
    padding: 40px 15px 15px;
  }
  .ae-story-item-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .ae-story-item-link {
    padding: 6px 15px;
    font-size: 13px;
  }
}

/*# sourceMappingURL=frontend.css.map */
