/**
 * Countdown Timer & Newsletter Popup Styles
 * Uniwersalne style dla index.html i wszystkich podstron
 */

/* ============================================
   STATUS DOT - INACTIVE STATE
   ============================================ */

.status-dot.inactive {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
    }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.countdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
}

.countdown-value {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    font-family: 'Source Code Pro', Monaco, Consolas, monospace;
}

/* ============================================
   NEWSLETTER POPUP
   ============================================ */

.newsletter-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.newsletter-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-popup {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   POPUP ELEMENTS
   ============================================ */

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.popup-icon svg {
    width: 36px;
    height: 36px;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 12px;
}

.popup-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.popup-countdown {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    border: 2px solid #fbbf24;
}

.popup-countdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.popup-countdown-value {
    font-size: 24px;
    font-weight: 700;
    color: #78350f;
    font-family: 'Source Code Pro', Monaco, Consolas, monospace;
}

/* ============================================
   NEWSLETTER FORM
   ============================================ */

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-submit {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.3);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.popup-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.popup-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.popup-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .newsletter-popup {
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .countdown-timer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .countdown-value {
        font-size: 14px;
    }
    
    .popup-countdown-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .newsletter-popup {
        padding: 24px 16px;
        width: 95%;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-subtitle {
        font-size: 14px;
    }
    
    .popup-icon {
        width: 56px;
        height: 56px;
    }
    
    .popup-icon svg {
        width: 28px;
        height: 28px;
    }
}
