/* Chapter 4-3: Phrases - Specific styles */

/* Section title */
.phrases-section-title {
    font-size: 1.5rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #8e44ad;
    text-align: center;
    margin: 40px 0 8px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d5aaff;
}

.phrases-section-title:first-child {
    margin-top: 10px;
}

.phrases-section-desc {
    text-align: center;
    color: #636e72;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Phrases grid - single column for long phrase cards */
.phrases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Single phrase card */
.phrase-card {
    background: white;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 2px solid #e8daef;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.phrase-card:hover {
    transform: translateY(-2px);
    border-color: #c39bd3;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.phrase-card:active {
    transform: scale(0.98);
}

/* Play button */
.phrase-card .phrase-play-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8e44ad, #c39bd3);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(142,68,173,0.3);
}

.phrase-card .phrase-play-btn:hover {
    background: linear-gradient(135deg, #6c3483, #8e44ad);
    transform: scale(1.1);
}

/* Punjabi text */
.phrase-card .phrase-punjabi {
    font-size: 1.25rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #2d3436;
    flex-shrink: 0;
    line-height: 1.4;
}

/* English + transliteration */
.phrase-card .phrase-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.phrase-card .phrase-english {
    font-size: 0.95rem;
    color: #636e72;
    font-weight: 600;
}

.phrase-card .phrase-transliteration {
    font-size: 0.8rem;
    color: #b2bec3;
    font-style: italic;
    word-break: break-word;
}

/* Category color accents */
.phrase-card.cat-greetings   { border-left: 5px solid #e74c3c; }
.phrase-card.cat-language   { border-left: 5px solid #e67e22; }
.phrase-card.cat-understanding { border-left: 5px solid #f39c12; }
.phrase-card.cat-origins    { border-left: 5px solid #27ae60; }
.phrase-card.cat-help       { border-left: 5px solid #2980b9; }
.phrase-card.cat-wishes     { border-left: 5px solid #8e44ad; }
.phrase-card.cat-travel     { border-left: 5px solid #16a085; }
.phrase-card.cat-emergency  { border-left: 5px solid #c0392b; }

/* Responsive */
@media (max-width: 600px) {
    .phrase-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .phrase-card .phrase-punjabi {
        font-size: 1.1rem;
    }

    .phrase-card .phrase-play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .phrase-card .phrase-english {
        font-size: 0.85rem;
    }
}
