/* ---------------------------- */
/* Free Spin Plugin Main Styles */
/* ---------------------------- */

#free-spin-box {
    border: 2px solid #000;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
    background: #f9f9f9;
    box-sizing: border-box;
}

#free-spin-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

/* ---------------------------- */
/* Reel styling */
/* ---------------------------- */

.reel {
    width: 150px;
    height: 540px; /* 3 rows x 180px */
    overflow: hidden;
    border: 2px solid #000;
    background: #000;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.reel-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* ---------------------------- */
/* Cells */
/* ---------------------------- */

.cell {
    width: 100%;
    height: 180px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
}

.cell img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
}

.cell .product-name {
    font-size: 12px;
    margin-top: 5px;
    padding: 0 5px;
    text-align: center;
    line-height: 1.2;
}

/* ---------------------------- */
/* Buttons */
/* ---------------------------- */

.spin-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.spin-buttons button {
    padding: 10px 22px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #0073aa;
    color: #fff;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.spin-buttons button:hover {
    background-color: #005177;
}

#spin-result {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
}

/* ---------------------------- */
/* Highlight winning cells */
/* ---------------------------- */

.cell.winning {
    border: 3px solid #ff0000 !important;
    box-shadow: 0 0 12px #ff0000 !important;
}

/* ---------------------------- */
/* Audio Controls */
/* ---------------------------- */

.spin-audio-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.spin-audio-controls button {
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
}

.spin-audio-controls input[type="range"] {
    width: 120px;
}

/* ---------------------------- */
/* Mobile Responsive */
/* ---------------------------- */

@media (max-width: 768px) {

    #free-spin-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .reel {
        width: 120px;
        height: 360px;
    }

    .cell {
        height: 120px;
        min-height: 120px;
    }

    .cell img {
        height: 80px;
    }

    .cell .product-name {
        font-size: 10px;
    }
}

/* ---------------------------- */
/* Very Small Devices */
/* ---------------------------- */

@media (max-width: 480px) {

    .reel {
        width: 100px;
        height: 300px;
    }

    .cell {
        height: 100px;
        min-height: 100px;
    }

    .cell img {
        height: 70px;
    }

    .cell .product-name {
        font-size: 9px;
    }
}
