/**
 * 섹션 스타일
 * 모바일 메인 페이지의 각 섹션별 스타일
 */

/* 메인 컨테이너 */
.main-container {
    padding: 16px;
    padding-bottom: 80px;
}

/* 섹션 카드 공통 스타일 */
.section-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-header h2 i {
    margin-right: 8px;
    color: #667eea;
}

.reset-info {
    font-size: 12px;
    color: #999;
}

/* 로딩 상태 */
.section-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.section-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #667eea;
}

.section-loading p {
    font-size: 14px;
    margin: 0;
}

/* 에러 상태 */
.section-error {
    text-align: center;
    padding: 40px 20px;
    color: #f44336;
}

.section-error i {
    font-size: 32px;
    margin-bottom: 12px;
}

/* 포인트 대시보드 */
.point-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.current-points {
    margin-bottom: 16px;
}

.points-value {
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.points-label {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 8px;
}

.point-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.stat-item {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.point-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.recent-history h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
}

.history-info {
    flex: 1;
}

.history-desc {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.history-time {
    display: block;
    font-size: 12px;
    color: #999;
}

.history-amount {
    font-size: 16px;
    font-weight: 600;
}

.history-amount.earned {
    color: #4CAF50;
}

.history-amount.spent {
    color: #F44336;
}

/* 오늘의 뽑기 */
.free-gacha-box {
    background: linear-gradient(135deg, #FF9800 0%, #F44336 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.free-gacha-box.disabled {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    opacity: 0.7;
}

.gacha-icon {
    font-size: 48px;
    color: white;
}

.gacha-info {
    flex: 1;
}

.gacha-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.gacha-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.paid-gacha-options h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.gacha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.gacha-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.gacha-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 20px;
}

.gacha-card h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gacha-cost {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    margin: 6px 0;
}

.recent-wins h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.wins-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.win-item {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.win-user {
    font-weight: 600;
    color: #667eea;
}

.win-item-name {
    font-weight: 600;
    color: #FF9800;
}

.win-time {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* 빠른 명령 실행 */
.server-selector {
    margin-bottom: 20px;
}

.server-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.server-selector label i {
    margin-right: 4px;
    color: #667eea;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.command-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.command-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 20px;
}

.command-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
}

.command-desc {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.3;
}

.command-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.command-cost {
    font-size: 12px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
}

/* 미니게임 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.game-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.game-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 20px;
}

.game-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
}

.game-desc {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.3;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
}

.game-bet-range {
    color: #666;
}

.game-payout {
    font-weight: 700;
    color: #4CAF50;
}

/* 주간 랭킹 */
.ranking-list {
    margin-bottom: 16px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
}

.rank-item.current-user {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid #2196F3;
}

.rank-number {
    width: 40px;
    font-size: 18px;
    font-weight: 700;
    color: #666;
}

.rank-number.top-rank {
    color: #FF9800;
}

.rank-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.rank-username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.rank-points {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
}

.my-rank {
    background: #E8EAF6;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}

.my-rank p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.my-rank strong {
    color: #667eea;
    font-size: 16px;
}

.rank-rewards h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.rewards-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.rewards-list li {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.rewards-list li strong {
    color: #FF9800;
}

/* 아이템 상점 */
.featured-item {
    background: white;
    border: 3px solid #FF9800;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF9800;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F44336;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.featured-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 40px;
}

.featured-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.featured-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.featured-price {
    margin-bottom: 12px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.discounted-price {
    font-size: 24px;
    font-weight: 700;
    color: #F44336;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.stock-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.item-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    position: relative;
}

.item-card.limited {
    border-color: #FF9800;
}

.limited-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #FF9800;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 20px;
}

.item-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    text-align: center;
}

.item-desc {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.3;
}

.item-price {
    margin-bottom: 10px;
    text-align: center;
}

.item-price .price {
    font-size: 14px;
}

.item-price .discounted-price {
    font-size: 14px;
}

/* 버튼 스타일 */
.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* 웰컴 섹션 (비로그인 사용자) */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.welcome-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.welcome-section > p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 8px;
}

.feature-item i {
    font-size: 32px;
    margin-bottom: 8px;
}

.feature-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.feature-item p {
    font-size: 11px;
    opacity: 0.8;
    margin: 0;
}

/* 반응형 조정 */
@media (max-width: 375px) {
    .gacha-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .commands-grid,
    .games-grid,
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* 서버 상태 */
.server-status-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.status-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 20px;
}

.status-icon.online i {
    color: #4ade80;
}

.status-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.status-info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
}

.server-item.online {
    border-left-color: #4ade80;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.server-info h4 {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.server-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.server-status-badge.online {
    background: #d1fae5;
    color: #065f46;
}

.server-status-badge.offline {
    background: #fee2e2;
    color: #991b1b;
}

.server-players {
    font-size: 13px;
    color: #7f8c8d;
}

.server-players i {
    margin-right: 4px;
}

/* 최신 게시글 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header i {
    color: #667eea;
}

.more-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    position: relative;
}

.post-item:active {
    transform: scale(0.98);
}

.post-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.post-badge.notice {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
}

.post-secret {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #95a5a6;
    font-size: 14px;
}

.post-content {
    flex: 1;
    min-width: 0;
}













.post-meta {
    font-size: 12px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-separator {
    color: #d0d0d0;
}

.post-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #95a5a6;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 스트리머 */
.streamers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.streamer-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.streamer-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.streamer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.streamer-info {
    flex: 1;
    min-width: 0;
}

.streamer-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.streamer-info p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.streamer-stats {
    font-size: 12px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.streamer-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    color: white;
    transition: transform 0.2s;
}

.social-link:active {
    transform: scale(0.9);
}

.social-link.youtube {
    background: #FF0000;
}

.social-link.twitch {
    background: #9146FF;
}

.social-link.twitter {
    background: #1DA1F2;
}

/* 최근 활동 */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.activity-item:active {
    background: #f8f9fa;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.comment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-icon.post {
    background: linear-gradient(135deg, #FFB347 0%, #FFA726 100%);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #2c3e50;
}

.activity-action {
    color: #667eea;
    font-weight: 600;
}

.activity-target {
    font-size: 13px !important;
    color: #7f8c8d !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-time {
    font-size: 12px;
    color: #95a5a6;
}

/* 웰컴 섹션 간소화 */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 20px;
    text-align: center;
    color: white;
    border-radius: 16px;
    margin-bottom: 16px;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.welcome-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.welcome-section > p {
    font-size: 15px;
    margin: 0 0 24px 0;
    opacity: 0.9;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

/* 빈 메시지 */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.empty-message i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-message p {
    margin: 0;
    font-size: 14px;
}

.post-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.6;
}
