/**
 * Order Page Styles
 * Siparis sayfasi icin ozel CSS
 */

/* ========================================
   FULL-ALERT MODAL - Theme Aligned
   ======================================== */
.full-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-alert.show {
  opacity: 1;
  pointer-events: all;
}

/* Glassmorphism Overlay */
.full-alert .overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(23, 26, 38, 0.95) 0%, rgba(30, 33, 48, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Container */
.full-alert .contside {
  background: linear-gradient(145deg, var(--bg-dark-secondary, #1A1D2A) 0%, var(--bg-dark, #171A26) 100%);
  padding: 32px 36px;
  z-index: 1;
  border-radius: var(--radius-xl, 24px);
  min-width: 400px;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-alert.show .contside {
  transform: scale(1) translateY(0);
}

/* Decorative gradient glow */
.full-alert .contside::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(120, 68, 228, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.full-alert .contside::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Content Area */
.full-alert .content {
  position: relative;
  opacity: 0;
  transform: translateY(-30px);
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: .15s;
}

/* Success Icon */
.full-alert .icon {
  font-size: 72px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--status-success, #34D399) 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(52, 211, 153, 0.3));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Title */
.full-alert .title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light, #FFFFFF);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

/* Description */
.full-alert .description {
  color: var(--text-dark-muted, #666F94);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 28px;
}

/* Action Buttons Area */
.full-alert .action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: .25s;
}

/* Buttons */
.full-alert .action .butto {
  padding: 14px 24px !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md, 12px);
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Primary Button (Continue) */
.full-alert .action .butto-primary {
  background: linear-gradient(135deg, var(--primary-purple, #7844E4) 0%, #9966FF 100%);
  color: var(--text-light, #FFFFFF);
  border: none;
  box-shadow: 0 4px 15px rgba(120, 68, 228, 0.3);
}

.full-alert .action .butto-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(120, 68, 228, 0.4);
}

.full-alert .action .butto-primary:active {
  transform: translateY(0);
}

/* Outline Success Button (Go to Cart) */
.full-alert .action .butto-outline-success {
  background: transparent;
  color: var(--status-success, #34D399);
  border: 2px solid var(--status-success, #34D399);
}

.full-alert .action .butto-outline-success:hover {
  background: rgba(52, 211, 153, 0.1);
  transform: translateY(-2px);
}

.full-alert .action .butto-outline-success:active {
  transform: translateY(0);
}

/* Show State Animations */
.full-alert.show .overlay {
  opacity: 1;
}

.full-alert.show .content {
  opacity: 1;
  transform: translateY(0);
}

.full-alert.show .action {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
  .full-alert .contside {
    min-width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 0 16px;
    padding: 28px 24px;
  }

  .full-alert .action {
    flex-direction: column;
    gap: 10px;
  }

  .full-alert .icon {
    font-size: 60px;
  }

  .full-alert .title {
    font-size: 20px;
  }

  .full-alert .description {
    font-size: 14px;
  }
}

/* ========================================
   KONTROL BUTONLARI
   ======================================== */
.desktop-control,
.mobile-control {
  background-color: #7844e4;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.desktop-control span,
.mobile-control span {
  font-weight: 600;
  line-height: 1.193;
  color: #ffffff;
}

.desktop-control:hover,
.mobile-control:hover {
  background-color: #6a3acc;
}

.desktop-control:disabled,
.mobile-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Desktop Buton */
.desktop-control {
  width: fit-content;
  padding: 0 20px;
  height: 46px;
}

.desktop-control.show {
  display: flex;
}

/* Mobile Buton */
.mobile-control {
  width: calc(100% - 32px);
  height: 50px;
  margin: 0 16px;
}

.mobile-control span {
  font-size: 16px;
}

.mobile-control.show {
  display: flex;
}

/* Responsive */
@media (min-width: 992px) {
  .mobile-control {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .desktop-control {
    display: none !important;
  }
}

/* Premium Variant */
.paket-type-premium .desktop-control,
.paket-type-premium .mobile-control {
  background-color: #296FF9;
}

.paket-type-premium .desktop-control:hover,
.paket-type-premium .mobile-control:hover {
  background-color: #1e5cd8;
}

/* ========================================
   SEPETE EKLE BUTON DISABLED STATE
   ======================================== */
.upsell_btn_primary:disabled,
.upsell_btn_primary.passive {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================
   SCRAPER & RELATED PRODUCTS
   ======================================== */
.sd-switch {
  position: relative;
  width: 45px;
  height: 26px;
  border-radius: 30px;
  border: 1px solid #a2a3b5;
  padding: 0 4px;
  cursor: pointer;
  transition: .2s;
}

.sd-switch .circle {
  width: 15px;
  height: 15px;
  border-radius: 30px;
  background: #a2a3b5;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  transition: .2s;
}

.sd-switch.on .circle {
  left: calc(100% - 20px);
  background-color: #fff;
}

.sd-switch.on {
  border-color: var(--success);
  background: var(--success);
}

.scraper-product.active {
  background: #f2f5f9 !important;
  padding: 15px;
  border-radius: 12px;
  margin-top: 15px;
}

.cartActionBTN.passive {
  pointer-events: none;
  opacity: .4;
}

.order__packages {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
}

.order__packages-title {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a2e;
}

.order__packages-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order__packages-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 10px;
  gap: 10px;
}

.order__packages-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.order__packages-icon[data-pcolor="instagram"] {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.order__packages-icon[data-pcolor="twitter"],
.order__packages-icon[data-pcolor="x"] {
  background: #000;
}

.order__packages-icon[data-pcolor="youtube"] {
  background: #ff0000;
}

.order__packages-icon[data-pcolor="tiktok"] {
  background: #000;
}

.order__packages-icon[data-pcolor="facebook"] {
  background: #1877f2;
}

.order__packages-icon[data-pcolor="telegram"] {
  background: #0088cc;
}

.order__packages-icon[data-pcolor="spotify"] {
  background: #1db954;
}

.order__packages-name {
  font-weight: 500;
  font-size: 14px;
  color: #1a1a2e;
}

.order__packages-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  margin-right: 10px;
}

.order__packages-discount {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.order__packages-price {
  font-weight: 600;
  font-size: 14px;
  color: var(--success, #28a745);
}

/* ========================================
   UPSELL PLATFORM COLORS (Pure CSS)
   ======================================== */

/* Platform Colors - Native CSS Nesting */
.upsell-card {
  --platform-color: var(--primary-purple, #7844E4);
  --platform-dark: #6335C7;
  --platform-alpha: rgba(120, 68, 228, 0.15);

  & .upsell-icon { background: var(--platform-color); }
  & .upsell-slider-track { background: var(--platform-alpha); }
  & .upsell-slider-fill { background: var(--platform-color); }
  & .upsell-slider-thumb { background: var(--platform-dark); border-color: var(--platform-color); }

  &[data-platform="instagram"] {
    --platform-color: var(--instagram, #E1306C);
    --platform-dark: #C13584;
    --platform-alpha: rgba(225, 48, 108, 0.15);
  }

  &[data-platform="tiktok"] {
    --platform-color: var(--tiktok, #3F3357);
    --platform-dark: #2D2440;
    --platform-alpha: rgba(63, 51, 87, 0.15);
  }

  &[data-platform="twitter"] {
    --platform-color: var(--twitter, #1DA1F2);
    --platform-dark: #0D8ECF;
    --platform-alpha: rgba(29, 161, 242, 0.15);
  }

  &[data-platform="youtube"] {
    --platform-color: var(--youtube, #E90004);
    --platform-dark: #CC0003;
    --platform-alpha: rgba(233, 0, 4, 0.15);
  }

  &[data-platform="facebook"] {
    --platform-color: var(--facebook, #4267B2);
    --platform-dark: #365899;
    --platform-alpha: rgba(66, 103, 178, 0.15);
  }

  &[data-platform="spotify"] {
    --platform-color: var(--spotify, #29D266);
    --platform-dark: #1DB954;
    --platform-alpha: rgba(41, 210, 102, 0.15);
  }

  &[data-platform="telegram"] {
    --platform-color: var(--telegram, #0088cc);
    --platform-dark: #006699;
    --platform-alpha: rgba(0, 136, 204, 0.15);
  }

  &[data-platform="discord"] {
    --platform-color: var(--discord, #5865F2);
    --platform-dark: #4752C4;
    --platform-alpha: rgba(88, 101, 242, 0.15);
  }

  &[data-platform="twitch"] {
    --platform-color: var(--twitch, #9146FF);
    --platform-dark: #7B2FFF;
    --platform-alpha: rgba(145, 70, 255, 0.15);
  }

  &[data-platform="linkedin"] {
    --platform-color: var(--linkedin, #0077B5);
    --platform-dark: #005E93;
    --platform-alpha: rgba(0, 119, 181, 0.15);
  }

  &[data-platform="pinterest"] {
    --platform-color: var(--pinterest, #E60023);
    --platform-dark: #BD001B;
    --platform-alpha: rgba(230, 0, 35, 0.15);
  }

  &[data-platform="snapchat"] {
    --platform-color: var(--snapchat, #FFFC00);
    --platform-dark: #E6E300;
    --platform-alpha: rgba(255, 252, 0, 0.2);
  }

  &[data-platform="soundcloud"] {
    --platform-color: var(--soundcloud, #FF5500);
    --platform-dark: #E64D00;
    --platform-alpha: rgba(255, 85, 0, 0.15);
  }

  &[data-platform="kick"] {
    --platform-color: var(--kick, #52FF00);
    --platform-dark: #47E600;
    --platform-alpha: rgba(82, 255, 0, 0.15);
  }

  &[data-platform="whatsapp"] {
    --platform-color: var(--whatsapp, #25D366);
    --platform-dark: #1DA851;
    --platform-alpha: rgba(37, 211, 102, 0.15);
  }
}

/* POST GRID */
.post-grid {
  padding: 15px 0;

  & .grid-wrapper {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
  }

  & .card {
      position: relative;
      width: 142px;
      aspect-ratio: 1;
      padding: 8px;
      border: 1.6px solid #e4e7eb;
      border-radius: 16px;
      background: #fff;

      &.active {
          border-color: #7844e4;
      }

      &.active .badge {
          background: #7844e4;
      }

      & img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 14px;
      }

      & .badge {
          position: absolute;
          bottom: 16px;
          left: 50%;
          transform: translateX(-50%);
          padding: 5px 10px;
          background: rgba(255, 255, 255, 0.3);
          border-radius: 16px;
          font-weight: 600;
          font-size: 14px;
          color: #fff;
      }
  }
}

@media (max-width: 1200px) {
  .post-grid .grid-wrapper {
      grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .post-grid .grid-wrapper {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .post-grid .grid-wrapper {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
  }
}