/* WinRed 主題樣式 - 基於台彩主站橙紅色系 */

/* 主題根變數 */
:root {
  --winred-primary: #ff6b35;
  --winred-secondary: #ff4500;
  --winred-accent: #ffb84d;
  --winred-background: #fff8f0;
  --winred-card-bg: #ffffff;
  --winred-text-primary: #2c2c2c;
  --winred-text-secondary: #666666;
  --winred-text-light: #ffffff;
  --winred-border: #ffe0cc;
  --winred-hover: #ff5722;
  --winred-active: #e64a19;
  --winred-success: #4caf50;
  --winred-warning: #ff9800;
  --winred-danger: #f44336;
  --winred-info: #2196f3;
  --winred-shadow: rgba(255, 107, 53, 0.2);
}

/* WinRed 主題應用 */
body.theme-winred {
  background-color: var(--winred-background);
  color: var(--winred-text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 導航列 */
body.theme-winred .navbar-custom {
  background: linear-gradient(135deg, var(--winred-primary) 0%, var(--winred-secondary) 100%);
  box-shadow: 0 2px 10px var(--winred-shadow);
}

body.theme-winred .navbar-brand {
  color: var(--winred-text-light) !important;
}

body.theme-winred .navbar-nav .nav-link {
  color: var(--winred-text-light) !important;
}

body.theme-winred .navbar-nav .nav-link:hover {
  color: var(--winred-accent) !important;
  text-shadow: 0 0 5px rgba(255, 184, 77, 0.5);
}

body.theme-winred .navbar-nav .nav-link.active {
  color: var(--winred-accent) !important;
  font-weight: 600;
}

/* 下拉選單 */
body.theme-winred .dropdown-menu {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
  box-shadow: 0 4px 20px var(--winred-shadow);
}

body.theme-winred .dropdown-item {
  color: var(--winred-text-primary);
  transition: all 0.3s ease;
}

body.theme-winred .dropdown-item:hover {
  background-color: var(--winred-background);
  color: var(--winred-primary);
}

/* 按鈕 */
body.theme-winred .btn-primary,
body.theme-winred .btn-primary-custom {
  background: linear-gradient(135deg, var(--winred-primary) 0%, var(--winred-secondary) 100%);
  border-color: var(--winred-primary);
  color: var(--winred-text-light);
}

body.theme-winred .btn-primary:hover,
body.theme-winred .btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--winred-hover) 0%, var(--winred-secondary) 100%);
  border-color: var(--winred-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--winred-shadow);
}

body.theme-winred .btn-success-custom {
  background: linear-gradient(135deg, var(--winred-success) 0%, #388e3c 100%);
  border-color: var(--winred-success);
  color: var(--winred-text-light);
}

body.theme-winred .btn-outline-custom {
  background: transparent;
  border-color: var(--winred-primary);
  color: var(--winred-primary);
}

body.theme-winred .btn-outline-custom:hover {
  background-color: var(--winred-primary);
  border-color: var(--winred-primary);
  color: var(--winred-text-light);
}

body.theme-winred .btn-outline-light {
  border-color: var(--winred-text-light);
  color: var(--winred-text-light);
}

body.theme-winred .btn-outline-light:hover {
  background-color: var(--winred-accent);
  border-color: var(--winred-accent);
  color: var(--winred-text-primary);
}

/* 卡片 */
body.theme-winred .card {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
  box-shadow: 0 2px 15px var(--winred-shadow);
  transition: all 0.3s ease;
}

body.theme-winred .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px var(--winred-shadow);
}

body.theme-winred .card-header {
  background-color: var(--winred-background);
  border-bottom: 1px solid var(--winred-border);
  color: var(--winred-text-primary);
}

/* 表單 */
body.theme-winred .form-control {
  border-color: var(--winred-border);
  transition: all 0.3s ease;
}

body.theme-winred .form-control:focus {
  border-color: var(--winred-primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

body.theme-winred .form-select {
  border-color: var(--winred-border);
}

body.theme-winred .form-select:focus {
  border-color: var(--winred-primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* 表格 */
body.theme-winred .table {
  color: var(--winred-text-primary);
}

body.theme-winred .table th {
  background-color: var(--winred-background);
  border-color: var(--winred-border);
  color: var(--winred-text-primary);
}

body.theme-winred .table td {
  border-color: var(--winred-border);
}

body.theme-winred .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 248, 240, 0.5);
}

body.theme-winred .table-hover tbody tr:hover {
  background-color: var(--winred-background);
}

/* 徽章 */
body.theme-winred .badge {
  background-color: var(--winred-primary);
  color: var(--winred-text-light);
}

body.theme-winred .badge.bg-success {
  background-color: var(--winred-success) !important;
}

body.theme-winred .badge.bg-warning {
  background-color: var(--winred-warning) !important;
}

body.theme-winred .badge.bg-danger {
  background-color: var(--winred-danger) !important;
}

/* 分頁 */
body.theme-winred .pagination .page-link {
  color: var(--winred-primary);
  border-color: var(--winred-border);
}

body.theme-winred .pagination .page-link:hover {
  background-color: var(--winred-background);
  border-color: var(--winred-primary);
  color: var(--winred-hover);
}

body.theme-winred .pagination .page-item.active .page-link {
  background-color: var(--winred-primary);
  border-color: var(--winred-primary);
  color: var(--winred-text-light);
}

/* 進度條 */
body.theme-winred .progress {
  background-color: var(--winred-background);
}

body.theme-winred .progress-bar {
  background-color: var(--winred-primary);
}

/* 警告框 */
body.theme-winred .alert-primary {
  background-color: rgba(255, 107, 53, 0.1);
  border-color: var(--winred-primary);
  color: var(--winred-primary);
}

body.theme-winred .alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: var(--winred-success);
  color: var(--winred-success);
}

body.theme-winred .alert-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border-color: var(--winred-warning);
  color: var(--winred-warning);
}

body.theme-winred .alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border-color: var(--winred-danger);
  color: var(--winred-danger);
}

/* 模態框 */
body.theme-winred .modal-content {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
}

body.theme-winred .modal-header {
  background-color: var(--winred-background);
  border-bottom: 1px solid var(--winred-border);
}

body.theme-winred .modal-title {
  color: var(--winred-text-primary);
}

/* 回到頂部按鈕 */
body.theme-winred .back-to-top {
  background-color: var(--winred-primary);
  border-color: var(--winred-primary);
  color: var(--winred-text-light);
}

body.theme-winred .back-to-top:hover {
  background-color: var(--winred-hover);
  border-color: var(--winred-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--winred-shadow);
}

/* 頁腳 */
body.theme-winred footer {
  background-color: var(--winred-text-primary) !important;
}

body.theme-winred footer .text-muted {
  color: #999999 !important;
}

body.theme-winred footer .text-light {
  color: var(--winred-text-light) !important;
}

body.theme-winred footer .text-white {
  color: var(--winred-text-light) !important;
}

/* 主題選擇器顏色指示器 */
.theme-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.theme-indicator.default {
  background: linear-gradient(45deg, #007bff, #0056b3);
}

.theme-indicator.winred {
  background: linear-gradient(45deg, #ff6b35, #ff4500);
}

/* 響應式設計 */
@media (max-width: 768px) {
  body.theme-winred .navbar-custom {
    background: var(--winred-primary);
  }
  
  body.theme-winred .card {
    margin-bottom: 1rem;
  }
  
  body.theme-winred .btn {
    margin-bottom: 0.5rem;
  }
}

/* 動畫效果 */
@keyframes winred-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

body.theme-winred .btn-primary:focus,
body.theme-winred .btn-primary-custom:focus {
  animation: winred-pulse 1.5s infinite;
}

/* 載入動畫 */
body.theme-winred .loading {
  border-color: var(--winred-border);
  border-top-color: var(--winred-primary);
}

/* 滾動條 */
body.theme-winred::-webkit-scrollbar {
  width: 8px;
}

body.theme-winred::-webkit-scrollbar-track {
  background: var(--winred-background);
}

body.theme-winred::-webkit-scrollbar-thumb {
  background: var(--winred-primary);
  border-radius: 4px;
}

body.theme-winred::-webkit-scrollbar-thumb:hover {
  background: var(--winred-hover);
}

/* ===== 首頁專用元件主題樣式 ===== */

/* 英雄區域 */
body.theme-winred .hero-section {
  background: linear-gradient(135deg, var(--winred-primary) 0%, var(--winred-secondary) 100%);
}

/* 區段標題 */
body.theme-winred .section-title::after {
  background: linear-gradient(135deg, var(--winred-primary) 0%, var(--winred-secondary) 100%);
}

/* 即時比分區域 */
body.theme-winred .score-item.winning {
  border-left-color: var(--winred-success);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

body.theme-winred .score-item.losing {
  border-left-color: var(--winred-danger);
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
}

/* 比賽結果和球隊卡片 */
body.theme-winred .match-item {
  background-color: var(--winred-background);
  border: 1px solid var(--winred-border);
}

body.theme-winred .match-item:hover {
  background-color: rgba(255, 107, 53, 0.05);
  transform: translateX(5px);
}

/* 預計開始比賽 */
body.theme-winred .upcoming-match-item {
  background-color: var(--winred-background);
  border: 1px solid var(--winred-border);
}

body.theme-winred .upcoming-match-item:hover {
  background-color: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
}

/* 預計開始比賽文字顏色 */
body.theme-winred .upcoming-match-item .match-time-text {
  color: var(--winred-text-primary);
}

body.theme-winred .upcoming-match-item .team-name {
  color: var(--winred-text-primary);
}

body.theme-winred .upcoming-match-item .vs-text {
  color: var(--winred-text-secondary);
}

/* 時間相關的 Bootstrap 文字顏色覆蓋 */
body.theme-winred .upcoming-match-item .text-danger {
  color: var(--winred-danger) !important;
}

body.theme-winred .upcoming-match-item .text-warning {
  color: var(--winred-warning) !important;
}

body.theme-winred .upcoming-match-item .text-muted {
  color: var(--winred-text-secondary) !important;
}

body.theme-winred .team-card {
  background-color: var(--winred-background);
  border: 1px solid var(--winred-border);
}

body.theme-winred .team-card:hover {
  background-color: rgba(255, 107, 53, 0.05);
  transform: translateX(5px);
}

body.theme-winred .team-rank {
  color: var(--winred-primary);
}

body.theme-winred .team-logo-icon {
  background-color: var(--winred-primary);
  color: var(--winred-text-light);
}

body.theme-winred .team-record {
  color: var(--winred-text-secondary);
}

body.theme-winred .win-rate {
  color: var(--winred-success);
}

/* 搜尋標籤 */
body.theme-winred .search-tab {
  border-color: var(--winred-border);
  color: var(--winred-text-secondary);
}

body.theme-winred .search-tab.active {
  background-color: var(--winred-primary);
  border-color: var(--winred-primary);
  color: var(--winred-text-light);
}

body.theme-winred .search-tab:hover:not(.active) {
  border-color: var(--winred-hover);
  color: var(--winred-hover);
}

/* 快速搜尋區域 */
body.theme-winred .quick-search {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
  box-shadow: 0 4px 20px var(--winred-shadow);
}

/* 統計卡片 */
body.theme-winred .stat-card {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
  box-shadow: 0 2px 15px var(--winred-shadow);
}

body.theme-winred .stat-card:hover {
  box-shadow: 0 4px 25px var(--winred-shadow);
  transform: translateY(-2px);
}

body.theme-winred .stat-number {
  color: var(--winred-text-primary);
}

body.theme-winred .stat-label {
  color: var(--winred-text-secondary);
}

body.theme-winred .stat-icon.primary {
  color: var(--winred-primary);
}

body.theme-winred .stat-icon.success {
  color: var(--winred-success);
}

body.theme-winred .stat-icon.danger {
  color: var(--winred-danger);
}

body.theme-winred .stat-icon.warning {
  color: var(--winred-warning);
}

/* 卡片自訂樣式 */
body.theme-winred .card-custom {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
  box-shadow: 0 2px 15px var(--winred-shadow);
}

body.theme-winred .card-custom:hover {
  box-shadow: 0 4px 25px var(--winred-shadow);
  transform: translateY(-2px);
}

body.theme-winred .card-header-custom {
  background-color: var(--winred-background);
  border-bottom-color: var(--winred-border);
  color: var(--winred-text-primary);
}

body.theme-winred .card-body-custom {
  color: var(--winred-text-primary);
}

/* 表格自訂樣式 */
body.theme-winred .table-custom {
  background-color: var(--winred-card-bg);
  box-shadow: 0 2px 15px var(--winred-shadow);
}

body.theme-winred .table-custom thead {
  background-color: var(--winred-background);
}

body.theme-winred .table-custom th {
  border-bottom-color: var(--winred-border);
  color: var(--winred-text-primary);
}

body.theme-winred .table-custom td {
  border-bottom-color: var(--winred-border);
  color: var(--winred-text-primary);
}

body.theme-winred .table-custom tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.05);
}

/* 徽章自訂樣式 */
body.theme-winred .badge-win {
  background-color: var(--winred-success);
}

body.theme-winred .badge-lose {
  background-color: var(--winred-danger);
}

body.theme-winred .badge-draw {
  background-color: var(--winred-warning);
}

/* 圖表容器 */
body.theme-winred .chart-container {
  background-color: var(--winred-card-bg);
  border: 1px solid var(--winred-border);
  box-shadow: 0 2px 15px var(--winred-shadow);
}

body.theme-winred .chart-title {
  color: var(--winred-text-primary);
} 