/**
 * BARF Popup Styles
 */

/* Overlay */
#barf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Container */
#barf-popup-container {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

/* Close button */
#barf-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    color: #666;
    transition: color 0.2s ease, transform 0.2s ease;
}

#barf-popup-close:hover {
    color: #000;
    transform: rotate(90deg);
}

#barf-popup-close span {
    display: block;
}

/* Content */
#barf-popup-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

#barf-popup-content h1,
#barf-popup-content h2,
#barf-popup-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
}

#barf-popup-content p {
    margin-bottom: 15px;
}

#barf-popup-content a {
    color: #0073aa;
    text-decoration: underline;
}

#barf-popup-content a:hover {
    color: #005177;
}

#barf-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    #barf-popup-container {
        width: 95%;
        padding: 35px 20px 20px;
        max-height: 90vh;
    }

    #barf-popup-content {
        font-size: 14px;
    }
}
