/* =====================
   리포트 모바일 전용 스타일
   ===================== */

/* 모바일 뷰 컨테이너 */
.report-mobile {
    min-height: 100vh;
    background: #f8f9fa;
}

/* 헤더 */
.mobile-report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 1rem 2rem 1rem;
    color: white;
    margin: -1rem -1rem 1rem -1rem;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-period-select {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.mobile-period-select option {
    background: white;
    color: #202124;
}

.mobile-refresh-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-report-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.mobile-period {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* 컨텐츠 영역 */
.mobile-report-content {
    padding: 0 1rem 1rem 1rem;
}

/* 카드 기본 스타일 */
.mobile-report-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-report-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #202124;
}

.mobile-card-subtitle {
    margin: -0.5rem 0 1rem 0;
    font-size: 0.85rem;
    color: #5f6368;
}

/* 레벨 카드 (메인) */
.level-card-main {
    text-align: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: white;
}

.mobile-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.level-icon {
    font-size: 1.25rem;
}

.level-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.level-progress-text {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

/* 완료율 바 */
.mobile-completion-bar {
    height: 32px;
    background: #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
}

.mobile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #34a853, #1a73e8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    transition: width 0.5s ease;
}

.mobile-comparison {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

/* 통계 행 */
.mobile-stat-row {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-stat-item {
    text-align: center;
    flex: 1;
}

.mobile-stat-icon {
    font-size: 1.5rem;
}

.mobile-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a73e8;
    margin: 0.25rem 0;
}

.mobile-stat-label {
    font-size: 0.75rem;
    color: #5f6368;
}

/* 생산 시간대 */
.productive-time-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.productive-time-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.productive-time-label {
    display: block;
    font-size: 0.75rem;
    color: #5f6368;
    margin-bottom: 0.25rem;
}

.productive-time-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a73e8;
}

.weekday-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weekday-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weekday-label {
    min-width: 20px;
    font-size: 0.75rem;
    color: #5f6368;
    text-align: center;
}

.weekday-bar {
    flex: 1;
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}

.weekday-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.weekday-count {
    min-width: 20px;
    font-size: 0.75rem;
    color: #5f6368;
    text-align: right;
}

/* 태그 리스트 */
.mobile-tag-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-tag-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-tag-name {
    min-width: 55px;
    font-weight: 500;
    font-size: 0.85rem;
}

.mobile-tag-bar {
    flex: 1;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.mobile-tag-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mobile-tag-percent {
    min-width: 35px;
    text-align: right;
    font-size: 0.85rem;
    color: #5f6368;
}

/* 일별 추이 */
.mobile-daily-trend {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.daily-bar-item {
    flex: 1;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daily-bar {
    width: 100%;
    min-height: 80px;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.daily-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bar-height, 0%);
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.daily-bar-count {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: bold;
    color: #202124;
    margin-bottom: 0.25rem;
}

.daily-bar-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #5f6368;
}

/* 공유 버튼 */
.mobile-share-container {
    padding: 1rem 0;
}

.mobile-share-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-share-btn:active {
    transform: scale(0.98);
}

/* 데스크탑에서 숨김 */
@media (min-width: 769px) {
    .report-mobile {
        display: none;
    }
}
