/* spielplan_widget.css
 * Extracted from spielplan.php for modern separation of concerns.
 * Add custom styles here. Tailwind utility classes are used via CDN, but custom widget styles are placed here.
 */
body { 
    background-color: #f8fafc; 
    font-family: 'Inter', sans-serif; 
    color: #1e293b;
    margin: 0;
    padding: 8px;
}
.js-hidden { display: none !important; }
.text-micro { font-size: 10px !important; line-height: 1.2 !important; }
.text-widget-xs { font-size: 11px !important; line-height: 1.3 !important; }
.text-widget-sm { font-size: 12px !important; line-height: 1.4 !important; }
.text-widget-base { font-size: 13px !important; line-height: 1.4 !important; }
#schedule-container { 
    display: flex; 
    flex-direction: column; 
    gap: 16px;
}
.is-team-filtered .matchday-header { display: none !important; }
.is-team-filtered .matchday-section { margin-top: 0 !important; }
.is-team-filtered #schedule-container { gap: 12px !important; }
.st-badge { display: none; }
.is-team-filtered .st-badge { display: flex; }
.match-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.1s ease;
}
.status-pill {
    font-size: 9px !important;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.status-confirmed { background-color: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.status-planned   { background-color: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
.status-today     { background-color: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.status-live      { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.status-awaiting  { background-color: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; }
.status-postponed { background-color: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.status-canceled  { background-color: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }
@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
    100% { opacity: 1; transform: scale(1); }
}
.live-dot { width: 5px; height: 5px; background-color: #dc2626; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
.awaiting-dot { width: 5px; height: 5px; background-color: #ea580c; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
.team-logo { width: 28px; height: 28px; object-fit: contain; }
.toggle-dot { transition: all 0.3s ease-in-out; }
input:checked ~ .toggle-dot { transform: translateX(100%); background-color: #3b82f6; }
.nav-btn {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 4px 8px !important;
    background-color: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 9px !important; 
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}
.nav-btn:hover:not(:disabled) { background-color: #f8fafc !important; color: #1e293b !important; border-color: #cbd5e1 !important; }
.nav-btn:disabled { opacity: 0.2 !important; cursor: not-allowed; box-shadow: none !important; }
.nav-btn svg { width: 8px !important; height: 8px !important; flex-shrink: 0 !important; stroke-width: 5 !important; }
#round-indicator {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}
#round-navigation {
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
