/* Chapter 3-1: Muharni - Complete Letter+Matra Table Styles */

/* Overview audio players */
.muharni-overview {
    background: white;
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.muharni-overview audio {
    width: 100%;
    max-width: 500px;
    margin: 8px 0;
    border-radius: 25px;
}

.muharni-overview-label {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 5px;
    font-style: italic;
}

/* Table container - scrollable on small screens */
.muharni-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Main table */
.muharni-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    min-width: 700px;
}

/* Header row */
.muharni-table thead th {
    background: #6c5ce7;
    color: white;
    padding: 10px 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.muharni-table thead th:first-child {
    background: #5f3dc4;
    border-radius: 16px 0 0 0;
    min-width: 40px;
}

/* Section separator rows */
.muharni-table .section-row td {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: #d35400;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 15px;
    text-align: center;
    border-bottom: 2px solid #fdcb6e;
}

/* Row label (first column - base letter) */
.muharni-table .row-label {
    background: #dfe6e9;
    font-size: 1.8rem;
    text-align: center;
    padding: 8px 6px;
    color: #2d3436;
    font-weight: bold;
    min-width: 50px;
    border-right: 2px solid #b2bec3;
    cursor: default;
}

/* Data cells (matra combinations) */
.muharni-table .muharni-cell {
    font-size: 1.6rem;
    text-align: center;
    padding: 10px 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
    position: relative;
    min-width: 50px;
}

.muharni-table .muharni-cell:hover {
    background: #a29bfe;
    color: white;
    transform: scale(1.1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(108,92,231,0.3);
    border-radius: 8px;
}

.muharni-table .muharni-cell:active {
    transform: scale(0.95);
    background: #6c5ce7;
    color: white;
}

/* Alternate row shading */
.muharni-table tbody tr:nth-child(even) .muharni-cell {
    background: #f8f9fa;
}

.muharni-table tbody tr:nth-child(even) .muharni-cell:hover {
    background: #a29bfe;
    color: white;
}

/* Vowel bearer row - special highlight */
.muharni-table tbody tr:first-child .muharni-cell {
    background: #fff3e0;
}

.muharni-table tbody tr:first-child .muharni-cell:hover {
    background: #a29bfe;
    color: white;
}

/* Tippi and Bindī columns (last two) - subtle highlight */
.muharni-table .muharni-cell:nth-child(12),
.muharni-table .muharni-cell:nth-child(13) {
    background: #f0f0ff;
}

/* Scroll hint for mobile */
.muharni-scroll-hint {
    text-align: center;
    color: #636e72;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .muharni-table .muharni-cell {
        font-size: 1.3rem;
        padding: 8px 3px;
    }

    .muharni-table .row-label {
        font-size: 1.4rem;
        padding: 6px 4px;
    }

    .muharni-table thead th {
        font-size: 0.7rem;
        padding: 8px 4px;
    }

    .muharni-scroll-hint {
        display: block;
    }
}

@media (min-width: 769px) {
    .muharni-scroll-hint {
        display: none;
    }
}
