/* ================================
   DISCOVER SECTION
   3 Categories with Thumbnail Scrollers
   Your style - modern, clean design
   ================================ */

.discover-section {
    padding: 100px 60px;
    background: #FFFFFF;
}

.discover-section:nth-child(even) {
    background: #F9F2E7;
}

/* Category Container */
.discover-category {
    max-width: 1400px;
    margin: 0 auto 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.discover-category:last-child {
    margin-bottom: 0;
}

/* Alternate Layout for Even Categories */
.discover-category:nth-child(even) .discover-image-section {
    order: 2;
}

.discover-category:nth-child(even) .discover-content {
    text-align: right;
}

/* Image Section */
.discover-image-section {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.discover-main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Image Action Button (Play Now / View Details) */
.main-image-action-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 40px;
    background: rgba(232, 93, 68, 0.95);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-image-action-btn:hover {
    background: rgba(232, 93, 68, 1);
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 8px 30px rgba(232, 93, 68, 0.5);
}

.discover-main-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.15);
}

.discover-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-main-image-container:hover .discover-main-image {
    transform: scale(1.05);
}

/* Thumbnail Scroller */
.discover-thumbnails {
    position: relative;
    padding: 0 45px;
}

.discover-thumbnail-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 93, 68, 0.3) transparent;
}

.discover-thumbnail-track::-webkit-scrollbar {
    height: 6px;
}

.discover-thumbnail-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.discover-thumbnail-track::-webkit-scrollbar-thumb {
    background: rgba(232, 93, 68, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.discover-thumbnail-track::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 93, 68, 0.5);
}

/* Thumbnail Items */
.discover-thumbnail {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    background: #FFFFFF;
}

.discover-thumbnail:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 93, 68, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.discover-thumbnail.active {
    transform: translateY(-6px);
    border-color: #E85D44;
    box-shadow: 0 8px 20px rgba(232, 93, 68, 0.3);
}

.discover-thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #E85D44 var(--progress, 0%), transparent);
    transition: none;
}

.discover-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.discover-thumbnail:hover img {
    opacity: 0.8;
}

/* Scroll Navigation Buttons */
.discover-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    opacity: 0.7;
}

.discover-scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.discover-scroll-btn.prev {
    left: 0;
}

.discover-scroll-btn.next {
    right: 0;
}

.discover-scroll-btn svg {
    width: 16px;
    height: 16px;
    fill: #E85D44;
}

/* Content Section */
.discover-content {
    padding: 20px;
}

.discover-category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(232, 93, 68, 0.1);
    color: #E85D44;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.discover-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #2C3E50;
    margin-bottom: 20px;
}

.discover-content p {
    font-size: 1.15rem;
    color: #5D6D7E;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
}

.discover-category:nth-child(even) .discover-content p {
    margin-left: auto;
}

.discover-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #E85D44;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(232, 93, 68, 0.3);
}

.discover-btn:hover {
    background: #d44a31;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 68, 0.4);
}

.discover-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.discover-btn:hover svg {
    transform: translateX(4px);
}

/* Category Specific Colors */
.discover-category.games .discover-category-tag {
    background: rgba(232, 93, 68, 0.1);
    color: #E85D44;
}

.discover-category.games .discover-btn {
    background: #E85D44;
    box-shadow: 0 4px 15px rgba(232, 93, 68, 0.3);
}

.discover-category.games .discover-btn:hover {
    background: #d44a31;
}

.discover-category.tools .discover-category-tag {
    background: rgba(77, 150, 255, 0.1);
    color: #4D96FF;
}

.discover-category.tools .discover-btn {
    background: #4D96FF;
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.3);
}

.discover-category.tools .discover-btn:hover {
    background: #3a7de0;
}

.discover-category.assets .discover-category-tag {
    background: rgba(22, 210, 173, 0.1);
    color: #16D2AD;
}

.discover-category.assets .discover-btn {
    background: #16D2AD;
    box-shadow: 0 4px 15px rgba(22, 210, 173, 0.3);
}

.discover-category.assets .discover-btn:hover {
    background: #12b599;
}

/* Auto-play Pause Button */
.discover-pause-play {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.7;
    z-index: 5;
}

.discover-pause-play:hover {
    opacity: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.discover-pause-play svg {
    width: 16px;
    height: 16px;
    fill: #E85D44;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .discover-category {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .discover-category:nth-child(even) .discover-image-section {
        order: 0;
    }

    .discover-category:nth-child(even) .discover-content {
        text-align: left;
    }

    .discover-category:nth-child(even) .discover-content p {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .discover-section {
        padding: 60px 20px;
    }

    .discover-category {
        margin-bottom: 60px;
    }

    .discover-content {
        padding: 10px;
    }

    .main-image-action-btn {
        bottom: 20px;
        padding: 12px 30px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .discover-thumbnail {
        flex: 0 0 50px;
        height: 35px;
    }

    .discover-thumbnails {
        padding: 0 32px;
    }

    .discover-scroll-btn {
        width: 26px;
        height: 26px;
    }

    .discover-scroll-btn svg {
        width: 10px;
        height: 10px;
    }

    .discover-pause-play {
        width: 35px;
        height: 35px;
        bottom: -45px;
    }

    .discover-pause-play svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .discover-section {
        padding: 50px 15px;
    }

    .main-image-action-btn {
        bottom: 15px;
        padding: 10px 24px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .discover-thumbnail {
        flex: 0 0 45px;
        height: 32px;
    }

    .discover-thumbnails {
        padding: 0 30px;
    }

    .discover-scroll-btn {
        width: 24px;
        height: 24px;
    }

    .discover-scroll-btn svg {
        width: 9px;
        height: 9px;
    }

    .discover-pause-play {
        width: 33px;
        height: 33px;
        bottom: -42px;
    }

    .discover-pause-play svg {
        width: 13px;
        height: 13px;
    }
}

/* Touch-friendly cursors for mobile */
@media (hover: none) and (pointer: coarse) {
    .discover-scroll-btn,
    .discover-pause-play,
    .discover-thumbnail,
    .discover-btn {
        cursor: pointer !important;
    }
}
