/* ============================================================ Modern player stats page styles ============================================================ */ body { background: #f5f5f5; min-height: 100vh; overflow: hidden; } body.in-iframe .navbar { display: none; } body.in-iframe { background: transparent; } /* Stats Overview */ .stats-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px; } .stat-badge { background: white; border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #e9ecef; transition: transform 0.3s ease; } .stat-badge:hover { transform: translateY(-2px); } .stat-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; } .stat-number { font-size: 1.5rem; font-weight: bold; color: #333; margin-bottom: 5px; } .stat-label { color: #666; font-size: 0.75rem; font-weight: 500; } .stat-badge.tournament-badge { display: flex; flex-direction: column; justify-content: center; } .tournament-scores { display: flex; gap: 10px; margin-bottom: 8px; justify-content: center; } .tournament-score-item { display: flex; flex-direction: column; align-items: center; gap: 4px; } .tournament-type { font-size: 0.65rem; color: #999; font-weight: 600; text-transform: uppercase; } .tournament-emoji { font-size: 1rem; margin-bottom: 2px; } .tournament-best { font-size: 1.3rem; font-weight: bold; color: #28a745; } /* Charts Section */ .charts-section { min-height: 450px; flex-shrink: 0; margin-top: 30px; } .stats-panel { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 18px; display: flex; flex-direction: column; } .panel-title { font-size: 1.1rem; font-weight: bold; color: #333; margin-bottom: 15px; border-bottom: 2px solid #28a745; padding-bottom: 5px; } .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; } .stat-item { text-align: center; padding: 12px 8px; background: #f8f9fa; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; } .stat-value { font-size: 1.4rem; font-weight: bold; color: #28a745; margin-bottom: 3px; } .charts-panel { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 18px; display: flex; flex-direction: column; width: 100%; } /* Tournament type buttons */ .tournament-type-buttons { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; } .type-btn { background: #f8f9fa; border: 2px solid #e9ecef; padding: 12px 20px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; font-weight: 600; color: #333; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; } .type-btn:hover { border-color: #28a745; transform: translateY(-1px); } .type-btn.active { color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .type-btn.active.targets-40 { background: #9C27B0; border-color: #9C27B0; } .type-btn.active.targets-20 { background: #FF9800; border-color: #FF9800; } .type-btn.active.targets-4 { background: #4CAF50; border-color: #4CAF50; } .type-btn.targets-40:hover { border-color: #9C27B0; } .type-btn.targets-20:hover { border-color: #FF9800; } .type-btn.targets-4:hover { border-color: #4CAF50; } .chart-info { margin-bottom: 15px; } .chart-info h3 { margin: 0 0 15px 0; color: #333; font-size: 1.1rem; font-weight: 600; } .chart-stats { display: flex; justify-content: space-around; align-items: center; gap: 20px; font-size: 0.85rem; padding: 12px; } .chart-stat { display: flex; flex-direction: column; align-items: center; text-align: center; } .chart-stat-value { font-size: 1.1rem; font-weight: bold; color: #333; } .chart-stat-label { color: #666; font-size: 0.75rem; text-transform: uppercase; } /* Accuracy stats */ .accuracy-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; justify-content: center; } .accuracy-stat { display: flex; flex-direction: column; align-items: center; padding: 4px 8px; background: white; border-radius: 6px; border: 1px solid #e9ecef; min-width: 35px; transition: transform 0.2s ease; } .accuracy-stat:hover { transform: scale(1.05); box-shadow: 0 2px 6px rgba(0,0,0,0.1); } .accuracy-value { font-weight: bold; color: #333; font-size: 0.9rem; } .accuracy-label { color: #666; font-size: 0.65rem; font-weight: 500; } .accuracy-charts-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; } .accuracy-chart-container { position: relative; min-height: 400px; max-height: 500px; padding: 20px 0; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .accuracy-chart-container canvas { max-width: 100% !important; max-height: 100% !important; width: 100% !important; height: auto !important; } .accuracy-charts-container > div:nth-child(2) .accuracy-chart-container { min-height: 350px; max-height: 420px; } .chart-container { position: relative; flex: 1; min-height: 400px; max-height: 500px; padding: 15px 0; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .chart-container canvas { max-width: calc(100% - 10px) !important; max-height: calc(100% - 10px) !important; width: 100% !important; height: auto !important; } .no-data { display: flex; align-items: center; justify-content: center; height: 200px; color: #999; font-size: 0.9rem; font-style: italic; background: #f8f9fa; border-radius: 6px; border: 1px dashed #dee2e6; } .accuracy-section { background: transparent; border-radius: 0; padding: 0; margin-bottom: 0; border: none; width: 100%; } .accuracy-section h3 { margin: 0 0 15px 0; color: #333; font-size: 1.1rem; font-weight: 600; } .performance-section { background: #f8f9fa; border-radius: 12px; padding: 20px; border: 1px solid #e9ecef; } .performance-section h3 { margin: 0 0 15px 0; color: #333; font-size: 1.1rem; font-weight: 600; } /* History section */ .bottom-section { min-height: auto; flex-shrink: 0; margin-top: 30px; } .history-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 18px; display: flex; flex-direction: column; min-height: 400px; border: 1px solid #e9ecef; margin-top: 30px; } .history-tabs { display: flex; gap: 10px; margin: 20px 0; } .history-tab { background: #f8f9fa; border: 2px solid #e9ecef; padding: 10px 16px; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: #666; border-radius: 8px; transition: all 0.3s ease; display: flex; align-items: center; gap: 6px; } .history-tab:hover { background: #e9ecef; color: #333; border-color: #dee2e6; } .history-tab.active { background: #28a745; border-color: #28a745; color: white; } .history-tab-content { display: none; flex: 1; overflow-y: auto; } .history-tab-content.active { display: flex; flex-direction: column; } .table-wrapper { flex: 1; overflow-y: auto; border-radius: 8px; border: 1px solid #e9ecef; } .history-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } .history-table thead { background: #f8f9fa; position: sticky; top: 0; } .history-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid #dee2e6; } .history-table tbody tr { border-bottom: 1px solid #e9ecef; transition: background 0.2s ease; } .history-table td { padding: 12px 16px; color: #555; } .history-table-row { cursor: pointer; } .history-table-row:hover { background: #f8f9fa; } .tournament-type-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; background: #e3f2fd; color: #1976d2; } .date-cell { color: #666; font-size: 0.9rem; white-space: nowrap; } .score-cell { color: #333; font-weight: 600; } .view-link { color: #28a745; font-weight: 600; transition: color 0.2s ease; } .history-table-row:hover .view-link { color: #1e7e34; } /* Placer stats */ .placer-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-top: 20px; } .placer-stat-card { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); border: 1px solid #e9ecef; border-radius: 10px; padding: 16px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; } .placer-stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%); } .placer-stat-value { font-size: 1.8rem; font-weight: 700; color: #28a745; margin-bottom: 4px; } .placer-stat-label { font-size: 0.75rem; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; } .placer-stat-count { font-size: 1.4rem; font-weight: 700; color: #333; } /* Overall accuracy */ .overall-accuracy-card { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 24px; margin-bottom: 30px; border: 1px solid #e9ecef; } .overall-content-wrapper { display: flex; gap: 20px; margin-top: 20px; align-items: center; } .overall-chart-left { flex: 0 0 70%; min-height: 300px; display: flex; align-items: center; justify-content: center; } .overall-radar-right { flex: 0 0 30%; min-height: 280px; display: flex; align-items: center; justify-content: center; } .overall-radar-right canvas { max-width: 100%; max-height: 100%; } /* Shot count cards */ .shot-count-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #e9ecef; } .shot-count-card { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); border: 1px solid #e9ecef; border-radius: 10px; padding: 12px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 90px; } .shot-count-card:hover { box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15); transform: translateY(-2px); border-color: #28a745; } .shot-score { font-size: 1.3rem; font-weight: bold; color: #28a745; margin-bottom: 8px; } .shot-count { font-size: 1.8rem; font-weight: bold; color: #333; } .history-list { flex: 1; overflow-y: auto; padding-right: 8px; min-height: 200px; max-height: 320px; } .history-list::-webkit-scrollbar { width: 6px; } .history-list::-webkit-scrollbar-track { background: #f8f9fa; border-radius: 3px; } .history-list::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 3px; } .history-list::-webkit-scrollbar-thumb:hover { background: #adb5bd; } /* History items */ .history-item { background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%); border-radius: 12px; padding: 16px; margin-bottom: 12px; transition: all 0.3s ease; border: 1px solid rgba(33, 150, 243, 0.1); position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; } .history-item::before { content: ''; position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%); opacity: 0; transition: opacity 0.3s ease; } .history-item:hover::before { opacity: 1; } .history-item:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15); background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); border-color: rgba(33, 150, 243, 0.2); } .history-item-link { display: block; cursor: pointer; transition: all 0.3s ease; color: inherit; } .history-item-link:hover .history-item { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(33, 150, 243, 0.35); background: linear-gradient(135deg, #c5dff8 0%, #a5d6fd 100%); border-color: rgba(33, 150, 243, 0.4); } .league-history-item-link { display: block; cursor: pointer; transition: all 0.3s ease; color: inherit; } .league-history-item-link:hover .league-history-item { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(156, 39, 176, 0.35); background: linear-gradient(135deg, #d1a4e0 0%, #c878d8 100%); border-color: rgba(156, 39, 176, 0.3); } .history-info { flex: 1; } .history-date { font-size: 0.8rem; color: #1976d2; margin-bottom: 2px; font-weight: 600; } .history-type { font-size: 0.75rem; font-weight: bold; color: #0d47a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .history-score { font-size: 1.2rem; font-weight: bold; color: #2e7d32; text-shadow: 0 1px 2px rgba(0,0,0,0.1); } /* League history items */ .league-history-item { background: linear-gradient(135deg, #f3e5f5 0%, #f0e6ff 100%); border-radius: 12px; padding: 16px; margin-bottom: 12px; transition: all 0.3s ease; border: 1px solid rgba(156, 39, 176, 0.1); position: relative; overflow: hidden; } .league-history-item::before { content: ''; position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%); opacity: 0; transition: opacity 0.3s ease; } .league-history-item:hover::before { opacity: 1; } .league-history-item:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(156, 39, 176, 0.15); background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%); border-color: rgba(156, 39, 176, 0.2); } .league-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; } .league-info { flex: 1; } .league-score-display { font-size: 1.3rem; font-weight: bold; color: #4a148c; text-shadow: 0 1px 2px rgba(0,0,0,0.1); } .league-details { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); border: 1px solid #81c784; border-radius: 6px; padding: 8px; font-size: 0.7rem; } .league-score-cell { padding: 8px 12px; font-weight: 600; font-size: 1rem; } .joker-tournament { background-color: #fff3e0 !important; border: 2px solid #ff9800 !important; } .excluded-tournament { background-color: #ffebee !important; border: 2px dashed #f44336 !important; } .removed-score { color: #d32f2f; text-decoration: line-through; font-weight: bold; } .league-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: bold; } .league-final-score { color: #1b5e20; font-size: 0.85rem; } .league-total-score { color: #388e3c; font-size: 0.75rem; } .tournament-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .tournament-result { padding: 4px 6px; border-radius: 4px; font-size: 0.65rem; font-weight: bold; text-align: center; transition: transform 0.2s ease; } .tournament-result:hover { transform: scale(1.05); } .tournament-result.participated { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); color: #1b5e20; border: 1px solid #81c784; } .tournament-result.joker { background: linear-gradient(135deg, #fff3e0, #ffcc02); color: #e65100; border: 1px solid #ffb74d; } .empty-state { text-align: center; padding: 20px; color: #666; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; } .empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; } /* Single card ps-layout */ .ps-layout { display: flex; gap: 8px; height: calc(100vh - 50px); padding: 8px 12px 10px; } body.in-iframe .ps-layout { height: 100vh; } .ps-card { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #e9ecef; overflow: hidden; display: flex; flex-direction: column; } .ps-left { flex: 1; min-width: 0; } .ps-topbar { display: flex; align-items: center; padding: 6px 12px; flex-shrink: 0; gap: 8px; background: #f8f9fa; border-bottom: 2px solid #e9ecef; border-radius: 10px 10px 0 0; } .ps-type-btns { display: flex; gap: 4px; flex-shrink: 0; } .ps-type-btns .type-btn { padding: 7px 10px; font-size: 0.7rem; border-radius: 6px; border: 2px solid #dee2e6; background: white; color: #666; cursor: pointer; font-weight: 600; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; width: auto; } .ps-type-btns .type-btn.active.targets-40 { background: #8b00ff; border-color: #6a00cc; color: white; } .ps-type-btns .type-btn.active.targets-20 { background: #fd7e14; border-color: #e06c0a; color: white; } .ps-type-btns .type-btn.active.targets-4 { background: #28a745; border-color: #1e7e34; color: white; } .ps-type-btns .type-btn:hover:not(.active) { border-color: #28a745; color: #28a745; } .ps-mini-stats { display: flex; gap: 20px; margin-left: auto; } .ps-mini-stats .chart-stat { text-align: center; } .ps-mini-stats .chart-stat-value { font-size: 0.85rem; font-weight: 700; color: #28a745; line-height: 1.1; } .ps-mini-stats .chart-stat-label { font-size: 0.6rem; color: #aaa; } .ps-sections { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; } .ps-section { display: flex; flex-direction: column; flex: 1; min-height: 0; border-bottom: 1px solid #e9ecef; padding: 6px 14px 4px; } .ps-section:last-child { border-bottom: none; } .ps-section-header { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; margin-bottom: 2px; } .ps-section-title { font-size: 0.7rem; font-weight: 700; color: #444; white-space: nowrap; } .ps-section-desc { font-size: 0.6rem; color: #aaa; } .ps-section-body { display: flex; gap: 8px; flex: 1; min-height: 0; } .ps-chart-wrap { flex: 1; min-width: 0; min-height: 0; position: relative; } .ps-chart-wrap canvas { width: 100% !important; height: 100% !important; } .ps-radar-wrap { flex: 0 0 30%; } .ps-shot-counts { flex: 0 0 72px; border-left: 1px solid #e9ecef; display: flex; flex-direction: column; justify-content: space-around; padding: 4px 8px; gap: 2px; } .ps-sc-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 0.62rem; } .ps-sc-badge { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.6rem; color: white; flex-shrink: 0; } .ps-sc-count { font-size: 0.68rem; font-weight: 600; color: #555; text-align: right; } .ps-right { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; } .ps-hist-header { display: flex; flex-direction: column; gap: 5px; padding: 7px 10px; flex-shrink: 0; background: #f8f9fa; border-bottom: 2px solid #e9ecef; border-radius: 10px 10px 0 0; } .ps-hist-title { font-size: 0.78rem; font-weight: 700; color: #444; } .ps-hist-tabs { display: flex; gap: 4px; } .ps-hist-tabs .history-tab { flex: 1; padding: 3px 6px; font-size: 0.65rem; border-radius: 6px; border: 2px solid #dee2e6; background: white; color: #555; cursor: pointer; font-weight: 600; transition: all 0.15s; white-space: nowrap; } .ps-hist-tabs .history-tab.active { background: #28a745; border-color: #1e7e34; color: white; } .ps-hist-tabs .history-tab:hover:not(.active) { border-color: #28a745; color: #28a745; } .ps-history-body { flex: 1; overflow-y: auto; min-height: 0; } .ps-history-body::-webkit-scrollbar { width: 4px; } .ps-history-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; } .ps-hist-item { display: flex; align-items: center; gap: 6px; padding: 7px 10px 7px 12px; cursor: pointer; border-left: 3px solid transparent; transition: all 0.15s; border-bottom: 1px solid #f5f5f5; font-size: 0.78rem; } .ps-hist-item:hover { background: #f0faf3; border-left-color: #28a745; } .ps-hist-item.active { background: #28a745; border-left-color: #1e7e34; color: white; } .ps-hist-date { color: #888; font-size: 0.68rem; flex-shrink: 0; } .ps-hist-item.active .ps-hist-date { color: rgba(255,255,255,0.8); } .ps-hist-info { flex: 1; min-width: 0; } .ps-hist-score { font-weight: 700; color: #28a745; flex-shrink: 0; font-size: 0.88rem; } .ps-hist-item.active .ps-hist-score { color: white; } .ps-hist-arrow { color: #ddd; flex-shrink: 0; font-size: 0.72rem; } .ps-league-scores { display: flex; gap: 3px; flex-wrap: wrap; } .ps-ls { font-size: 0.68rem; padding: 1px 4px; border-radius: 4px; background: #f0f0f0; } .ps-ls-joker { opacity: 0.5; } .ps-ls-excl { text-decoration: line-through; color: #999; background: #fee; } @media (max-width: 1200px) { .top-section { grid-template-columns: 1fr; min-height: 320px; } } @media (max-width: 768px) { .container { min-height: calc(100vh - 100px); padding: 10px; } .stats-grid { grid-template-columns: 1fr; } .history-section { min-height: 220px; } .history-list { min-height: 150px; max-height: 200px; } .chart-container { max-height: 350px; min-height: 300px; padding: 10px; } .shot-count-cards { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; margin-top: 20px; padding-top: 15px; } .shot-count-card { min-height: 80px; padding: 10px; } .shot-score { font-size: 1.1rem; margin-bottom: 5px; } .shot-count { font-size: 1.5rem; } }