/* Partition/Divider Styles */
.section-partition {
  padding: 30px 0;
  text-align: center;
  position: relative;
}

.partition-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff9900, transparent);
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.partition-line::before,
.partition-line::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #ff9900;
  border-radius: 50%;
}

.partition-line::before {
  left: -5px;
}

.partition-line::after {
  right: -5px;
}

/* Alternatively, you can use a decorative icon divider */
.section-partition.decorative {
  padding: 40px 0;
}

.partition-icon {
  font-size: 24px;
  color: #ff9900;
  margin-bottom: 10px;
}

.partition-text {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Simple line divider (alternative) */
.simple-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 40px 0;
  width: 100%;
}

/* Gradient divider (alternative) */
.gradient-divider {
  height: 3px;
  background: linear-gradient(90deg, #ff9900, #ff7e5f, #ff9900);
  margin: 40px 0;
  width: 100%;
  border-radius: 2px;
}

/* Pattern divider (alternative) */
.pattern-divider {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    #ff9900 5px,
    #ff9900 10px
  );
  margin: 40px 0;
  width: 100%;
}
/* Main Container */
.upcoming-auctions {
  padding: 40px 0;
  /* background: #f8f9fa; */
  font-family: "Segoe UI", "Cairo", "Tahoma", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tabs Container */
.tabs-container {
  margin-bottom: 30px;
  overflow-x: auto;
}

.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

.tab {
  padding: 12px 24px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.tab.active {
  background: #3498db;
  border-color: #3498db;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.3);
}

/* Auction Grid */
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.auction-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.upcoming-auction-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.upcoming-auction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.upcoming-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.category-tag {
  background: white;
  color: #667eea;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  min-width: 60px;
}

/* Card Body */
.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Auction Image */
.auction-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.auction-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.upcoming-auction-card:hover .auction-image {
  transform: scale(1.05);
}

/* Verified Badge (مصدق) */
.verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  border: 2px solid white;
}

.verified-badge i {
  font-size: 14px;
}

/* Item Title */
.item-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Auction Description */
.auction-description {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border-right: 3px solid #3498db;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price Section - السعر الحالي */
.bid-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

.bid-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bid-label i {
  color: #3498db;
}

.bid-amount {
  font-size: 24px;
  font-weight: 800;
  color: #2ecc71;
  direction: ltr;
  text-align: right;
  letter-spacing: 1px;
}

.bid-amount::before {
  content: "ريال ";
  font-size: 14px;
  color: #666;
  font-weight: 600;
  margin-left: 5px;
}

/* Lot Number - رقم اللوت */
.lot-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

.lot-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.lot-number {
  font-size: 18px;
  font-weight: 700;
  color: #3498db;
  direction: ltr;
}

/* Auction Meta Info */
.auction-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.verified-date,
.created-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.verified-date i {
  color: #2ecc71;
  font-size: 14px;
}

.created-date i {
  color: #3498db;
  font-size: 14px;
}

.meta-label {
  font-weight: 600;
  min-width: 80px;
}

.meta-value {
  color: #333;
  font-weight: 500;
}

/* Notify Button - إشعار لي */
.notify-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: auto;
  letter-spacing: 0.5px;
}

.notify-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.notify-btn:active {
  transform: translateY(0);
}

.notify-btn i {
  font-size: 18px;
}

/* Status Badges */
.status-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.status-new {
  background: #2ecc71;
  color: white;
}

.status-featured {
  background: #e74c3c;
  color: white;
}

.status-upcoming {
  background: #3498db;
  color: white;
}

/* Currency Indicators */
.currency-indicator {
  display: inline-block;
  padding: 2px 8px;
  background: #f1c40f;
  color: #333;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
}

/* Loading States */
.loading-tabs,
.loading-auctions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #666;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error States */
.error,
.no-auctions,
.no-categories {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #666;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.error {
  color: #e74c3c;
  border: 2px dashed #e74c3c;
}

.error i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #e74c3c;
}

.no-auctions i,
.no-categories i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #bdc3c7;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
  z-index: 1000;
  animation: slideInRight 0.3s ease;
  max-width: 350px;
  border: 2px solid white;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  background: white;
  color: #2ecc71;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.toast-message {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Price Formatting */
.price-formatted {
  direction: ltr;
  unicode-bidi: embed;
}

/* Arabic Specific Styles */
[dir="rtl"] .auction-card {
  text-align: right;
}

[dir="rtl"] .bid-amount {
  direction: ltr;
  unicode-bidi: embed;
}

[dir="rtl"] .lot-number {
  direction: ltr;
  unicode-bidi: embed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  header h1 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 14px;
  }

  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 15px;
    flex-wrap: nowrap;
  }

  .tab {
    padding: 10px 18px;
    font-size: 14px;
  }

  .auction-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .item-title {
    font-size: 16px;
  }

  .bid-amount {
    font-size: 22px;
  }

  .notify-btn {
    padding: 12px;
    font-size: 15px;
  }

  .auction-image-container {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .auction-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    padding: 10px 12px;
  }

  .card-body {
    padding: 15px;
  }

  .bid-amount {
    font-size: 20px;
  }

  .notification-toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}

/* Print Styles */
@media print {
  .upcoming-auctions {
    background: white;
    padding: 0;
  }

  .tab,
  .notify-btn,
  .notification-toast {
    display: none;
  }

  .upcoming-auction-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Accessibility */
.auction-link:focus,
.tab:focus,
.notify-btn:focus {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .upcoming-auction-card {
    border: 2px solid #000;
  }

  .bid-amount {
    color: #006600;
  }

  .verified-badge {
    border: 2px solid #000;
  }
}
