/* ホーム画面専用スタイル */

/* ナビゲーション */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
    min-width: 100px;
}

.nav-item:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.nav-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.nav-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ウェルカムセクション */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-hover);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.welcome-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* セクションタイトル */
.section-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-refresh {
    background: none;
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.btn-view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view-all:hover {
    text-decoration: underline;
}

/* クイックアクション */
.quick-actions {
    margin-bottom: 40px;
}

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

.action-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.action-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.action-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* レコメンドセクション */
.recommendations-section {
    margin-bottom: 40px;
}

.recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slot-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.confidence-badge {
    background: var(--bg-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recommendation-perfume {
    margin-bottom: 10px;
}

.perfume-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.perfume-brand {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.recommendation-reason {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

/* 履歴セクション */
.recent-history-section {
    margin-bottom: 40px;
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: center;
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 140px;
}

.history-slot {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.history-details {
    flex: 1;
}

.history-perfume {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.history-context {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.history-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 好みの傾向セクション */
.preferences-section {
    margin-bottom: 40px;
}

.preferences-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.preference-category {
    margin-bottom: 30px;
}

.preference-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.preference-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preference-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    min-width: 120px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bar-container {
    flex: 1;
    height: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.bar-percentage {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 空状態 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .main-nav {
        gap: 5px;
        padding: 10px;
    }

    .nav-item {
        padding: 10px 15px;
        min-width: 80px;
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .nav-label {
        font-size: 0.8rem;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-container {
        grid-template-columns: 1fr;
    }

    .history-item {
        flex-direction: column;
        text-align: center;
    }

    .history-date {
        min-width: auto;
    }

    .bar-label {
        min-width: 100px;
        font-size: 0.85rem;
    }
}

