/* ============================================================================
 * YuMemo Core Next Plus - メインスタイル
 * ============================================================================
 * with型、Habitica型、TimeTree型、Headspace型の要素を取り入れた最小実装
 */

/* 共通スタイル */
.ymcnp-wizard, .ymcnp-board, .ymcnp-library, .ymcnp-community, .ymcnp-margin {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ウィザード - ステップ表示 */
.ymcnp-step {
    display: none;
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* with型カード - 8資産選択 */
.ymcnp-assets, .ymcnp-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ymcnp-asset-card, .ymcnp-mode-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.ymcnp-asset-card:hover, .ymcnp-mode-card:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ymcnp-asset-card.selected, .ymcnp-mode-card.selected {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.ymcnp-asset-card .icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

/* ボタン */
button, .ymcnp-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.ymcnp-next, .ymcnp-create, .ymcnp-btn-primary {
    background: #3B82F6;
    color: white;
}

.ymcnp-next:hover, .ymcnp-create:hover {
    background: #2563EB;
}

.ymcnp-back {
    background: #e0e0e0;
    color: #333;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* フォーム */
input[type="text"], input[type="date"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ライブラリ - 記事一覧 */
.ymcnp-library {
    display: flex;
    gap: 20px;
}

.ymcnp-filters {
    width: 200px;
    flex-shrink: 0;
}

.ymcnp-filters label {
    display: block;
    margin: 8px 0;
}

.ymcnp-articles {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ymcnp-article-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.ymcnp-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ymcnp-article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ymcnp-article-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.1em;
}

.ymcnp-article-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* コミュニティフィード */
.ymcnp-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
