/* CyberWars360 Buttons - WordPress Plugin CSS */

/* Enhanced button styling for WordPress */
.wp-block-button__link,
.button,
.btn,
input[type="button"],
input[type="submit"] {
    cursor: pointer !important;
    transition: all 0.3s ease-out !important;
}

.wp-block-button__link:hover,
.button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wp-block-button__link:active,
.button:active,
.btn:active,
input[type="button"]:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* Modal Styles */
.cw360-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cw360-modal.active {
    display: flex;
}

.cw360-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.cw360-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cw360-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cw360-modal-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.cw360-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.cw360-modal-body {
    color: #666;
    line-height: 1.6;
}

.cw360-modal-body h3,
.cw360-modal-body h4 {
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
}

.cw360-modal-body ul {
    margin: 15px 0 15px 20px;
    padding: 0;
}

.cw360-modal-body li {
    margin-bottom: 10px;
    list-style: disc;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cw360-modal-content {
        width: 95%;
        padding: 20px;
        border-radius: 8px;
    }
    
    .cw360-modal-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .cw360-modal-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cw360-modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 15px;
    }
    
    .cw360-modal-title {
        font-size: 18px;
    }
    
    .cw360-modal-body {
        font-size: 14px;
    }
}

/* Ensure buttons are clickable in WordPress */
.wp-block-buttons {
    pointer-events: auto;
}

.wp-block-button {
    pointer-events: auto;
}

.wp-block-button__link {
    pointer-events: auto;
}

/* Button accessibility */
.cw360-modal-close:focus,
.wp-block-button__link:focus,
.button:focus,
.btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
