/* RegioRallye Ultimate - Styling v1.4.3 */

/* --- Allgemeines Styling & Profil --- */
.rr-user-profile, .rr-rewards-shop {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rr-user-profile h2, .rr-rewards-shop h2, .rr-user-profile h3, .rr-rewards-shop h3 {
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 10px;
    margin-top: 0;
}

/* --- Visuelle Badges (Trophäenwand) --- */
.rr-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.rr-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    padding: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.rr-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rr-badge .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #0073aa;
}

.rr-badge-name {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* --- Prämienshop (Boutique) --- */
.rr-rewards-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rr-reward-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.rr-reward-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rr-reward-item .rr-reward-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.rr-reward-item .rr-reward-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rr-reward-item h4 {
    margin-top: 0;
    font-size: 1.2em;
}

.rr-reward-item .rr-reward-description {
    flex-grow: 1;
    margin-bottom: 15px;
    color: #555;
}

.rr-reward-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rr-reward-cost {
    font-weight: bold;
    font-size: 1.1em;
    color: #1e8cbe;
}

.rr-redeem-button, .rr-redeem-button:disabled {
    background-color: #0085ba;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.rr-redeem-button:hover:not(:disabled) {
    background-color: #005a87;
}

.rr-redeem-button:disabled {
    background-color: #a0a5aa;
    cursor: not-allowed;
}

/* --- Feedback-Nachrichten --- */
#rr-redeem-result {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid transparent;
}

#rr-redeem-result.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

#rr-redeem-result.error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* === Rangliste / Leaderboard === */
.rr-leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .95em;
}

.rr-leaderboard th,
.rr-leaderboard td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.rr-leaderboard tr:nth-child(odd) {
  background: #fafafa;
}

.rr-leaderboard th {
  font-weight: 600;
  color: #333;
}

.rr-leaderboard td:first-child {
  font-weight: bold;
  text-align: center;
  width: 50px;
}