/**
 * PyziPyzi - Modal Announcement Styles
 * Elegancki modalbox z ogłoszeniami
 */

/* ============================================
   OVERLAY (ściemnione tło)
   ============================================ */
.pz-announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pz-announcement-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MODAL BOX
   ============================================ */
.pz-announcement-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 35px 30px 30px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.pz-announcement-overlay.is-visible .pz-announcement-box {
    transform: scale(1) translateY(0);
}

/* ============================================
   PRZYCISK ZAMKNIĘCIA (X)
   ============================================ */
.pz-announcement-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pz-announcement-close:hover {
    background: #ef6341;
    color: #fff;
    transform: rotate(90deg);
}

/* ============================================
   TYTUŁ
   ============================================ */
.pz-announcement-title {
    font-size: 24px;
    font-weight: 700;
    color: #5e341c;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.3;
}

/* Emoji/ikona przed tytułem (opcjonalne) */
.pz-announcement-title::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #ef6341 0%, #d94f2e 100%);
    border-radius: 50%;
    /* Można dodać ikonę jako background-image */
}

/* ============================================
   TREŚĆ
   ============================================ */
.pz-announcement-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.pz-announcement-content p {
    margin: 0 0 10px 0;
}

.pz-announcement-content p:last-child {
    margin-bottom: 0;
}

.pz-announcement-content strong {
    color: #5e341c;
}

.pz-announcement-content a {
    color: #ef6341;
    text-decoration: underline;
}

.pz-announcement-content a:hover {
    color: #d94f2e;
}

/* ============================================
   LINKI / PRZYCISKI CTA
   ============================================ */
.pz-announcement-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pz-modal-link-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ef6341 0%, #d94f2e 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 99, 65, 0.3);
}

.pz-modal-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 99, 65, 0.4);
    background: linear-gradient(135deg, #d94f2e 0%, #c74428 100%);
}

/* Drugi link - styl outline */
.pz-announcement-links .pz-modal-link-btn:nth-child(2) {
    background: transparent;
    border: 2px solid #ef6341;
    color: #ef6341 !important;
    box-shadow: none;
}

.pz-announcement-links .pz-modal-link-btn:nth-child(2):hover {
    background: #ef6341;
    color: #fff !important;
}

/* ============================================
   PRZYCISK ZAMKNIĘCIA (dolny)
   ============================================ */
.pz-announcement-dismiss {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
}

.pz-announcement-dismiss:hover {
    color: #666;
}

/* ============================================
   RESPONSYWNOŚĆ - MOBILE
   ============================================ */
@media (max-width: 600px) {
    .pz-announcement-overlay {
        padding: 15px;
        align-items: flex-end; /* Modal na dole ekranu na mobile */
    }
    
    .pz-announcement-box {
        padding: 30px 20px 25px;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .pz-announcement-title {
        font-size: 20px;
    }
    
    .pz-announcement-title::before {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .pz-announcement-content {
        font-size: 15px;
    }
    
    .pz-modal-link-btn {
        padding: 16px 24px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    .pz-announcement-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* ============================================
   ANIMACJA WEJŚCIA
   ============================================ */
@keyframes pz-modal-shake {
    0%, 100% { transform: scale(1) translateY(0); }
    10% { transform: scale(1.02) translateY(-2px); }
    20% { transform: scale(1) translateY(0); }
}

.pz-announcement-overlay.is-visible .pz-announcement-box {
    animation: pz-modal-shake 0.5s ease 0.3s;
}

/* ============================================
   UKRYWANIE IKONY (jeśli nie potrzebna)
   ============================================ */
.pz-announcement-box.no-icon .pz-announcement-title::before {
    display: none;
}

/* ============================================
   DARK MODE (opcjonalne)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Zachowaj jasny modal nawet w dark mode dla lepszej widoczności */
}