/**
 * style.css — voice2video Web版 スタイルシート
 * ==============================================
 * ダークテーマ、YouTube風デザイン
 */

/* --- リセット & ベース --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #6c9fff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- コンテナ --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* --- ヘッダー --- */
.header {
    text-align: center;
    margin-bottom: 40px;
}
.header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4a9eff, #b06cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle {
    color: #888;
    margin-top: 8px;
    font-size: 1rem;
}

/* --- ドロップゾーン --- */
.drop-zone {
    border: 3px dashed #333;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.05);
}
.drop-zone__icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.drop-zone__text {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 8px;
}
.drop-zone__hint {
    color: #666;
    font-size: 0.9rem;
}
.drop-zone.has-file {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}
.drop-zone.has-file .drop-zone__icon::after {
    content: " ✅";
}

/* --- オプションパネル --- */
.options-panel {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid #222;
}
.options-panel h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.options-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #aaa;
    font-size: 0.9rem;
}
.options-grid input[type="number"],
.options-grid select {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a2e;
    color: #fff;
    font-size: 1rem;
}
.options-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}
.options-grid label:last-child {
    flex-direction: row;
    align-items: center;
    grid-column: 1 / -1;
}

/* --- ファイルサイズ警告 --- */
.drop-zone__warning {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 6px;
    color: #ffaa00;
    font-size: 0.85rem;
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}
.btn-primary {
    background: linear-gradient(135deg, #4a9eff, #6c63ff);
    color: #fff;
    width: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- 進捗セクション --- */
.progress-section {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid #222;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.progress-header h3 {
    margin: 0;
}
.elapsed-timer {
    display: flex;
    gap: 16px;
    font-family: monospace;
    font-size: 0.9rem;
}
.elapsed-total {
    color: #4a9eff;
    font-weight: bold;
}
.elapsed-step {
    color: #888;
}
.progress-section h3 {
    margin-bottom: 16px;
}
.progress-bar {
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #6c63ff);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #666;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s;
}
.step.active {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.08);
    font-weight: bold;
}
.step.done {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
}
.step.error {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.08);
}
.progress-message {
    margin-top: 12px;
    color: #888;
    font-size: 0.9rem;
}

/* --- プロジェクト一覧 --- */
.projects-section {
    margin-top: 48px;
}
.projects-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.project-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #222;
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.project-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: #4a9eff;
    text-decoration: none;
}
.project-card__icon { font-size: 1.5rem; }
.project-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-card__info strong { color: #ddd; }
.project-card__info small { color: #666; }
.project-card__arrow { color: #4a9eff; font-size: 1.2rem; }

/* --- フッター --- */
.footer {
    margin-top: 64px;
    text-align: center;
    color: #444;
    font-size: 0.85rem;
    padding-top: 24px;
    border-top: 1px solid #1a1a2e;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
    .container { padding: 16px 12px; }
    .header h1 { font-size: 1.6rem; }
    .drop-zone { padding: 40px 16px; }
    .drop-zone__icon { font-size: 48px; }
    .options-grid { grid-template-columns: 1fr; }
    .controls { flex-wrap: wrap; }
    .slide-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
