/* Kids mode styles */
.kids-header {
    text-align: center;
    margin-bottom: 3rem;
}

.kids-header h1 {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.kids-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Stories grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.story-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-4px);
}

.story-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.story-info {
    padding: 1.5rem;
}

.story-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.story-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.story-meta i {
    width: 1rem;
    height: 1rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Story controls */
.story-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
}

.control-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

#volumeSlider {
    width: 100px;
}

/* Story content */
.story-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.story-content p {
    margin-bottom: 1rem;
}

/* Highlight current paragraph being read */
.reading {
    background-color: rgba(65, 37, 9, 0.1);
    border-radius: 0.25rem;
    padding: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .kids-header h1 {
        font-size: 2rem;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .story-controls {
        flex-wrap: wrap;
    }

    .volume-control {
        width: 100%;
        margin-top: 1rem;
    }

    #volumeSlider {
        flex: 1;
    }
} 