/* Montpelier Winter Parking Plugin Styles */
/* Version 2.0.2 - Much larger text and darker transition colors */

.mp-widget {
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* PWA Install Prompt */
.mp-install-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.mp-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mp-install-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.mp-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mp-install-text strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.mp-install-text span {
    font-size: 1.125rem;
    opacity: 0.9;
}

.mp-install-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.mp-install-button:hover {
    transform: scale(1.05);
}

.mp-install-dismiss {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mp-install-dismiss:hover {
    opacity: 1;
}

/* Notification Permission Prompt */
.mp-notification-prompt {
    background: #fef3c7;
    border-bottom: 3px solid #f59e0b;
    padding: 1rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.mp-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mp-notification-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.mp-notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mp-notification-text strong {
    font-size: 1.25rem;
    font-weight: 600;
    color: #92400e;
}

.mp-notification-text span {
    font-size: 1.125rem;
    color: #78350f;
}

.mp-notification-button {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.mp-notification-button:hover {
    background: #d97706;
}

.mp-notification-dismiss {
    background: transparent;
    border: none;
    color: #92400e;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mp-notification-dismiss:hover {
    opacity: 1;
}

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

/* Main Display Area */
.mp-main-display {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ODD/EVEN Indicator - MUCH LARGER */
.mp-side-indicator {
    margin-bottom: 1.25rem;
}

.mp-side-text {
    font-size: 6.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

/* Transition State - Darker colors, larger text */
.mp-side-indicator.transition .mp-side-text {
    font-size: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Status Text - MUCH LARGER */
.mp-status-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

/* Date Display - MUCH LARGER */
.mp-date {
    font-size: 1.75rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Time Display - MUCH LARGER */
.mp-time {
    font-size: 2.25rem;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 1.75rem;
    letter-spacing: 0.05em;
}

/* Countdown Container */
.mp-countdown-container {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.mp-countdown-label {
    font-size: 1.375rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.mp-countdown-time {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Downtown Box - Dark by default */
.mp-downtown-box {
    padding: 2rem 2rem;
    background: #2d3748;
    border-top: 3px solid #1a202c;
}

.mp-downtown-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: none;
    letter-spacing: 0.025em;
    margin-bottom: 1.25rem;
}

.mp-downtown-status {
    margin-bottom: 1.25rem;
}

.mp-downtown-main {
    font-size: 2rem;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 0.5rem;
}

.mp-downtown-detail {
    font-size: 1.375rem;
    color: #cbd5e0;
}

.mp-downtown-countdown {
    background: #1a202c;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.mp-downtown-countdown-label {
    font-size: 1.25rem;
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.mp-downtown-countdown-time {
    font-size: 2.25rem;
    font-weight: 700;
    color: #667eea;
}

/* No Parking State */
.mp-downtown-box.no-parking {
    background: #742a2a;
    border-top-color: #991b1b;
}

.mp-downtown-box.no-parking .mp-downtown-main {
    color: #fca5a5;
}

.mp-downtown-box.no-parking .mp-downtown-detail {
    color: #fecaca;
}

.mp-downtown-box.no-parking .mp-downtown-countdown {
    background: #991b1b;
    border-left-color: #fca5a5;
}

.mp-downtown-box.no-parking .mp-downtown-countdown-label {
    color: #fecaca;
}

.mp-downtown-box.no-parking .mp-downtown-countdown-time {
    color: #fca5a5;
}

/* Footer */
.mp-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    background: #edf2f7;
    color: #718096;
}

.mp-footer small {
    font-size: 1rem;
}

.mp-notification-status {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #4a5568;
}

.mp-notification-status.enabled {
    color: #38a169;
}

/* Transition Period Styling - DARKER COLORS */
.mp-main-display.transition {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

/* Responsive Design */
@media (max-width: 480px) {
    .mp-side-text {
        font-size: 5rem;
    }
    
    .mp-side-indicator.transition .mp-side-text {
        font-size: 3.5rem;
    }
    
    .mp-status-text {
        font-size: 1.75rem;
    }
    
    .mp-date {
        font-size: 1.5rem;
    }
    
    .mp-time {
        font-size: 2rem;
    }
    
    .mp-countdown-label {
        font-size: 1.25rem;
    }
    
    .mp-countdown-time {
        font-size: 3rem;
    }
    
    .mp-downtown-title {
        font-size: 1.25rem;
    }
    
    .mp-downtown-main {
        font-size: 1.75rem;
    }
    
    .mp-downtown-detail {
        font-size: 1.25rem;
    }
    
    .mp-downtown-countdown-label {
        font-size: 1.125rem;
    }
    
    .mp-downtown-countdown-time {
        font-size: 2rem;
    }
    
    .mp-main-display {
        padding: 2.5rem 1.5rem;
    }
    
    .mp-downtown-box {
        padding: 1.75rem 1.5rem;
    }
    
    .mp-install-content,
    .mp-notification-content {
        flex-wrap: wrap;
    }
    
    .mp-install-button,
    .mp-notification-button {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 360px) {
    .mp-side-text {
        font-size: 4.5rem;
    }
    
    .mp-side-indicator.transition .mp-side-text {
        font-size: 3rem;
    }
}

/* Widget Title */
.mp-widget-title {
    background: #667eea;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Sidebar-Specific Sizing */
/* Reduce text sizes when in sidebar/widget */
.sidebar .mp-widget,
.sidebar-primary .mp-widget,
.widget .mp-widget {
    /* Reduce ODD/EVEN text for sidebar */
}

.sidebar .mp-side-text,
.sidebar-primary .mp-side-text,
.widget .mp-side-text {
    font-size: 4rem;
}

.sidebar .mp-side-indicator.transition .mp-side-text,
.sidebar-primary .mp-side-indicator.transition .mp-side-text,
.widget .mp-side-indicator.transition .mp-side-text {
    font-size: 3rem;
}

.sidebar .mp-status-text,
.sidebar-primary .mp-status-text,
.widget .mp-status-text {
    font-size: 1.5rem;
}

/* Emergency Parking Ban Display */
.mp-emergency-ban {
    text-align: center;
    padding: 2rem 1.5rem;
}

.mp-emergency-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mp-emergency-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mp-emergency-message {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #1f2937;
    max-width: 600px;
    margin: 0 auto;
    white-space: pre-wrap;
    font-weight: 500;
}

.mp-main-display.emergency-ban-active {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 3px solid #dc2626;
}

/* Off-Season Display */
.mp-off-season {
    text-align: center;
    padding: 2rem 1.5rem;
}

.mp-off-season-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.mp-off-season-title {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1.5rem;
}

.mp-off-season-message {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #1f2937;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.mp-off-season-message p {
    margin: 0.75rem 0;
}

.mp-off-season-message strong {
    font-weight: 700;
    color: #059669;
}

.mp-off-season-message em {
    font-size: 1rem;
    color: #6b7280;
}

.mp-main-display.off-season-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.mp-off-season .mp-date,
.mp-off-season .mp-time {
    text-align: center;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Sidebar adjustments for special displays */
.sidebar .mp-emergency-title,
.sidebar-primary .mp-emergency-title,
.widget .mp-emergency-title {
    font-size: 1.75rem;
}

.sidebar .mp-emergency-message,
.sidebar-primary .mp-emergency-message,
.widget .mp-emergency-message {
    font-size: 1.1rem;
}

.sidebar .mp-off-season-title,
.sidebar-primary .mp-off-season-title,
.widget .mp-off-season-title {
    font-size: 1.5rem;
}

.sidebar .mp-off-season-message,
.sidebar-primary .mp-off-season-message,
.widget .mp-off-season-message {
    font-size: 1rem;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mp-widget {
        background: #1a202c;
    }
    
    .mp-footer {
        background: #2d3748;
        color: #cbd5e0;
    }
    
    .mp-notification-status {
        color: #cbd5e0;
    }
}
