/* ========================================
   POPUP OVERLAY & CONTAINER
   ======================================== */

.pisarze-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    animation: fadeIn 0.3s ease-in-out;
}

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

.pisarze-popup-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 540px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    margin: 20px;
}

/* ========================================
   PRZYCISK ZAMKNIĘCIA
   ======================================== */

.pisarze-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
}

.pisarze-popup-close:hover {
    color: #333;
    transform: scale(1.1);
}

/* ========================================
   ZAWARTOŚĆ POPUP
   ======================================== */

.pisarze-popup-content {
    padding: 50px 40px 40px;
    text-align: center;
}

.pisarze-popup-icon {
    color: #e74c3c;
    margin-bottom: 25px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.pisarze-popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
    line-height: 1.3;
}

.pisarze-popup-text {
    font-size: 19px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 30px;
}

/* ========================================
   PRZYCISKI
   ======================================== */

.pisarze-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 18px 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    margin-bottom: 15px;
}

.pisarze-popup-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
}

.pisarze-popup-later {
    display: block;
    width: 100%;
    background: transparent;
    color: #7f8c8d;
    border: none;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.pisarze-popup-later:hover {
    color: #555;
}

/* ========================================
   FLOATER W ROGU
   ======================================== */

.pisarze-floater {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999998;
    animation: slideInRight 0.5s ease-out;
}

.pisarze-floater-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pisarze-floater-link:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
    color: white;
}

.pisarze-floater-link svg {
    flex-shrink: 0;
}

/* ========================================
   ANIMACJE
   ======================================== */

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

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

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */

@media (max-width: 768px) {
    .pisarze-popup-container {
        width: 95%;
        margin: 10px;
    }
    
    .pisarze-popup-content {
        padding: 40px 25px 30px;
    }
    
    .pisarze-popup-title {
        font-size: 26px;
    }
    
    .pisarze-popup-text {
        font-size: 17px;
    }
    
    .pisarze-popup-button {
        font-size: 18px;
        padding: 16px 30px;
    }
    
    .pisarze-floater {
        bottom: 20px;
        right: 20px;
    }
    
    .pisarze-floater-link {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .pisarze-popup-title {
        font-size: 24px;
    }
    
    .pisarze-popup-text {
        font-size: 16px;
    }
    
    .pisarze-popup-button {
        font-size: 17px;
        padding: 14px 25px;
    }
    
    .pisarze-floater-link span {
        display: none;
    }
    
    .pisarze-floater-link {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}
