/* ============================================
   Ocean Game Cards - Shared Styles
   Used by: /free-slots, /software/{slug}
   ============================================ */

:root {
    --ocean-deep: #0a1628;
    --ocean-mid: #0d2847;
    --ocean-light: #134074;
    --cyan-glow: #00d4ff;
    --gold: #ffd700;
    --coral: #ff6b6b;
    --radius: 16px;
}

/* Game grid */
.ocean-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.ocean-game-card {
    background: rgba(10, 30, 50, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ocean-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.game-card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.game-card-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ocean-game-card:hover .game-card-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: scale(1.08);
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 20, 40, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    pointer-events: none;
}

.ocean-game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-btn-ocean {
    background: linear-gradient(135deg, var(--gold), #ffaa00);
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    pointer-events: auto;
}

.play-btn-ocean:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #000;
    text-decoration: none;
}

.game-card-info {
    padding: 15px;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-provider {
    font-size: 0.85rem;
    color: var(--cyan-glow);
    margin-bottom: 12px;
}

.game-card-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-tag.rtp {
    border-color: rgba(0, 255, 150, 0.3);
    color: #00ff96;
}

/* No games message */
.no-games-ocean {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-games-ocean h3 {
    color: #fff;
    margin-bottom: 10px;
}

/* ============================================
   MOBILE TOUCH DEVICE SUPPORT
   ============================================ */
.ocean-game-card:active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.ocean-game-card:active .game-card-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: scale(1.08);
}

.ocean-game-card:active .game-card-overlay {
    opacity: 1;
}

@media (max-width: 1024px) {
    .ocean-game-card {
        -webkit-tap-highlight-color: transparent;
    }

    .ocean-game-grid {
        overflow: visible !important;
    }

    .ocean-game-card:active .game-card-overlay,
    .ocean-game-card:hover .game-card-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .play-btn-ocean {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .ocean-game-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .ocean-game-card:active,
    .ocean-game-card:focus-within {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.4);
    }

    .ocean-game-card:active .game-card-overlay,
    .ocean-game-card:focus-within .game-card-overlay {
        opacity: 1;
    }

    .ocean-game-card:active .game-card-image img,
    .ocean-game-card:focus-within .game-card-image img {
        transform: scale(1.08);
    }
}

/* ============================================
   Responsive Breakpoints
   ============================================ */
@media (max-width: 991px) {
    .ocean-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .ocean-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }

    .game-card-info {
        padding: 12px;
    }

    .game-card-title {
        font-size: 0.9rem;
    }

    .game-card-stats {
        display: none;
    }
}

@media (max-width: 480px) {
    .ocean-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .play-btn-ocean {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
