/* Chapter 6: Family & Daily Routines - Specific styles */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.family-card {
    background: white;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #fd79a8;
    transition: all 0.2s;
    cursor: pointer;
}

.family-card:hover {
    transform: translateY(-5px);
    border-color: #e84393;
}

.family-word {
    font-size: 2.2rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #2d3436;
    margin-bottom: 8px;
}

.family-english {
    font-size: 1rem;
    color: #e84393;
    font-weight: bold;
    margin-bottom: 10px;
}

.family-role {
    font-size: 1rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #636e72;
    font-style: italic;
}

.routine-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.routine-card {
    background: white;
    border-radius: 12px;
    padding: 15px 20px 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #00b894;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    gap: 10px;
}

/* Use sentence-card styles for routine cards */
.routine-list { width: 100%; }

.routine-list .sentence-card {
    border-left: 4px solid #74b9ff;
    width: 100%;
    align-items: stretch;
}

.routine-left { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.routine-right { display: flex; align-items: flex-end; justify-content: flex-end; align-self: flex-end; }

.time-tag {
    background: #74b9ff;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    width: auto;
    max-width: max-content;
    white-space: nowrap;
}

.activity-word {
    font-size: 1.1rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #2d3436;
}

.routine-list .sentence-punjabi {
    font-size: 1.4rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #2d3436;
}

.routine-right .speak-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    background: #00b894;
    box-shadow: 0 3px 6px rgba(0,0,0,0.18);
    margin-left: 12px;
}

/* Slightly smaller button on very small screens */
@media (max-width: 480px) {
    .routine-right .speak-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

.sentence-builder {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.sentence-builder p {
    font-size: 1.5rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    margin-bottom: 20px;
}

.sentence-builder select {
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    border: 2px solid #a29bfe;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    margin: 10px;
}

.built-sentence {
    font-size: 2.5rem;
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    color: #d63031;
    margin: 25px 0;
}
