/* ============================================
   Stories Block Styles - Figma Design
   ============================================ */

.stories-title {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    color: var(--color-black);
    margin-bottom: 20px;
}

.stories-container {
    background: var(--color-white);
    border-radius: 30px;
    margin-bottom: 80px;
    overflow: hidden;
}

.stories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.stories-scroll::-webkit-scrollbar {
    height: 0;
}

.stories-scroll::-webkit-scrollbar-track {
    display: none;
}

.stories-scroll::-webkit-scrollbar-thumb {
    display: none;
}

.stories-scroll::-webkit-scrollbar-thumb:hover {
    display: none;
}

/* Story Card - 3:4 ratio (соотношение 1080x1920) */
.story-card {
    position: relative;
    width: 200px;
    height: 356px; /* 200 * (1920/1080) = 355.56 */
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Story overlay for demo */
.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
}

.story-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.8;
}

.story-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

/* Download button overlay */
.story-download {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.story-card:hover .story-download {
    opacity: 1;
}

.story-download:hover {
    background: var(--color-white);
    transform: translateX(-50%) scale(1.1);
}

.story-download:active {
    transform: translateX(-50%) scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .stories-container {
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 40px;
        border-radius: 0;
    }

    .stories-scroll {
        padding: 15px;
    }

    .story-download {
        opacity: 1 !important;
    }

    .stories-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    /* .story-card {
        width: 160px;
        height: 285px;
    } */
    
    .story-value {
        font-size: 24px;
    }
}

