/* 🎯 GRID LAYOUT */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: clamp(16px, 3vw, 48px);
    /* padding: 24px; */
    margin: 50px auto;
    max-width: 1400px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  /* 🧱 CARD CONTAINER */
  .cart_container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-color) 0%, #1e293b 80%);
    transition: transform 0.25s ease, box-shadow 0.35s ease;
    padding: 16px;
    gap: 14px;
    box-sizing: border-box;
  }
  
  .cart_container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  }
  
  /* 🖼️ IMAGE */
  .cart_image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
  }
  
  .cart_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 🔖 LABELS */
  .cart_countdown_game {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .cart_countdown,
  .cart_game_name {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    color: var(--white-color);
    border-radius: 6px;
    font-size: 14px;
    height: 32px;
    min-width: 120px;
    padding: 0 8px;
    font-weight: 400;
  }
  
  .cart_countdown img {
    width: 17px;
    height: 17px;
    margin-right: 6px;
  }
  
  /* 🧩 CARD MIDDLE */
  .cart_middle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--white-color);
    direction: rtl;
  }
  
  .cart_title {
    font-size: 16px;
    font-weight: 700;
  }
  
  .cart_date_time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.9;
    direction: ltr;
  }
  
  .cart_description {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
  }
  
  /* ⚙️ CARD BOTTOM (دکمه‌ها همیشه کنار هم) */
  .cart_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    direction: rtl;
    width: 100%;
    height: 50px;
    position: relative;
  }
  
  /* 🎮 JOIN BUTTON */
  .cart_join {
    width: 70%;
    height: 100%;
    background-color: var(--background-color);
    opacity: 0.6;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 400;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    text-align: center;
    padding-left: 50px;
    transition: color 0.2s ease, opacity 0.3s ease;
    position: absolute;
    overflow: hidden;
    right: 0px;
  }
  
  .cart_join:hover {
    color: var(--color-primary);
    opacity: 1;
  }
  
  .cart_join::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-primary);
    border-left: none;
    width: 0;
    right: 0;
    transition: width 0.4s ease;
    border-radius: 0 10px 10px 0;
  }
  
  .cart_join:hover::after {
    width: 100%;
    left: 0;
  }
  
  /* 💰 PRICE */
  .cart_price {
    width:  30%;
    height: 100%;
    width: 50%;
    background-color: var(--color-primary);
    color: var(--background-color);
    border-radius: 10px 10px 50px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    position: absolute;
    left: 0px;
  }
  
  /* 📱 RESPONSIVE */
  @media (max-width: 768px) {

  
    .cart_container {
      padding: 14px;
      gap: 12px;
    }
  
    .cart_bottom {
      height: 46px;
    }
  
    .cart_join,
    .cart_price {
      font-size: 14px;
      height: 46px;
    }
  }
  
  @media (max-width: 480px) {
    .cart_container {
      padding: 12px;
      gap: 10px;
    }
    .grid-container {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      padding:  0px 10px;

    }
  
    .cart_bottom {
      gap: 8px;
      height: 44px;
    }
  
    .cart_join {
      padding-left: 30px;
      font-size: 13px;
    }
  
    .cart_price {
      font-size: 13px;
      border-radius: 8px 8px 30px 8px;
    }
  }
  