/* Kitchen Reno Estimator - WordPress Plugin Styles */

/* 基本設定 */
.kitchen-reno-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ヘッダー */
.kitchen-reno-header {
    text-align: center;
    margin-bottom: 40px;
}

.kitchen-reno-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

/* イントロセクション */
.kitchen-reno-intro {
    margin-bottom: 40px;
}

/* グラデーション背景 */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* フォームステップ表示制御 */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* 写真アップロード関連 */
.photo-upload-area {
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: #667eea;
    background-color: #f9fafb;
}

.photo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .kitchen-reno-wrapper {
        padding: 10px;
    }
    
    .step-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .object-grid {
        grid-template-columns: 1fr;
    }
}

/* テーマ: デフォルト */
.kitchen-reno-theme-default {
    /* デフォルトスタイル（既存のTailwindクラスを使用） */
}

/* テーマ: ミニマル */
.kitchen-reno-theme-minimal .kitchen-reno-header {
    display: none;
}

.kitchen-reno-theme-minimal .kitchen-reno-intro {
    padding: 10px 0;
}

.kitchen-reno-theme-minimal .step-title {
    font-size: 16px;
}

/* コンパクトモード */
.kitchen-reno-compact .form-container {
    padding: 15px;
}

.kitchen-reno-compact .field-group {
    margin-bottom: 15px;
}

.kitchen-reno-compact .step-item {
    padding: 15px;
}

/* WordPress管理画面との調和 */
.wp-admin .kitchen-reno-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* プログレスバー */
.progress-bar-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 8px;
    margin-bottom: 24px;
}

.progress-bar {
    background-color: #ec4899;
    height: 8px;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* フィールドスタイル */
.field-input, .field-select, .field-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

/* ラジオボタン・チェックボックス */
.radio-grid, .checkbox-list {
    display: grid;
    gap: 12px;
}

.radio-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-item:hover, .checkbox-item:hover {
    background-color: #fdf2f8;
    border-color: #ec4899;
}

.radio-item input, .checkbox-item input {
    margin-right: 12px;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #ec4899;
    color: white;
}

.btn-primary:hover {
    background-color: #db2777;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-photo {
    background-color: #3b82f6;
    color: white;
    width: 100%;
}

.btn-photo:hover {
    background-color: #2563eb;
}

/* ナビゲーション */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.nav-spacer {
    flex: 1;
}

/* 写真撮影ステップ */
.photo-steps {
    display: grid;
    gap: 20px;
}

.photo-step-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.photo-step-card.completed {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.step-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 16px;
}

.step-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-number {
    background-color: #ec4899;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

.required-badge {
    background-color: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.optional-badge {
    background-color: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.photo-tips {
    display: flex;
    align-items: flex-start;
    background-color: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
}

.photo-tips i {
    color: #3b82f6;
    margin-top: 2px;
    margin-right: 12px;
}

/* AI解析結果 */
.analysis-results {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
}

.analysis-header {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.analysis-header i {
    margin-right: 8px;
}

/* サマリー */
.photo-summary {
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.photo-summary h6 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.photo-summary h6 i {
    margin-right: 8px;
}

/* エラーメッセージ */
.error-message {
    background-color: #fef2f2;
    border: 1px solid: #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.error-message h5 {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-message ul {
    color: #b91c1c;
    margin: 0;
}

/* 情報ボックス */
.ai-assist-info {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-content {
    display: flex;
    align-items: flex-start;
}

.info-content i {
    font-size: 24px;
    margin-right: 16px;
    margin-top: 4px;
}

.info-content h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.info-content ul {
    margin: 0;
    padding-left: 16px;
}

.info-content li {
    margin-bottom: 4px;
}

/* 基準物体選択 */
.object-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.object-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.object-item:hover {
    background-color: #fff7ed;
    border-color: #f59e0b;
}

.object-item input {
    margin-bottom: 8px;
}

.object-item i {
    font-size: 24px;
    color: #6b7280;
    margin-bottom: 8px;
}

.object-item span {
    font-size: 12px;
    font-weight: 500;
}

/* 詳細写真グリッド */
.detail-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-placeholder:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.photo-placeholder i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* ステップインジケーター */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.step-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.step-icon i {
    color: #ec4899;
}

.step-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.step-item p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

/* フォームコンテナ */
.form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* フォームフィールド */
.form-fields {
    display: grid;
    gap: 24px;
}

.field-group {
    display: grid;
    gap: 8px;
}

/* ステップタイトル */
.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #ec4899;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title i {
    font-size: 18px;
}

/* プログレスバー改善 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.step-counter {
    font-size: 14px;
    color: #6b7280;
}