
/* ===== ВИДЖЕТ В ТЕМНОМ СТИЛЕ ===== */
.climate-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.climate-widget-container > * {
    pointer-events: auto;
}

.climate-widget-card {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-left: 4px solid #dc3545;
    animation: slideInRight 0.4s ease;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.climate-widget-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.climate-widget-card:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.widget-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.widget-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    background: #dc3545;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.widget-type {
    font-size: 0.65rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: all 0.2s ease;
}

.widget-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.widget-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.widget-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.widget-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.widget-meta i {
    font-size: 0.8rem;
}

.widget-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
    line-height: 1.4;
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-widget {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.btn-widget:hover {
    transform: scale(1.03);
}

.btn-widget:active {
    transform: scale(0.97);
}

.btn-widget.btn-success {
    background: #198754;
    color: #fff;
}

.btn-widget.btn-success:hover {
    background: #157347;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.3);
}

.btn-widget.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-widget.btn-warning:hover {
    background: #e0a800;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.btn-widget.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-widget.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 576px) {
    .climate-widget-container {
        max-width: 100%;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
    }

    .climate-widget-card {
        padding: 0.85rem 1rem;
    }

    .widget-title {
        font-size: 0.85rem;
    }

    .widget-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .btn-widget {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .widget-actions {
        gap: 0.35rem;
    }
}
