/**
 * ITnes Custom Popup Styles
 */

/* Overlay - tło popup */
.itnes-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.itnes-popup-overlay.active {
    display: flex;
}

/* Container popup */
.itnes-popup-container {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 90%;
    max-height: 90vh;
    animation: slideIn 0.3s ease-out;
}

/* Przycisk zamknięcia */
.itnes-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.itnes-popup-close:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Treść popup */
.itnes-popup-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 90vh;
}

/* Obrazek w popup */
.itnes-popup-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* HTML w popup */
.itnes-popup-html {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.itnes-popup-html h1,
.itnes-popup-html h2,
.itnes-popup-html h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.itnes-popup-html p {
    margin-bottom: 15px;
}

.itnes-popup-html a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.itnes-popup-html a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.itnes-popup-html img {
    max-width: 100%;
    height: auto;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .itnes-popup-container {
        max-width: 95%;
        margin: 10px;
    }
    
    .itnes-popup-content {
        padding: 15px;
    }
    
    .itnes-popup-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .itnes-popup-container {
        max-width: 100%;
        border-radius: 8px;
        margin: 5px;
    }
    
    .itnes-popup-content {
        padding: 10px;
    }
    
    .itnes-popup-html {
        font-size: 14px;
    }
}
