/**
 * Locker Content - Postlock Styles
 */

/* Lock Container */
.lockerco-container.postlock-locker {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 25px;
    margin: 20px 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Icon */
.lockerco-container.postlock-locker .lockerco-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #0073aa;
}

.lockerco-container.postlock-locker .lockerco-icon i {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    display: inline-block;
}

/* Message */
.lockerco-container.postlock-locker .lockerco-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

/* Button */
.lockerco-container.postlock-locker .lockerco-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lockerco-container.postlock-locker .lockerco-button:hover {
    background-color: #005a87;
}

/* Modal */
.lockerco-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

.lockerco-modal.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.lockerco-modal.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.lockerco-modal-content {
    background-color: #fff;
    border-radius: 5px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.lockerco-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1;
}

.lockerco-close:hover {
    color: #333;
}

.lockerco-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

.lockerco-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.lockerco-modal-body {
    padding: 20px;
}

.lockerco-modal-message {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
}

/* Post Form Styles */
.lockerco-post-form {
    margin-bottom: 20px;
}

.lockerco-form-row {
    margin-bottom: 15px;
}

.lockerco-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.lockerco-post-title {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.lockerco-post-content {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 150px;
}

.lockerco-post-title:focus,
.lockerco-post-content:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Character Count */
.lockerco-character-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Guidelines */
.lockerco-guidelines {
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 15px 0;
}

.lockerco-guidelines h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.lockerco-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.lockerco-guidelines li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #444;
}

/* Error and Success Messages */
.lockerco-error-message {
    color: #d63638;
    margin: 10px 0;
    font-size: 14px;
    min-height: 20px;
    padding: 5px 0;
}

.lockerco-error-message.success {
    color: #00a32a;
}

/* Modal Footer */
.lockerco-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    background-color: #f9f9f9;
    position: sticky;
    bottom: 0;
}

/* Submit Button */
.lockerco-submit-wrapper {
    display: flex;
    align-items: center;
}

.lockerco-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lockerco-button:hover {
    background-color: #005a87;
}

.lockerco-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Instructions Note */
.lockerco-note {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Loader styles */
.lockerco-loader {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.lockerco-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: lockerco-spin 0.8s linear infinite;
}

@keyframes lockerco-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .lockerco-modal-content {
        width: 95%;
        max-height: 80vh;
    }
    
    .lockerco-modal-header,
    .lockerco-modal-body,
    .lockerco-modal-footer {
        padding: 15px;
    }
    
    .lockerco-post-content {
        min-height: 120px;
    }
}