/**
 * ReachTag Badges - OrgReach Brand Styles
 */

/* Container */
.reachtag-profile-container {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(130, 61, 216, 0.07);
    margin: 20px 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

.reachtag-profile-container.layout-compact {
    padding: 16px;
}

.reachtag-profile-container.layout-badges-only {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* User Header */
.reachtag-user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.reachtag-user-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #823dd8;
}

.reachtag-user-info {
    flex: 1;
}

.reachtag-user-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: #23232b;
}

.reachtag-user-title {
    margin: 0 0 12px 0;
    color: #5b616b;
    font-size: 16px;
}

.reachtag-user-level {
    display: flex;
    gap: 16px;
    align-items: center;
}

.level-badge {
    background: #823dd8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.total-points {
    color: #5b616b;
    font-weight: 600;
}

/* Stats Grid */
.reachtag-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.reachtag-stat-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 24px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #23232b;
}

.stat-label {
    font-size: 12px;
    color: #5b616b;
}

/* Section Titles */
.section-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #23232b;
}

/* Region Section */
.reachtag-region-section {
    margin-bottom: 24px;
}

.region-info {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.region-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #23232b;
}

.region-state {
    margin: 0 0 16px 0;
    color: #5b616b;
}

.region-impact {
    margin-bottom: 16px;
}

.impact-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #5b616b;
}

.impact-bar {
    background: #ececf2;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.impact-fill {
    background: #823dd8;
    height: 100%;
    transition: width 0.3s ease;
}

.impact-value {
    font-size: 14px;
    font-weight: 600;
    color: #823dd8;
}

.region-needs {
    margin-top: 16px;
}

.needs-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #5b616b;
}

.needs-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.need-tag {
    background: #a26cf5;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Badges Section */
.reachtag-badges-section {
    margin-bottom: 24px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.badge-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(130, 61, 216, 0.15);
}

.badge-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon img {
    max-width: 100%;
    max-height: 100%;
}

.badge-emoji {
    font-size: 36px;
}

.badge-name {
    font-size: 12px;
    font-weight: 600;
    color: #23232b;
    margin-bottom: 4px;
}

.badge-date {
    font-size: 10px;
    color: #5b616b;
}

.more-badges {
    background: #ececf2;
}

.more-count {
    font-size: 24px;
    font-weight: bold;
    color: #823dd8;
}

/* Causes Section */
.reachtag-causes-section {
    margin-bottom: 24px;
}

.causes-chart {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cause-item {
    margin-bottom: 16px;
}

.cause-item:last-child {
    margin-bottom: 0;
}

.cause-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cause-icon {
    font-size: 20px;
}

.cause-name {
    flex: 1;
    font-weight: 500;
    color: #23232b;
}

.cause-percentage {
    font-weight: 600;
    color: #5b616b;
}

.cause-bar {
    background: #ececf2;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.cause-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* No Data Message */
.reachtag-no-data {
    text-align: center;
    padding: 40px;
    color: #5b616b;
}

/* Responsive */
@media (max-width: 768px) {
    .reachtag-user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .reachtag-user-level {
        justify-content: center;
    }
    
    .reachtag-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}