/**
 * 後台管理 - 卡片樣式
 * Admin Cards Styles (Stats, Quick Actions, Activity)
 * 黑金/白金主題 (Black-Gold / White-Gold Theme)
 */

/* ==================== 統計卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--admin-bg-elevated);
    border: 1px solid rgba(212, 165, 32, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(212, 165, 32, 0.15);
    border-color: rgba(212, 165, 32, 0.25);
}

.light-theme .stat-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.08);
}

.light-theme .stat-card:hover {
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.15);
    border-color: rgba(184, 134, 11, 0.25);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.users {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 165, 32, 0.3);
}

.stat-icon.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.stat-icon.games {
    background: linear-gradient(135deg, #f5c542 0%, #d4a520 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 197, 66, 0.3);
}

.stat-icon.logins {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    font-size: 0.875rem;
    color: #888;
    margin: 0.25rem 0 0 0;
}

.light-theme .stat-info p {
    color: var(--admin-text-secondary);
}

/* ==================== 快捷操作 ==================== */
.quick-actions,
.recent-activity {
    background-color: var(--admin-bg-elevated);
    border: 1px solid rgba(212, 165, 32, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.light-theme .quick-actions,
.light-theme .recent-activity {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.08);
}

.quick-actions h3,
.recent-activity h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions h3 i,
.recent-activity h3 i {
    color: var(--admin-primary);
}

.light-theme .quick-actions h3 i,
.light-theme .recent-activity h3 i {
    color: var(--admin-primary-dark);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 50%, #8b6914 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 32, 0.35);
}

.action-btn:hover {
    background: linear-gradient(135deg, #f5c542 0%, #d4a520 50%, #b8860b 100%);
    transform: translateY(-0.125rem);
    box-shadow: 0 8px 25px rgba(212, 165, 32, 0.45);
}

/* ==================== 開發部屬管理 ==================== */
.dev-deploy-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dev-deploy-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dev-deploy-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 5.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ccc;
    white-space: nowrap;
}

.dev-deploy-label i {
    color: var(--admin-primary);
    font-size: 0.875rem;
}

.light-theme .dev-deploy-label {
    color: #555;
}

.light-theme .dev-deploy-label i {
    color: #8b6914;
}

.backend-env-btn.env-jenkins {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.backend-env-btn.env-jenkins:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-0.125rem);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.backend-brand-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-left: 5.5rem;
}

/* ==================== 遊戲後台連結 ==================== */

.backend-brand-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.backend-brand-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--admin-primary);
    background: rgba(212, 165, 32, 0.1);
    border: 1px solid rgba(212, 165, 32, 0.2);
    border-radius: 0.375rem;
    white-space: nowrap;
}

.light-theme .backend-brand-label {
    color: #8b6914;
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.18);
}

.backend-env-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.backend-env-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.backend-env-btn.env-dev {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.backend-env-btn.env-dev:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-0.125rem);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.backend-env-btn.env-uat {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.backend-env-btn.env-uat:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-0.125rem);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.backend-env-btn.env-pp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.backend-env-btn.env-pp:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: translateY(-0.125rem);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

.backend-env-btn.env-prod {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.backend-env-btn.env-prod:hover {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    transform: translateY(-0.125rem);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}

/* ==================== 活動列表 ==================== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(212, 165, 32, 0.03);
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 165, 32, 0.05);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background-color: rgba(212, 165, 32, 0.06);
    border-color: rgba(212, 165, 32, 0.1);
}

.light-theme .activity-item {
    background-color: rgba(184, 134, 11, 0.03);
    border: 1px solid rgba(184, 134, 11, 0.05);
}

.light-theme .activity-item:hover {
    background-color: rgba(184, 134, 11, 0.06);
    border-color: rgba(184, 134, 11, 0.1);
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(212, 165, 32, 0.15);
    color: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.light-theme .activity-icon {
    background-color: rgba(184, 134, 11, 0.12);
    color: var(--admin-primary-dark);
}

.activity-content p {
    margin: 0;
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #888;
}

.light-theme .activity-time {
    color: var(--admin-text-secondary);
}
