/* Offline-specific styles */

.offline-mode {
    background-color: #fef3c7;
}

[data-theme="dark"] .offline-mode {
    background-color: #78350f;
}

.offline-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #f59e0b;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.offline-banner {
    background-color: #fbbf24;
    color: #78350f;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
}

[data-theme="dark"] .offline-banner {
    background-color: #d97706;
    color: #fef3c7;
}

.offline-game-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.offline-section {
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.offline-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.offline-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Offline availability indicator */
.available-offline::after {
    content: '📥';
    margin-left: 0.5rem;
}

/* Cached data indicator */
.cached-game {
    position: relative;
}

.cached-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.ads-card-section {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  background-color: #f9f9f9; /* Card background */
}

.ads-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  padding: 0 10px;
  box-sizing: border-box;
}

.ad-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.ad-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ads-card-container {
    grid-template-columns: 1fr; /* এক কলামে দেখাবে */
  }
}