/* add-post-form.css */
/* 投稿追加フォーム用スタイル */

/* Fantia風投稿フォームスタイル */
.purimall-post-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
}

.form-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ec4899;
}

.fantia-style-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.form-section {
  border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
  border-bottom: none;
}

.section-header {
  background: #f8f9fa;
  color: #333;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #dee2e6;
}

.section-content {
  padding: 20px;
}

.info-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.info-box i {
  margin-right: 8px;
  color: #17a2b8;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
}

.form-label.optional::after {
  content: " (任意)";
  color: #6c757d;
  font-weight: normal;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.25);
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.plan-select {
  height: 120px;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

.file-upload-area {
  width: 100%;
  max-width: 400px;
  margin-bottom: 15px;
}

.upload-zone {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: #ec4899;
  background: #f8f9fa;
}

.upload-zone i {
  font-size: 48px;
  color: #6c757d;
  margin-bottom: 10px;
}

.upload-zone p {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.upload-zone small {
  color: #6c757d;
  font-size: 12px;
}

.form-option {
  margin-top: 10px;
}

.form-option label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.form-option input[type="checkbox"] {
  margin-right: 8px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}

.media-button {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.media-button:hover {
  background: #2563eb;
}

.editor-note {
  color: #6c757d;
  font-size: 12px;
  font-style: italic;
}

.editor-container {
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
}

.editor-footer {
  background: #f8f9fa;
  padding: 15px;
  border-top: 1px solid #dee2e6;
}

.editor-info {
  margin-bottom: 10px;
}

.editor-info p {
  margin: 5px 0;
  font-size: 12px;
  color: #dc3545;
}

.char-limit {
  font-size: 12px;
  color: #6c757d;
  text-align: right;
}

.tag-info {
  margin-top: 10px;
}

.tag-info p {
  margin: 5px 0;
  font-size: 12px;
  color: #6c757d;
}

.limited-content-options {
  text-align: center;
}

.content-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.option-icon {
  font-size: 48px;
}

.option-content h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

.option-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.content-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.content-type-btn {
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #333;
}

.content-type-btn:hover {
  border-color: #ec4899;
  background: #f8f9fa;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

.plan-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  background: #f8f9fa;
}

.agreement-section {
  border-top: 1px solid #dee2e6;
  padding-top: 20px;
  margin-top: 20px;
}

.agreement-links {
  margin-top: 15px;
  text-align: center;
}

.agreement-links p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.agreement-link {
  display: inline-block;
  margin: 0 10px;
  color: #007bff;
  text-decoration: none;
}

.agreement-link:hover {
  text-decoration: underline;
}

.warning-section {
  margin-top: 20px;
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 15px;
}

.warning-box h4 {
  margin: 0 0 10px 0;
  color: #856404;
}

.warning-box ul {
  margin: 0;
  padding-left: 20px;
}

.warning-box li {
  margin-bottom: 5px;
  color: #856404;
  font-size: 12px;
}

.warning-box a {
  color: #007bff;
  text-decoration: none;
}

.warning-box a:hover {
  text-decoration: underline;
}

.form-actions {
  padding: 30px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.submit-btn {
  background: #ec4899;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #db2777;
}

.cancel-btn {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.cancel-btn:hover {
  background: #5a6268;
}

/* エディター改善スタイル */
.wp-editor-wrap .wp-editor-container {
  border: none;
  border-radius: 0;
}

.wp-editor-wrap iframe,
.wp-editor-wrap textarea {
  min-height: 300px !important;
}

.wp-editor-wrap img,
.mce-content-body img {
  max-width: 100% !important;
  height: auto !important;
}

.wp-editor-wrap video,
.mce-content-body video {
  max-width: 100% !important;
  height: auto !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .purimall-post-form {
    padding: 10px;
  }
  
  .section-content {
    padding: 15px;
  }
  
  .content-type-grid {
    grid-template-columns: 1fr;
  }
  
  .content-option {
    flex-direction: column;
    text-align: center;
  }
  
  .option-icon {
    font-size: 36px;
  }
  
  .form-actions {
    padding: 20px;
  }
}

/* エージェント用投稿者選択セクション */
.add-post-form-agent-section {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  margin-bottom: 1em;
}

.add-post-form-agent-header {
  padding: 1em;
  background: #0ea5e9;
  color: white;
  font-weight: bold;
}

.add-post-form-agent-header i {
  margin-right: 8px;
}

.add-post-form-agent-content {
  padding: 1em;
}

.add-post-form-agent-content small {
  color: #6b7280;
}

/* アイキャッチ画像プレビュー */
.thumbnail-preview-container {
  display: none;
  margin-top: 15px;
}

.thumbnail-preview-container img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 10px;
}

/* アップロード進捗表示 */
.upload-progress-container {
  margin-top: 8px;
  display: none;
}

.upload-progress-bar-container {
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.upload-progress-bar {
  background: #28a745;
  height: 20px;
  width: 0%;
  transition: width 0.3s;
}

.upload-progress-text {
  margin-top: 4px;
  font-size: 12px;
  color: #6c757d;
}

/* メディア行 */
.media-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* インラインスタイルの置き換え用クラス */
.add-post-form-inline-style-1 {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  margin-bottom: 1em;
}

.add-post-form-inline-style-2 {
  padding: 1em;
  background: #0ea5e9;
  color: white;
  font-weight: bold;
}

.add-post-form-inline-style-3 {
  padding: 1em;
}

.add-post-form-inline-style-4 {
  color: #6b7280;
}

.add-post-form-inline-style-5 {
  display: none;
  margin-top: 15px;
}

.add-post-form-inline-style-6 {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-post-form-inline-style-7 {
  margin-top: 10px;
}

.add-post-form-inline-style-8 {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.add-post-form-inline-style-9 {
  display: none;
}

.add-post-form-inline-style-10 {
  margin-top: 8px;
  display: none;
}

.add-post-form-inline-style-11 {
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.add-post-form-inline-style-12 {
  background: #28a745;
  height: 20px;
  width: 0%;
  transition: width 0.3s;
}

.add-post-form-inline-style-13 {
  margin-top: 4px;
  font-size: 12px;
  color: #6c757d;
}

.add-post-form-inline-style-14 {
  color: #ffc107;
  margin-right: 5px;
}

