/* Status Balonów - Style */

/* Pasek górny - kompaktowy */
.balon-status-topbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.balon-status-topbar .status-text {
    font-weight: 500;
}

.balon-status-topbar.flying .status-text {
    color: #22c55e;
}

.balon-status-topbar.pending .status-text {
    color: #3b82f6;
}

.balon-status-topbar.grounded .status-text {
    color: #ef4444;
}

.balon-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.balon-status-dot.green-dot {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.balon-status-dot.blue-dot {
    background-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.balon-status-dot.red-dot {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.balon-status-topbar .status-link {
    color: #1189d0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s;
}

.balon-status-topbar .status-link:hover {
    opacity: 0.8;
}

.balon-status-topbar .arrow-right {
    font-style: normal;
    font-size: 16px;
}

/* Pełny komunikat */
.balon-status-full {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
}

.balon-status-full .status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.balon-status-full .status-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.balon-status-full.flying .status-title {
    color: #22c55e;
}

.balon-status-full.grounded .status-title {
    color: #ef4444;
}

.balon-status-full .status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.balon-status-full .status-indicator.green-dot {
    background-color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.balon-status-full .status-indicator.blue-dot {
    background-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.balon-status-full .status-indicator.red-dot {
    background-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.balon-status-full .status-details {
    font-size: 16px;
    line-height: 1.6;
}

/* Data komunikatu */
.balon-status-full .status-date {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.balon-status-full .status-date p {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

/* Informacje pogodowe */
.balon-status-full .weather-info {
    margin-bottom: 20px;
}

.balon-status-full .weather-info p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
}

.balon-status-full .weather-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.balon-status-full .weather-info li {
    padding: 8px 0;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.balon-status-full .weather-info li:last-child {
    border-bottom: none;
}

/* Powody wstrzymania */
.balon-status-full .grounded-reason {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.balon-status-full .grounded-reason p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #991b1b;
}

.balon-status-full .grounded-reason ul {
    margin: 0;
    padding-left: 20px;
    color: #dc2626;
}

.balon-status-full .grounded-reason li {
    margin-bottom: 5px;
}

/* Informacja o lataniu */
.balon-status-full .flying-info {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.balon-status-full .flying-info p {
    margin: 0 0 10px 0;
    color: #166534;
}

.balon-status-full .flying-info p:first-child {
    font-weight: 600;
}

.balon-status-full .flying-info ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #15803d;
}

.balon-status-full .flying-info li {
    margin-bottom: 5px;
}

/* Mapy pogodowe */
.balon-status-full .weather-maps {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.balon-status-full .weather-maps h3 {
    margin-top: 0;
    color: #334155;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.balon-status-full .weather-maps h4 {
    margin: 20px 0 10px 0;
    color: #475569;
    font-size: 18px;
}

.balon-status-full .weather-maps .map-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.balon-status-full .meteoblue-widget-container,
.balon-status-full .wind-widget-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.balon-status-full .meteoblue-credit {
    text-align: right;
    margin-top: 10px;
}

.balon-status-full .meteoblue-credit a {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
}

.balon-status-full .meteoblue-credit a:hover {
    text-decoration: underline;
}

/* Stopka */
.balon-status-full .status-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
}

/* Ważne informacje */
.balon-status-full .important-info {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.balon-status-full .important-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #334155;
    font-size: 22px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 12px;
}

.balon-status-full .info-box {
    background: white;
    padding: 18px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.balon-status-full .info-box:last-child {
    margin-bottom: 0;
}

.balon-status-full .info-box p {
    margin: 0;
    line-height: 1.7;
    color: #475569;
    font-size: 15px;
}

.balon-status-full .info-box.certificate {
    border-left-color: #0073aa;
    background: #eff6ff;
}

.balon-status-full .info-box.certificate p {
    color: #1e40af;
    font-weight: 600;
}

.balon-status-full .info-box.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.balon-status-full .info-box.warning p {
    color: #92400e;
    font-weight: 500;
}

.balon-status-full .info-box.contact {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.balon-status-full .info-box.contact p {
    color: #166534;
    font-weight: 600;
    font-size: 16px;
}

.balon-status-full .info-box.contact a {
    color: #15803d;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.balon-status-full .info-box.contact a:hover {
    text-decoration: underline;
}

.balon-status-full .info-box.conditions {
    border-left-color: #64748b;
    background: #f8fafc;
}

.balon-status-full .info-box.conditions p {
    color: #334155;
    line-height: 1.8;
}

.balon-status-full .last-update {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 5px 0;
}

.balon-status-full .auto-refresh-info {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 10px 0;
    font-style: italic;
}

.balon-status-full .communication-info {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.6;
}

/* Komunikat błędu */
.balon-status-error {
    background-color: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
    color: #991b1b;
    text-align: center;
    font-weight: 600;
}

/* Responsywność */
@media (max-width: 768px) {
    .balon-status-full {
        padding: 20px 15px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .balon-status-full .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .balon-status-full .status-title {
        font-size: 24px;
    }
    
    .balon-status-full .status-details {
        font-size: 15px;
    }
    
    .balon-status-full .weather-info ul {
        padding-left: 15px;
    }
    
    .balon-status-full .weather-info li {
        font-size: 14px;
    }
    
    .balon-status-full .weather-maps {
        padding: 15px;
        margin: 20px 0;
    }
    
    .balon-status-full .weather-maps h3 {
        font-size: 18px;
    }
    
    .balon-status-full .weather-maps iframe {
        height: 350px !important;
    }
    
    .balon-status-full .important-info {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .balon-status-full .important-info h3 {
        font-size: 19px;
        margin-bottom: 15px;
    }
    
    .balon-status-full .info-box {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .balon-status-full .info-box p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .balon-status-full .info-box.contact p {
        font-size: 15px;
    }
    
    .balon-status-full .info-box.contact a {
        font-size: 17px;
        display: block;
        margin-top: 5px;
    }
    
    .balon-status-topbar {
        font-size: 13px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .balon-status-full {
        padding: 15px 12px;
    }
    
    .balon-status-full .status-title {
        font-size: 20px;
    }
    
    .balon-status-full .important-info {
        padding: 15px 12px;
    }
    
    .balon-status-full .info-box {
        padding: 12px;
        font-size: 13px;
    }
    
    .balon-status-full .info-box p {
        font-size: 13px;
    }
    
    .balon-status-full .weather-maps iframe {
        height: 300px !important;
    }
}

/* Integracja z Elementorem */
.elementor-widget-container .balon-status-topbar {
    width: 100%;
}

.elementor-widget-container .balon-status-full {
    width: 100%;
    max-width: 100%;
}

/* Animacja ładowania */
.balon-status-loading {
    opacity: 0.6;
    pointer-events: none;
}

.balon-status-loading::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1189d0;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
