/**
 * Fentanyl Cards Component Styles
 * 
 * Based on filterable components styling
 */

.fentanyl-cards {
    background-color: #000;
    color: #fff;
    
    & .fentanyl-cards-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        justify-content: center;
        
        & .fentanyl-card {
            flex: 0 0 25%;
            display: flex; /* Add flex display */
        }
        
        @media (max-width: 992px) {
            & .fentanyl-card {
                flex: 0 0 calc(25% - var(--spacing-md));
            }
        }
        
        @media (max-width: 768px) {
            & .fentanyl-card {
                flex: 0 0 90%;
            }
        }
    }
    
    /* Base card styling */
    & .fentanyl-card {
        background-color: #000;
        color: #fff;
        border-radius: var(--border-radius-secondary);
        overflow: hidden;
        
        & .card-content {
            height: 100%;
            width: 100%;
            padding: var(--spacing-md);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
            z-index: 1;
        }
    }
    
    /* Stat Highlight Card - exact copy from filterable components */
    & .stat-highlight-card {
        position: relative;
        overflow: hidden;
        background: linear-gradient(to bottom, #000000 0%, #181818 100%);
        
        & .card-content {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: var(--spacing-md);
        }
        
        & .stat-icon {
            width: 47px;
            height: 50px;
            margin: 0px auto var(--spacing-sm);

            & img {
                width: 100%;
            }
        }

        & h2 {
            text-align: center;
            margin-bottom: var(--spacing-xs);
            font-size: 3rem;
            color: #ffffff;
            font-family: var(--font-heading-primary);
            text-transform: uppercase;
            font-weight: 700;
        }
        
        & .stat-sub-text {
            color: #ffffff;
            margin-bottom: var(--spacing-md);
            flex-grow: 1;
            text-align: center;
            font-size: 1.2rem;
            line-height: 1.4;
        }
        
        & .stat-button-container {
            display: flex;
            justify-content: center;
            margin-top: auto;
            
            & a.btn-outline-white {
                display: inline-block;
                padding: 7px;
                border: 2px solid #fff;
                border-radius: 4px;
                color: #fff;
                text-decoration: none;
                font-weight: 700;
                font-family: var(--font-heading-primary);
                text-transform: uppercase;
                transition: all 0.3s ease;
                min-width: 150px;
                text-align: center;
                
                &:hover {
                    background-color: #fff;
                    color: #000;
                }
            }
        }
    }

    /* Image Link Card */
    & .image-link-card {
        & .card-content {
            padding: 0;
        }

        & .link-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-secondary);
        }
    }
    
    /* Video Card */
    & .video-card {
        & .card-content {
            padding: 0;
        }
        
        & .video-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            overflow: hidden;
            
            & video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
    
    /* Responsive styles */
    @media (max-width: 992px) {
        & .fentanyl-cards-wrapper {
            grid-template-columns: 1fr 1fr;
        }
        
        & .video-card {
            grid-column: span 2;
        }
    }
    
    @media (max-width: 768px) {
        & .fentanyl-cards-wrapper {
            grid-template-columns: 1fr;
        }
        
        & .video-card {
            grid-column: span 1;
        }
    }
}
