/**
 * Public CSS for TheMaker Content Automation
 *
 * @package TheMakerContentAutomation
 */

/* AI Content Attribution */
.tmca-attribution {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    border-radius: 0 4px 4px 0;
}

/* AI Content Notice */
.tmca-ai-notice {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

.tmca-ai-notice strong {
    color: #0073aa;
}

/* Subscription Status Shortcode */
.tmca-subscription-status {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tmca-subscription-status h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #1e1e1e;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.tmca-subscription-status p {
    margin: 8px 0;
    font-size: 14px;
}

.tmca-subscription-status strong {
    color: #1e1e1e;
    font-weight: 600;
}

/* Content Generation Form (if displayed on frontend) */
.tmca-frontend-form {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tmca-frontend-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e1e1e;
    font-size: 20px;
}

.tmca-form-field {
    margin-bottom: 16px;
}

.tmca-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1e1e1e;
    font-size: 14px;
}

.tmca-form-field input,
.tmca-form-field textarea,
.tmca-form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.tmca-form-field input:focus,
.tmca-form-field textarea:focus,
.tmca-form-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.tmca-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Loading Spinner */
.tmca-loading {
    text-align: center;
    padding: 20px;
}

.tmca-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: tmca-spin 1s linear infinite;
}

@keyframes tmca-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.tmca-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tmca-btn:hover {
    background: #005a87;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.tmca-btn:active {
    transform: translateY(0);
}

.tmca-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.tmca-btn-secondary {
    background: #6c757d;
}

.tmca-btn-secondary:hover {
    background: #545b62;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tmca-subscription-status,
    .tmca-frontend-form {
        margin: 16px 0;
        padding: 16px;
    }
    
    .tmca-form-field input,
    .tmca-form-field textarea,
    .tmca-form-field select {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* WordPress Theme Compatibility */
.entry-content .tmca-ai-notice,
.entry-content .tmca-attribution,
.entry-content .tmca-subscription-status {
    max-width: none;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tmca-spinner {
        border-width: 1px;
    }
}
