/* public/styles/common.css */

/* ==================== Common Styles ==================== */
/* Text Direction Adjustments for LTR */
body {
  text-align: left;
}

/* Adjust margins and paddings for LTR */
/* LTR Language Support */
html[dir="ltr"] .post-content :global(ul),
html[dir="ltr"] .post-content :global(ol),
html[dir="ltr"] .blog-content :global(ul),
html[dir="ltr"] .blog-content :global(ol),
html[dir="ltr"] .content-section :global(ul),
html[dir="ltr"] .content-section :global(ol) {
  margin-left: 2rem;
  margin-right: 0;
}

html[dir="ltr"] .back-link {
  flex-direction: row;
}

html[dir="ltr"] .tag,
html[dir="ltr"] .category-tag {
  flex-direction: row;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Title */
.section-title {
  text-align: center;
  color: var(--text-primary);
  font-size: 2rem;
  margin: 3rem 0 2rem;
}

/* Grid Layouts */
.posts-grid,
.coupons-grid,
.deals-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.coupons-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.deals-grid {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Card Base Styles */
.post-card,
.coupon-card,
.deal-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid var(--bg-gradient-start);
}

.post-card:hover,
.coupon-card:hover,
.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.post-card.featured,
.coupon-card.featured,
.deal-card.featured {
/*  border: 2px solid var(--bg-gradient-start);*/
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

/* Card Images */
.post-image,
.deal-image {
  width: 100%;
 /* height: 200px;*/
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  border-radius: 12px 12px 0 0; 
}

.deal-card .deal-image {
  height: 250px;
}

/* Card Content */
.post-content,
.coupon-content,
.deal-content {
  padding: 1.5rem;
}

.coupon-card {
  padding: 2rem;
  overflow: visible;
}

.deal-card {
  overflow: hidden;
}

/* Titles */
.post-card h2,
.coupon-title,
.deal-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.post-card h2 {
  font-size: 1.3rem;
}

.coupon-title {
  font-size: 1.3rem;
}

.deal-title {
  font-size: 1.5rem;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h2 a:hover {
  color: var(--bg-gradient-start);
}

/* Descriptions */
.post-description,
.coupon-desc,
.deal-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Meta Information */
.post-meta,
.coupon-meta,
.deal-meta,
.coupon-store,
.deal-store {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.coupon-store,
.deal-store {
  margin-bottom: 0.5rem;
}

/* Tags & Categories */
.post-tags,
.coupon-categories,
.deal-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag,
.category-tag {
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Discount & Savings Badges */
.coupon-discount,
.savings {
  display: inline-block;
  background: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.discount-badge {
  display: inline-block;
  background: var(--success-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 1rem 0;
}

.deal-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--error-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  z-index: 10;
}

/* Coupon Code Box */
.coupon-code {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  user-select: all;
  transition: opacity 0.2s ease;
}

.coupon-code:hover {
  opacity: 0.9;
}

.coupon-code::after {
  content: 'انقر للنسخ';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: normal;
}

.coupon-code:hover::after {
  opacity: 1;
}

/* Expiry Dates */
.coupon-expiry,
.deal-expiry {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Prices */
.deal-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.new-price {
  font-size: 2rem;
  color: var(--success-color);
  font-weight: bold;
}

/* Buttons */
.btn,
.deal-btn,
.cta-button,
.back-link {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn {
  background: var(--card-bg);
  color: var(--bg-gradient-start);
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.deal-btn,
.cta-button {
  display: block;
  /*width: 100%;*/
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: white;
}

.deal-btn:hover,
.cta-button:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.back-link {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  color: var(--bg-gradient-start);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.back-link:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  margin-top: 4rem;
  opacity: 0.8;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
 
  background: var(--success-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 2000;
}

.copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Home Link */
.home-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  transition: background 0.2s;
}

.home-link:hover {
  background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .posts-grid,
  .coupons-grid,
  .deals-grid {
    grid-template-columns: 1fr;
  }
  /* أضف في نهاية public/styles/common.css */

/* Deal Card Specific Styles */
.deal-card .deal-image {
  position: relative;
  height: 250px;
}

.deal-card .featured-badge {
  left: 1rem;
  right: auto;
}
}