/**
 * 플레이 스타일 게시판 전용 스타일
 * - 선호도 바 차트
 * - 카테고리별 구분
 * - 평점/점수 표시
 */

/* ==========================================================
   [1] 카테고리 헤더
   ========================================================== */
.category-header {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.15), transparent);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    margin: 20px 0 15px 0;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.category-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ==========================================================
   [2] 스타일 아이템
   ========================================================== */
.style-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.style-item:hover {
    background: rgba(var(--accent-rgb), 0.05);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.style-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.style-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.style-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.style-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ==========================================================
   [3] 프로그레스 바 (선호도)
   ========================================================== */
.progress-bar-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.5));
    border-radius: 10px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================================
   [4] 별점 표시
   ========================================================== */
.star-rating {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 16px;
    color: var(--text-muted);
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    color: #fbbf24;
    position: relative;
}

.star.half::before {
    content: '★';
    position: absolute;
    width: 50%;
    overflow: hidden;
}

/* ==========================================================
   [5] 태그 그룹
   ========================================================== */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.style-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
}

.style-tag.positive {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.style-tag.negative {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.style-tag.neutral {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

/* ==========================================================
   [6] 그리드 레이아웃 (비교용)
   ========================================================== */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.style-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.style-card-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 10px;
}

.style-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.style-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.style-card-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================
   [7] 토글 카드 (펼침/접음)
   ========================================================== */
.toggle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.toggle-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.toggle-header:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

.toggle-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.toggle-card.open .toggle-icon {
    transform: rotate(180deg);
}

.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toggle-card.open .toggle-content {
    max-height: 1000px;
}

.toggle-body {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================
   [8] 스프레드시트 임베드 (view)
   ========================================================== */
.playstyle-content {
    padding: 30px;
}

.sheet-embed-wrap {
    width: 100%;
    max-width: 1100px;
    height: 650px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.sheet-embed-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.no-sheet-msg {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

/* ==========================================================
   [9] 모바일 반응형
   ========================================================== */
@media (max-width: 768px) {
    .style-item {
        padding: 15px;
    }
    
    .style-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 12px 15px;
    }
    
    .progress-bar-container {
        height: 20px;
    }
    
    .progress-text {
        font-size: 10px;
    }

    .sheet-embed-wrap {
        height: 450px;
    }

    .playstyle-content {
        padding: 15px 0;
    }
}
