/**
 * Blog Submission Form Styles
 * Based on Catalog Submission Form design
 *
 * @package templines-user-manager
 * @author Templines
 * @link https://templines.com
 */

/* Wrapper */


/* Login Required */
.tum-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tum-login-required p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.tum-login-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.tum-login-button:hover {
    background: #005a87;
    color: #fff;
}

/* Form Title */
.tum-form-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form Description */
.tum-form-description {
    margin: 0 0 24px;
    color: #666;
    line-height: 1.6;
}

/* Form Container */
.tum-blog-submission-form {
    border: 1px solid #e0e0e0;
    padding: 32px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .tum-blog-submission-form {
        padding: 20px;
    }
}

/* Form Groups */
.tum-form-group {
    margin-bottom: 20px;
}

.tum-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-size: 14px;
}

.tum-form-group label .required {
    color: #d63384;
    margin-left: 3px;
}

/* Form Controls */
.tum-form-control {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.tum-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

textarea.tum-form-control {
    resize: vertical;
    min-height: 120px;
}

/* Required Fields */
.tum-form-control[required] {
    border-left: 3px solid #d63384;
}

.tum-form-control[required]:valid {
    border-left: 3px solid #00a32a;
}

/* File Input */
input[type="file"].tum-form-control {
    padding: 10px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

input[type="file"].tum-form-control:hover {
    border-color: #0073aa;
    background: #f5f7ff;
}

/* Field Help Text */
.tum-field-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Categories List */
.tum-categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

@media (max-width: 768px) {
    .tum-categories-list {
        grid-template-columns: 1fr;
    }
}

.tum-checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: #fff;
}

.tum-checkbox-label:hover {
    background-color: #f8f9fa;
    border-color: #0073aa;
}

.tum-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.tum-checkbox-label input[type="checkbox"]:checked {
    accent-color: #0073aa;
}

/* Current Image Preview */
.tum-current-image {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tum-current-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* WordPress Editor */
.tum-form-group .wp-editor-wrap {
    margin-top: 8px;
}

.tum-form-group .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Form Actions */
.tum-form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Submit Button */
.tum-submit-button {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,115,170,0.2);
}

.tum-submit-button:hover {
    background: #005a87;
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
    transform: translateY(-1px);
}

.tum-submit-button:active {
    transform: translateY(0);
}

.tum-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Loader */
.tum-form-loader {
    color: #0073aa;
    font-size: 18px;
}

.tum-form-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.tum-form-messages {
    margin-top: 20px;
}

.tum-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

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

.tum-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.tum-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.tum-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

/* Error State for Invalid Fields */
.tum-field-error {
    border: 2px solid #d63384 !important;
    border-left: 4px solid #d63384 !important;
    background-color: #fff5f8 !important;
    animation: shake 0.5s;
}

.tum-field-error:focus {
    border-color: #d63384 !important;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.2) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 480px) {
    .tum-form-title {
        font-size: 20px;
    }

    .tum-submit-button {
        width: 100%;
        padding: 12px 20px;
    }

    .tum-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tum-form-loader {
        text-align: center;
    }
}

/* Removed Dark Mode - always use light theme */
