/* 
 * Kid-friendly styling for Weekly Schedule Manager
 * For a science-themed background, add a background-image to .wsm-wrapper or the page body,
 * e.g., a starry sky, molecules, or a colorful gradient like:
 * background: linear-gradient(135deg, #6dd5fa, #ff758c);
 * or
 * background-image: url('path-to-science-themed-image.jpg');
 */
.wsm-wrapper {
    background: rgba(249, 252, 255, 0.9); /* Slightly transparent light blue */
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wsm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 25px;
}

.wsm-week-title {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a4d7f;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wsm-nav-btn {
    background: #ff6b6b; /* Bright red for buttons */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
}

.wsm-nav-btn:hover {
    background: #e55a5a; /* Darker red on hover */
    transform: scale(1.05);
}

.wsm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.wsm-card {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Unique colors for each day */
.wsm-card:nth-child(1) { /* Monday */
    background: #FF6347; /* Red */
}
.wsm-card:nth-child(2) { /* Tuesday */
    background: #FFD700; /* Blue */
}
.wsm-card:nth-child(3) { /* Wednesday */
    background: #ADFF2F; /* Green */
}
.wsm-card:nth-child(4) { /* Thursday */
    background: #20B2AA; /* Yellow */
}
.wsm-card:nth-child(5) { /* Friday */
    background: #87CEFA; /* Purple */
}
.wsm-card:nth-child(6) { /* Saturday */
    background: #9370DB; /* Orange */
}
.wsm-card:nth-child(7) { /* Sunday */
    background: #FF69B4; /* Pink */
}

.wsm-card:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.wsm-day {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.wsm-post {
    margin-bottom: 12px;
}

.wsm-title {
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.wsm-title a {
    color: #e91e63; /* Vivid pink for clickable titles */
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.wsm-title a:hover {
    color: #d81b60; /* Darker pink on hover */
    text-decoration: underline;
    transform: scale(1.02); /* Subtle bounce effect */
}

/* Colorful category tags with gradients */
.wsm-cat {
    display: inline-block;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Cycle through category colors */
.wsm-cat:nth-child(3n+1) {
    background: linear-gradient(135deg, #00bcd4, #0097a7); /* Cyan */
}
.wsm-cat:nth-child(3n+2) {
    background: linear-gradient(135deg, #f06292, #c2185b); /* Magenta */
}
.wsm-cat:nth-child(3n+3) {
    background: linear-gradient(135deg, #66bb6a, #388e3c); /* Lime */
}

.wsm-empty {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .wsm-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .wsm-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    .wsm-week-title {
        font-size: 1.2rem;
    }

    .wsm-title {
        font-size: 1rem;
    }

    .wsm-day {
        font-size: 1.1rem;
    }
}