/**
 * Frontend styles for Blank Plugin Template
 *
 * @package BlankPluginTemplate
 */

/* Modal Styles */
.ateko-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ateko-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.ateko-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 0 auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.ateko-modal.show .ateko-modal-dialog {
    transform: scale(1);
}

.ateko-modal-content {
    background: var(--wp--preset--color--clay);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.ateko-modal-body {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.ateko-modal h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.ateko-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    min-height: 200px;
    margin-bottom: 1rem;
    background: #fff;
}

.ateko-modal textarea:focus {
    outline: none;
    /* border-color: #0073aa; */
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.ateko-modal .form-check {
    margin-bottom: 1.5rem;
}

.ateko-modal .form-check-input {
    margin-right: 8px;
    transform: scale(1.1);
}

.ateko-modal .form-check-label {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.ateko-modal .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 1.5rem;
}


/* Close button */
.ateko-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ateko-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ateko-modal .wp-block-buttons .wp-block-button.is-style-outline button {
    border:1px solid;
    border-color: #000;
    color: #000;
    background: transparent;
}

/* Responsive design */
@media (max-width: 768px) {
    
    .ateko-modal-dialog {
        width: 95%;
        margin: 20px auto;
    }
    
    .ateko-modal-body {
        padding: 1.5rem;
    }
    
    .ateko-modal .button-group {
        flex-direction: column;
    }
    
    .ateko-modal .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ateko-modal-body {
        padding: 1rem;
    }
    
    .ateko-modal h2 {
        font-size: 1.25rem;
    }
    
    .ateko-modal textarea {
        font-size: 11px;
        min-height: 150px;
    }
}
