/**
 * Frontend Styles - Basit ve Temiz
 */

/* Editor Wrapper */
.aiwid-editor-wrapper {
    margin: 30px 0;
}

/* Split Layout */
.aiwid-editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .aiwid-editor-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Canvas Pane */
.aiwid-canvas-pane {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.aiwid-canvas-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aiwid-canvas-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: auto;
    max-height: 600px;
}

.aiwid-canvas-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Form Pane */
.aiwid-form-pane {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
}

.aiwid-form-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.aiwid-form-header h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}

.aiwid-form-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Fields List */
.aiwid-fields-list {
    margin-bottom: 25px;
}

.aiwid-field {
    margin-bottom: 18px;
}

.aiwid-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.aiwid-required {
    color: #e74c3c;
    margin-left: 3px;
}

.aiwid-field-input,
.aiwid-field-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.aiwid-field-input:focus,
.aiwid-field-textarea:focus {
    outline: none;
    border-color: #5b32d6;
    box-shadow: 0 0 0 3px rgba(91, 50, 214, 0.1);
}

.aiwid-field-input.error,
.aiwid-field-textarea.error {
    border-color: #e74c3c;
}

/* Cart Section */
.aiwid-cart-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-top: 25px;
}

.aiwid-quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.aiwid-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 50px;
}

.aiwid-quantity-row input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Notice */
.aiwid-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #155724;
}

/* Buttons */
.aiwid-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .aiwid-buttons {
        grid-template-columns: 1fr;
    }
}

.aiwid-btn-save,
.aiwid-btn-cart {
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: none !important;
}

.aiwid-btn-save {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.aiwid-btn-save:hover {
    background: #e0e0e0 !important;
}

.aiwid-btn-cart {
    background: #5b32d6 !important;
    color: white !important;
}

.aiwid-btn-cart:hover {
    background: #4a28b0 !important;
}

.aiwid-btn-cart:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* Responsive */
@media (max-width: 768px) {
    .aiwid-form-pane {
        padding: 15px;
    }

    .aiwid-canvas-pane {
        padding: 15px;
    }
}
