/* productGrid.css 
   Sheet Music Index Grid
*/

/* 1. Container setup */
html body .product-grid { 
    display: flex; 
    flex-direction: column; 
    margin-top: 20px;
    border: none !important;
}

/* 2. The Row Base */
html body .sheet-music-row {
    display: flex !important;
    height: 100px;
    min-height: 100px;
    overflow: hidden;
    position: relative;
    align-items: center !important; 
    border: none !important;
    margin-bottom: 5px; 
    transition: all 0.3s ease-in-out 0s; 
}

/* Expansion on Hover - Desktop */
html body .sheet-music-row:hover {
    height: 242px;
    min-height: 242px;
    margin-top: 8px;
    margin-bottom: 13px;
    z-index: 100;
    transition: all 0.3s ease-in-out 1s !important;
}

/* 3. Column Layouts */
html body .sheet-music-row .image-wrapper,
html body .sheet-music-row .audio-dot-box,
html body .sheet-music-row .title-column,
html body .sheet-music-row .category-column, 
html body .sheet-music-row .level-column,
html body .sheet-music-row .badge-column { 
    display: flex !important;
    align-items: center !important; 
    height: 100% !important;
}

/* Fixed spacing for side columns */
html body .sheet-music-row .image-wrapper { flex: 0 0 85px; padding-left: 5px; padding-right: 10px; } 
html body .sheet-music-row .audio-dot-box { flex: 0 0 40px; justify-content: center; }
html body .sheet-music-row .category-column { flex: 0 0 160px; }
html body .sheet-music-row .level-column { flex: 0 0 110px; }
html body .sheet-music-row .badge-column { flex: 0 0 30px; flex-shrink: 0 !important; }

/* 4. TITLE COLUMN - Black to Blue Reveal */
html body .sheet-music-row .title-column { 
    flex: 1 1 auto !important; 
    padding-left: 10px; 
    padding-right: 15px;
    min-width: 0 !important; 
}

html body .sheet-music-row .title-column a {
    color: #000000 !important; /* Starts Black */
    font-size: 18px !important; 
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.3 !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
    word-break: break-word;
    transition: color 0.3s ease; /* Smooth color change */
}

/* The Blue Reveal on Hover */
html body .sheet-music-row:hover .title-column a {
    color: #0071e3 !important; /* Your new Apple-style Blue */
}

/* 5. Element Specifics */
html body .sheet-music-row .image-wrapper img { 
    height: 90px; 
    width: auto; 
    border: none !important; 
    display: block;
    transition: all 0.3s ease-in-out 0s; 
}

html body .sheet-music-row:hover .image-wrapper img { 
    height: 232px; 
    transition: all 0.3s ease-in-out 1s !important; 
}

html body .sheet-music-row .category-column a,
html body .sheet-music-row .level-column a {
    color: #000000 !important; /* Starts Black */
    font-size: 18px !important; 
    font-weight: 500 !important;
    text-decoration: none !important;
    line-height: 1.2 !important; 
    white-space: nowrap;
    transition: color 0.3s ease;
}

html body .sheet-music-row:hover .category-column a,
html body .sheet-music-row:hover .level-column a {
    color: #0071e3 !important; /* Blue Reveal */
}

/* 6. Background Colors */
html body .row-premium { background-color: #f5f5f7 !important; }
html body .row-free { background-color: #ffffff !important; }

/* 7. Premium Badge Styling - Vertical and Spaced */
html body .sheet-music-row .premium-tag { 
    background: #295788 !important; 
    color: #fff !important; 
    width: 100%;
    height: 100%;
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px !important; 
    font-weight: 500 !important;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    letter-spacing: 1.5px !important; /* Added designer spacing */
    text-transform: uppercase; /* Looks cleaner vertically */
}

/* 8. MOBILE RESPONSIVE */
@media (max-width: 767px) {
    html body .sheet-music-row, 
    html body .sheet-music-row:hover { 
        height: 60px !important; 
        min-height: 60px !important;
        transition: none !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
        box-shadow: none !important;
    }

    html body .sheet-music-row .category-column, 
    html body .sheet-music-row .level-column, 
    html body .sheet-music-row .image-wrapper { 
        display: none !important; 
    }

    html body .sheet-music-row .title-column { min-width: 0 !important; }
    html body .sheet-music-row .title-column a { 
        font-size: 16px !important; 
    }
    html body .sheet-music-row .badge-column { flex: 0 0 30px !important; }
}