/* レベルページ専用スタイル */

/* パンくずナビ */
.breadcrumb {
    padding: 1rem 0;
    color: white;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* カテゴリタブ */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-tab {
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    position: relative;
}

.category-tab:hover {
    background-color: #f5f5f5;
    border-radius: 5px 5px 0 0;
}

.category-tab.active {
    color: #333;
    border-bottom-color: #667eea;
    background-color: #f8f9fa;
}

/* カテゴリコンテンツ */
.category-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

.category-panel h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    display: inline-block;
    position: relative;
}

.category-panel h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 問題リスト */
.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-link {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.problem-link:hover {
    background-color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.problem-link:hover::before {
    transform: translateX(0);
}

.problem-number {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
    min-width: 60px;
    text-align: center;
}

.problem-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* カテゴリ別の色設定 */
#flex .category-panel h2::after,
#flex .problem-link:hover {
    border-color: #FF6B6B;
}
#flex .problem-link::before {
    background: linear-gradient(180deg, #FF6B6B 0%, #FF8E8E 100%);
}

#grid .category-panel h2::after,
#grid .problem-link:hover {
    border-color: #4CAF50;
}
#grid .problem-link::before {
    background: linear-gradient(180deg, #4CAF50 0%, #6BC56F 100%);
}

#position .category-panel h2::after,
#position .problem-link:hover {
    border-color: #2196F3;
}
#position .problem-link::before {
    background: linear-gradient(180deg, #2196F3 0%, #42A5F5 100%);
}

#display .category-panel h2::after,
#display .problem-link:hover {
    border-color: #FF9800;
}
#display .problem-link::before {
    background: linear-gradient(180deg, #FF9800 0%, #FFB74D 100%);
}

#margin .category-panel h2::after,
#margin .problem-link:hover {
    border-color: #9C27B0;
}
#margin .problem-link::before {
    background: linear-gradient(180deg, #9C27B0 0%, #BA68C8 100%);
}

#padding .category-panel h2::after,
#padding .problem-link:hover {
    border-color: #00BCD4;
}
#padding .problem-link::before {
    background: linear-gradient(180deg, #00BCD4 0%, #26C6DA 100%);
}

#width-height .category-panel h2::after,
#width-height .problem-link:hover {
    border-color: #795548;
}
#width-height .problem-link::before {
    background: linear-gradient(180deg, #795548 0%, #8D6E63 100%);
}

#text-font .category-panel h2::after,
#text-font .problem-link:hover {
    border-color: #607D8B;
}
#text-font .problem-link::before {
    background: linear-gradient(180deg, #607D8B 0%, #78909C 100%);
}

#z-index .category-panel h2::after,
#z-index .problem-link:hover {
    border-color: #E91E63;
}
#z-index .problem-link::before {
    background: linear-gradient(180deg, #E91E63 0%, #F06292 100%);
}

#background .category-panel h2::after,
#background .problem-link:hover {
    border-color: #3F51B5;
}
#background .problem-link::before {
    background: linear-gradient(180deg, #3F51B5 0%, #5C6BC0 100%);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .category-tabs {
        gap: 0.25rem;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .problem-link {
        padding: 1rem;
    }

    .problem-title {
        font-size: 1rem;
    }
}