/* AI Chat Interface Styles */
#ai-chat-interface-root {
    max-width: 800px;
    margin: 20px auto;
    /* Removed border and box-shadow */
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ai-chat-step {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ai-chat-step:last-child {
    border-bottom: none;
}

.ai-chat-step h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 1.3em;
}

/* Step 1: Chat Input */
.ai-chat-input-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #eee;
}

.ai-chat-input-container textarea {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    min-height: 100px;
    resize: none;
    outline: none;
    box-shadow: none;
}

.ai-chat-input-container textarea:focus {
    box-shadow: none;
    border: none;
}

.ai-chat-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.ai-chat-actions #ai-generate-btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
}

/* Generated Content Fields */
.ai-generated-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ai-field-group {
    margin-bottom: 15px;
}

.ai-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.ai-field-group input[type="text"],
.ai-field-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ai-field-group input[type="text"]:focus,
.ai-field-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Category Selection */
.ai-category-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    border-radius: 3px;
}

.ai-category-item {
    margin-bottom: 5px;
}

/* Expiration Date */
.ai-expiration-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Media Uploads */
.ai-media-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ai-media-box {
    border: 1px dashed #ccc;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    background: #fafafa;
}

.ai-media-preview {
    margin-top: 10px;
    max-height: 150px;
    overflow: hidden;
}

.ai-media-preview img,
.ai-media-preview video {
    max-width: 100%;
    height: auto;
}

/* FS Poster Fields */
/* FS Poster Fields */
.ai-fs-poster-fields {
    /* Removed box styling */
    margin-top: 20px;
}

/* Buttons */
.ai-btn {
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.ai-btn-primary {
    background: #2271b1;
    color: #fff;
}

.ai-btn-primary:hover {
    background: #135e96;
}

.ai-btn-secondary {
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.ai-btn-secondary:hover {
    background: #f0f0f1;
}

.ai-btn-success {
    background: #00a32a;
    color: #fff;
}

.ai-btn-success:hover {
    background: #008a20;
}

/* Loading Spinner */
.ai-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: ai-spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 10px;
}

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

/* Responsive */
@media (max-width: 600px) {
    .ai-media-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 3 Styling */
.ai-step-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ai-step-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    color: #23282d;
    font-size: 1.1em;
}

.ai-step-content h4:first-child {
    margin-top: 0;
}

.ai-step-content .ai-field-group {
    margin-bottom: 20px;
}

.ai-submitter-info {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
}

/* Hide Titles on Frontend */
.entry-title,
.main_title {
    display: none !important;
}