#learn-today-menu {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: radial-gradient(ellipse at center, #ffffff 50%, #e0f2f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    overflow-y: auto;
    padding: 2rem;
    font-family: 'Lora', serif;
}

#learn-today-menu.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.learn-today-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #5f5f5f;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.learn-today-close-btn:hover {
    color: #000;
    transform: rotate(90deg);
}

.learn-today-content-wrapper {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    animation: fadeIn-up 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.learn-today-title {
    font-size: 3rem;
    font-weight: 500;
    color: #1a2e44;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.learn-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.learn-today-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 4px solid; /* Color will be set by JS */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.learn-today-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.learn-today-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.learn-today-card:hover .learn-today-card-image {
    transform: scale(1.05);
}

.learn-today-card-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.learn-today-word {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #1a2e44;
}

.learn-today-explanation {
    font-size: 1rem;
    line-height: 1.6;
    color: #556270;
    font-family: 'Inter', sans-serif;
}

.learn-today-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.study-word-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.study-word-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.learn-today-loader, .learn-today-error {
    color: #1a2e44;
    font-size: 1.5rem;
}
.learn-today-loader p, .learn-today-error p {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learn-today-title {
        font-size: 2.2rem;
    }
    .learn-today-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    #learn-today-menu {
        padding: 1rem;
    }
    .learn-today-close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    .learn-today-grid {
        grid-template-columns: 1fr;
    }
}