/* Product Cards & Sliders CSS - Extracted from index.html */

/* Carousel/Slider Layout */
.cheats-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
    align-items: stretch;
}

.cheat-slide {
    padding: 0 0.5rem;
    flex: 0 0 400px;
    max-width: 400px;
    min-width: 320px;
    box-sizing: border-box;
    display: flex;
}

/* Card Design */
.cheat-card {
    background: var(--card-bg, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInCard 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    width: 100%;
    /* Ensure it fills container */
}

@keyframes fadeInCard {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cheat-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.28);
    transform: translateY(-8px) scale(1.02);
}

.cheat-card-image {
    position: relative;
    height: 240px;
    min-height: 180px;
    max-height: 260px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cheat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    background: none;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cheat-card-image img.loaded {
    opacity: 1;
    transform: scale(1);
}

.cheat-card:hover .cheat-card-image img {
    transform: scale(1.05);
}

/* Status Badge */
.cheat-status {
    position: absolute;
    top: 0.7rem;
    z-index: 2;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInStatus 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

@keyframes slideInStatus {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.cheat-status-badge {
    font-size: 0.78rem !important;
    padding: 0.18em 0.7em !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    opacity: 0.96;
    min-width: unset !important;
    min-height: unset !important;
    line-height: 1.2 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.cheat-status-badge .fa,
.cheat-status-badge i {
    font-size: 0.9em !important;
}

/* Content Area */
.cheat-content {
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cheat-game {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Typography overrides for cards */
.cheat-content .cheat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color, #fff);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-primary);
}

.cheat-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-value {
    font-size: 0.8rem;
    color: var(--text-color, #fff);
}

.rating-stars {
    color: #ffd700;
    font-size: 0.7rem;
}

.rating-stars .fas {
    transition: transform 0.3s ease;
}

.rating-stars .fas:hover {
    transform: scale(1.2);
}

.cheat-description {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.cheat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.cheat-price {
    font-weight: 600;
    color: var(--primary-color, #ff5722);
    font-size: 0.85rem;
}

.btn-details {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.9rem;
    background: var(--primary-color, #ff5722);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.92;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    position: relative;
    overflow: hidden;
}

.btn-details:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cheat-card:hover .btn-details {
    opacity: 1;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.btn-details:hover:before {
    width: 200px;
    height: 200px;
}

.btn-details i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.btn-details:hover i {
    transform: translateX(4px);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.prev-slide,
.next-slide {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.prev-slide:hover,
.next-slide:hover {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .cheats-slider {
        max-width: 1200px;
    }

    .cheat-slide {
        flex: 0 0 340px;
        max-width: 340px;
        min-width: 260px;
    }

    .cheat-card {
        min-height: 380px;
    }

    .cheat-card-image {
        height: 180px;
        min-height: 120px;
        max-height: 200px;
    }
}

@media (max-width: 992px) {
    .cheats-slider {
        max-width: 700px;
        padding: 0 1rem;
    }

    .cheat-slide {
        flex: 0 0 48vw;
        max-width: 48vw;
        min-width: 280px;
    }

    .cheat-card {
        min-height: 360px;
    }

    .cheat-card-image {
        height: 160px;
        min-height: 120px;
        max-height: 180px;
    }

    .cheat-title {
        font-size: 0.9rem;
    }

    .cheat-description {
        font-size: 0.7rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 768px) {
    .popular-cheats-section {
        padding: 1.5rem 0;
    }

    .cheat-card {
        min-height: 340px;
    }

    .cheat-status-badge {
        font-size: 0.7rem !important;
        padding: 0.15em 0.6em !important;
    }

    .cheat-game {
        font-size: 0.7rem;
    }

    .cheat-content {
        padding: 0.6rem;
    }

    .cheat-rating {
        margin-bottom: 0.4rem;
    }

    .rating-value {
        font-size: 0.75rem;
    }

    .btn-details {
        padding: 0.2rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .cheats-slider {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .cheat-slide {
        flex: 0 0 85vw;
        max-width: 85vw;
        min-width: 260px;
        padding: 0 0.35rem;
    }

    .cheat-card {
        min-height: 320px;
        transform: translateY(10px);
    }

    .cheat-card-image {
        height: 140px;
        min-height: 120px;
        max-height: 160px;
    }

    .cheat-content {
        padding: 0.5rem;
    }

    .cheat-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .cheat-description {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
    }

    .cheat-price {
        font-size: 0.8rem;
    }

    .cheat-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .cheat-card-image img {
        transform: scale(1.05);
    }

    .cheat-card:hover .cheat-card-image img {
        transform: scale(1.02);
    }

    .btn-details {
        padding: 0.4rem 0.8rem;
        margin-top: 0.2rem;
    }

    .rating-stars .fas {
        padding: 0.2rem;
    }
}

@media (max-width: 360px) {
    .cheat-slide {
        flex: 0 0 95vw;
        max-width: 95vw;
        min-width: 240px;
    }

    .cheat-card {
        min-height: 300px;
    }

    .cheat-card-image {
        height: 130px;
    }

    .cheat-content {
        padding: 0.4rem;
    }

    .cheat-title {
        font-size: 0.8rem;
    }

    .cheat-game {
        font-size: 0.65rem;
    }

    .cheat-description {
        -webkit-line-clamp: 2;
        margin-bottom: 0.4rem;
    }

    .cheat-footer {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .btn-details {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode Support for Mobile */
@media (prefers-color-scheme: dark) and (max-width: 576px) {
    .cheat-card {
        background: var(--card-bg, #1a1a1a);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .cheat-status-badge {
        background: rgba(0, 0, 0, 0.6);
    }

    .btn-details:before {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .cheat-card {
        border-width: 0.5px;
    }

    .cheat-status-badge {
        border-width: 0.5px;
    }
}

/* Game Popup Styles */
.game-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--card-bg, #2a303c);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.game-popup.active {
    transform: translateX(0);
    opacity: 1;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.popup-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.popup-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

.popup-content {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.popup-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .game-popup {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}