/* Affiliate Status Indicators */
.affiliate-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.affiliate-status.active {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.affiliate-status.inactive {
    background-color: #F44336;
}

/* Leaderboard Styles */
.bhg-leaderboard-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bhg-leaderboard-container h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bhg-table-container {
    overflow-x: auto;
}

.bhg-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    min-width: 600px;
}

.bhg-leaderboard-table th {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.bhg-leaderboard-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.bhg-leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bhg-leaderboard-table tr:hover {
    background-color: #f1f7fd;
}

/* Hunt Grid Styles */
.bhg-hunts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.bhg-hunt-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bhg-hunt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hunt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hunt-title {
    margin: 0;
    font-size: 1.4em;
    color: #2c3e50;
}

.hunt-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.stat-label {
    font-weight: 600;
    color: #7f8c8d;
}

.stat-value {
    font-weight: 700;
    color: #2c3e50;
}

/* Historical Hunts */
.historical-hunts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.historical-hunt-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    background: #fff;
}

.historical-hunt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tournament Styles */
.bhg-tournaments {
    margin: 20px 0;
}

.tournament-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.tournament-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Form Styles */
.bhg-form input[type="text"],
.bhg-form input[type="number"],
.bhg-form select {
    border: 2px solid #3f51b5;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 15px;
}

/* Status Indicators */
.bhg-status-active {
    color: #28a745;
    font-weight: 600;
}

.bhg-status-completed {
    color: #17a2b8;
    font-weight: 600;
}

.bhg-status-pending {
    color: #6c757d;
    font-weight: 600;
}

/* Pagination */
.bhg-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.bhg-pagination a {
    margin: 0 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
}

.bhg-pagination a.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bhg-hunts-grid,
    .historical-hunts-grid {
        grid-template-columns: 1fr;
    }
    
    .hunt-stats {
        grid-template-columns: 1fr;
    }
    
    .bhg-leaderboard-container {
        padding: 15px;
    }
}