/* Set details page specific styles */
.breadcrumbs {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #2196F3;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.set-details {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.set-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.set-header h1 {
    font-size: 24px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wenti-type-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #ff6b6b;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

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

.play-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
    font-size: 16px;
}

.rankings-link {
    color: #2196F3;
    text-decoration: none;
    font-size: 14px;
}

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

.set-description {
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
}

/* Game section */
.game-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.game-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mode-option {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.mode-option:hover {
    border-color: #90caf9;
}

.mode-option:has(input:checked) {
    border-color: #2196F3;
    background: #e3f2fd;
}

.mode-option input[type="radio"] {
    margin-bottom: 10px;
}

.mode-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.mode-description {
    font-size: 12px;
    color: #666;
}

.timer-options {
    display: flex;
    gap: 20px;
}

.timer-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.timer-option:hover {
    border-color: #90caf9;
}

.timer-option:has(input:checked) {
    border-color: #2196F3;
    background: #e3f2fd;
}

/* 表示/学習モードのカード（inline style override用） */
.mode-option[style] { transition: all 0.2s ease; }
.mode-option:has(input:checked)[style] { border-color: #2196F3 !important; background: #e3f2fd !important; }

.start-game-button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.start-game-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Previews section */
.previews-section {
    padding: 30px;
}

.words-preview h2,
.recent-scores h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.words-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.word-card {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.chinese-text {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 500;
}

.simplified {
    font-family: 'Noto Sans SC', sans-serif;
}

.traditional {
    font-family: 'Noto Sans TC', sans-serif;
}

.pinyin-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.zhuyin-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-family: "MingLiU", "DFKai-SB", sans-serif;
}

.japanese-text {
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 5px;
}

.more-words {
    text-align: center;
    margin-top: 20px;
}

.view-all-words {
    color: #2196F3;
    text-decoration: none;
}

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

/* Recent scores */
.recent-scores {
    margin-top: 40px;
}

.scores-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.scores-table th,
.scores-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.scores-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #333;
}

.scores-table tr:hover {
    background: #f5f5f5;
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

.view-all-scores {
    color: #2196F3;
    text-decoration: none;
}

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

/* Utilities */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .set-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .timer-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .words-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .scores-table {
        display: block;
        overflow-x: auto;
    }
}