/* ========================================
   Rep Dashboard Styles
   ======================================== */

.rep-section {
    padding: 20px 16px 80px;
}
.rep-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-paper);
    border-radius: 24px;
    padding: 40px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    filter: url(#handDrawnNoise);
}
.rep-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 8px;
    text-align: center;
}
.rep-sub {
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: center;
}
.rep-sub a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 600;
}

/* ---- Dashboard Header ---- */
.rep-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.rep-dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.rep-dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-bg);
    flex-shrink: 0;
}
.rep-dash-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rep-dash-handle {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ---- Stats ---- */
.rep-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}
.rep-stat {
    background: var(--color-paper);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.rep-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
}
.rep-stat-label {
    font-size: 0.65rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ---- Timer ---- */
.rep-timer-section {
    margin-bottom: 32px;
}
.rep-timer-card {
    background: linear-gradient(135deg, rgba(232,168,124,0.1), rgba(168,216,234,0.1));
    border: 2px solid rgba(232,168,124,0.2);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
}
.rep-timer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.rep-timer-countdown {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(to right, #E8A87C, #C3AED6, #A8D8EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.rep-timer-hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ---- Communities ---- */
.rep-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.rep-communities-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.rep-community-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-paper);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.rep-community-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.rep-community-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-bg);
    flex-shrink: 0;
}
.rep-community-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1rem;
}
.rep-community-handle {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rep-community-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.rep-community-status--active {
    color: #4CAF50;
}
.rep-community-status--completed {
    color: var(--color-text-light);
}
.accept-community-btn {
    flex-shrink: 0;
}

/* ---- Per-Community Timer ---- */
.community-timer {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(to right, #E8A87C, #C3AED6, #A8D8EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}
.submit-community-btn {
    flex-shrink: 0;
    background: var(--color-orange) !important;
    color: #fff !important;
    border-color: var(--color-orange) !important;
}

/* ---- Submit Winners ---- */
.rep-submit-section,
.rep-submitted-section {
    margin-bottom: 32px;
}
.rep-submit-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-paper);
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.rep-submit-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.rep-submit-note {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-orange);
    margin-bottom: 10px;
}
.rep-submit-hint {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.rep-submit-field {
    margin-bottom: 16px;
}
.rep-submit-success {
    text-align: center;
    color: #4CAF50;
    font-weight: 600;
    margin-top: 10px;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .rep-section {
        padding: 16px 12px 60px;
    }
    .rep-dash-header {
        gap: 10px;
    }
    .rep-dash-avatar {
        width: 40px;
        height: 40px;
    }
    .rep-dash-name {
        font-size: 1.2rem;
    }
    .rep-dash-handle {
        font-size: 0.8rem;
    }
    .rep-dash-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .rep-stat {
        padding: 14px 6px;
        border-radius: 12px;
    }
    .rep-stat-num {
        font-size: 1.4rem;
    }
    .rep-stat-label {
        font-size: 0.6rem;
    }
    .rep-community-card {
        padding: 12px 14px;
    }
    .rep-community-logo {
        width: 28px;
        height: 28px;
    }
    .rep-community-handle {
        font-size: 0.85rem;
    }
}
