/**
 * Topic Layout Block CSS
 * Styles for the block editor and frontend display
 */

/* Block Editor Styles */
.topic-layout-block-editor {
    margin: 20px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #007cba;
}

.topic-field-editable {
    background: #fff;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    min-width: 200px;
    display: inline-block;
}

.topic-field-editable:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* Save Button Styles */
.acf-save-button {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.acf-save-button:hover {
    background: #005a87;
}

.acf-save-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Editor Controls */
.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.editor-title {
    margin: 0;
    color: #007cba;
}

.sync-status {
    font-size: 0.9em;
    color: #666;
}

.sync-indicator {
    color: #46b450;
}

/* Input Fields */
.topic-date-input,
.topic-time-input {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
}

.topic-date-input:focus,
.topic-time-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* Select Fields */
select.topic-field-editable {
    min-width: 150px;
    padding: 5px 8px;
}

/* Form Layout */
.topics-section-editor {
    margin-top: 15px;
}

.topics-grid-editor {
    display: grid;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topic-layout-block-editor {
        padding: 15px;
        margin: 15px 0;
    }
    
    .editor-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .topic-field-editable {
        min-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}