/* Shared widget layout and background variations */
/* Used by mintor, vivibap (meal planner), and weather widgets */

.widget {
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Outer background modifiers (first div only) */
.widget--bg-green {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.widget--bg-grey {
    background: rgba(0, 0, 0, 0.55);
}

.widget--bg-blue {
    background-color: #3c6585;
}

/* Optional: neutral default for future widgets */
.widget--bg-default {
    background: var(--bg-secondary, #f5f5f5);
}

/* Common no-data state (replaces no-weather-widget, mintor-no-data, no-meals-widget) */
.widget-no-data {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.widget-no-data h4,
.widget-no-data p {
    color: white !important;
    margin-bottom: 15px;
}

.widget-no-data a {
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    display: inline-block;
}

.widget-no-data-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white !important;
}

/* Shared widget header, title, subtitle, actions (same across mintor, vivibap, weather) */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.widget-header-info {
    flex: 1;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title--large {
    font-size: 1.8rem;
}

.widget-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #e0e0e0;
}

.widget-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Shared widget button (replaces btn-mintor, btn-meal, btn-weather) */
.btn-widget {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-widget:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-widget--success {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
}

.btn-widget--danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.btn-widget--danger:hover {
    background: rgba(220, 53, 69, 0.5);
    color: white;
}

@media (max-width: 768px) {
    .widget .widget-title {
        font-size: 1.2rem;
    }
}
