html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ========================================
   GAME CARD STYLES
   Bootstrap-based with custom enhancements
   ======================================== */

/* Base Card Container */
.game-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

    /* Hover Effect */
    .game-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    }

/* Game Image Container */
.game-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

    .game-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.game-card:hover .game-card__image img {
    transform: scale(1.1);
}

/* Image Overlay (optional) */
.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

/* Game Title */
.game-card__title {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    min-height: 56px;
}

/* Game Category Badge */
.game-card__category {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    z-index: 2;
}

/* Game Card Footer (optional play button) */
.game-card__footer {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Play Button */
.game-card__play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.game-card:hover .game-card__play-btn {
    transform: rotate(180deg) scale(1.1);
}

/* Play Button Icon */
.game-card__play-icon {
    width: 24px;
    height: 24px;
    fill: #1a1a2e;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 768px) {
    .game-card {
        max-width: 280px;
    }

    .game-card__title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .game-card {
        max-width: 100%;
    }

    .game-card__image {
        height: 160px;
    }
}

/* ========================================
   VARIANT COLORS
   ======================================== */

/* Gold/Green Theme */
.game-card--gold {
    background: linear-gradient(145deg, #2d3e28, #1a2b1c);
}

    .game-card--gold:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(76, 199, 38, 0.3);
    }

/* Blue/Purple Theme */
.game-card--blue {
    background: linear-gradient(145deg, #2c1a4e, #1a1a3e);
}

    .game-card--blue:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(107, 159, 255, 0.3);
    }

/* Red/Pink Theme */
.game-card--red {
    background: linear-gradient(145deg, #4e1a2c, #2c1a2c);
}

    .game-card--red:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 87, 139, 0.3);
    }

/* ========================================
   BOOTSTRAP INTEGRATION
   ======================================== */

.game-card {
    display: flex;
    flex-direction: column;
}

/* Optional Bootstrap Container Wrapper */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.game-card__play-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

/* ========================================
   UTILITY CLASSES FOR COMMON USE CASES
   ======================================== */

.game-card--featured {
    margin: 24px 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Loading State */
.game-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Active/Selected State */
.game-card--active {
    border: 4px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* ========================================
   SCROLLBAR STYLING (Optional)
   ======================================== */

.game-card-container {
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #1a1a2e;
}

    .game-card-container::-webkit-scrollbar {
        width: 8px;
    }

    .game-card-container::-webkit-scrollbar-track {
        background: #1a1a2e;
    }

    .game-card-container::-webkit-scrollbar-thumb {
        background: #ffd700;
        border-radius: 4px;
    }