/* ===== extracted from pages/download.php ===== */
.download-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.download-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #1e3c72;
    margin: 0 0 8px 0;
}

.download-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.download-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30,60,114,0.3);
}

.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-mod { background: #667eea; color: white; }
.badge-patch { background: #f6c945; color: #333; }
.badge-base { background: #ff6b6b; color: white; }
.badge-maps { background: #51cf66; color: white; }

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.filter-btn {
    padding: 10px 20px;
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #d0d0d0;
}

.filter-btn.active {
    background: #1e3c72;
    color: white;
}

.install-guide {
    background: #f8f9fa;
    border-left: 4px solid #1e3c72;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.install-guide h3 {
    margin-top: 0;
    color: #1e3c72;
}

.install-guide ol {
    line-height: 2;
    padding-left: 20px;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.warning-box strong {
    color: #856404;
}


/* ===== extracted from pages/download_stats.php ===== */
.admin-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.admin-stat-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.admin-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.chart-container {
    width: 100%;
    height: 300px;
    margin: 20px 0;
}

/* Race page: Classified Results sort/filter */
.race-sort-wrap {
  margin: 10px 0 16px 0;
}

.race-sort-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.race-sort-form select,
.race-sort-form button {
  padding: 8px;
  border-radius: 6px;
}

/* ===== CSP refactor helpers (no inline style attrs) ===== */
nav a.nav-download{
  background: linear-gradient(135deg, #51cf66, #37b24d);
  color: white;
  border-radius: 5px;
}
nav a.nav-download:hover{
  background: linear-gradient(135deg, #51cf66, #37b24d);
  color: white;
}

.record-wr{ background: #fff9e6; }

.squad-view-link{
  padding: 10px 20px;
  background: #666;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.squad-view-link.active{ background: #1e3c72; }

.dl-bar{ height: 100%; width: 0%; }
.dl-bar--purple{ background: linear-gradient(135deg, #667eea, #764ba2); }
.dl-bar--green{ background: linear-gradient(135deg, #51cf66, #37b24d); }
