/* ==========================================================================
   Thirukkural Daily Card Component - Isolated Styles
   ========================================================================== */

.thirukkural-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px 0;
    border-top: 0.5px solid rgba(112, 112, 112, 0.5);
    font-family: 'Roboto', sans-serif;
    user-select: none;
}

/* Header Area */
.thirukkural-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.thirukkural-title {
    font-size: 15px;
    font-weight: 700;
    color: #DD5E28;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

/* Chapter & Kural No. Meta Row */
.thirukkural-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 12px;
    padding: 0 4px;
    gap: 8px;
}

.thirukkural-chapter {
    color: #DD5E28;
    font-weight: 700;
}

.thirukkural-number {
    color: #190C01;
    font-weight: 700;
    background-color: #F4F4F6;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

/* Kural Main Text */
.thirukkural-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.thirukkural-text {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #190C01;
    line-height: 1.6;
    white-space: normal;
    text-align: center;
    margin-bottom: 14px;
    word-break: normal;
    overflow-wrap: break-word;
    padding: 0 8px;
}

/* Bottom Actions Row */
.thirukkural-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Porul / Meaning Toggle Button */
.thirukkural-porul-toggle {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #DD5E28;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    margin-left: -10px;
}

.thirukkural-porul-toggle:hover {
    background-color: rgba(221, 94, 40, 0.08);
}

.thirukkural-porul-toggle:active {
    transform: scale(0.98);
}

.thirukkural-toggle-icon {
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* Right side Action Icons */
.thirukkural-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.thirukkural-icon-btn {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    outline: none;
    padding: 4px;
    box-shadow: none;
}

.thirukkural-icon-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.thirukkural-icon-btn:hover {
    background: transparent;
    transform: scale(1.1);
    box-shadow: none;
}

.thirukkural-icon-btn:active {
    transform: scale(0.95);
    box-shadow: none;
}

.thirukkural-icon-btn.playing {
    background: transparent;
    border: none;
    transform: scale(1.15);
}

/* Expandable Porul / Explanation Drawer */
.thirukkural-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin-top 0.3s ease;
    margin-top: 0;
    width: 100%;
}

.thirukkural-details.expanded {
    max-height: 350px;
    opacity: 1;
    margin-top: 12px;
}

.thirukkural-details-inner {
    background-color: #FFF9F7;
    border: 1px solid rgba(221, 94, 40, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #2E2E2E;
    font-weight: 400;
    text-align: left;
    box-shadow: inset 0 1px 3px rgba(221, 94, 40, 0.03);
}

/* Responsive adjustments matching digital card breakpoints */
@media screen and (max-width: 768px) {
    .thirukkural-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 550px) {
    .thirukkural-section {
        padding: 18px 0;
    }

    .thirukkural-title {
        font-size: 14px;
    }

    .thirukkural-meta {
        font-size: 13px;
    }

    .thirukkural-number {
        font-size: 12px;
    }

    .thirukkural-text {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .thirukkural-porul-toggle {
        font-size: 15px;
    }

    .thirukkural-icon-btn img {
        width: 38px;
        height: 38px;
    }

    .thirukkural-details-inner {
        font-size: 14px;
        padding: 12px 14px;
    }
}

@media screen and (max-width: 390px) {
    .thirukkural-section {
        padding: 15px 0;
    }

    .thirukkural-text {
        font-size: 14px;
    }
}