/* Contributor Hub Dashboard Styles */
.ch-dashboard {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef3 100%);
    overflow-x: hidden;
}

.ch-dashboard[data-dark-mode="1"] {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.ch-dashboard[data-dark-mode="1"] .ch-card,
.ch-dashboard[data-dark-mode="1"] .ch-welcome-banner,
.ch-dashboard[data-dark-mode="1"] .ch-info-panel {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.ch-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.ch-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: chFloat 20s infinite ease-in-out;
}

.ch-bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--ch-primary, #6366f1);
    top: -150px;
    right: -150px;
}

.ch-bg-shape-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.ch-bg-shape-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes chFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.ch-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.ch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ch-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ch-logo i {
    font-size: 2rem;
    color: var(--ch-primary, #6366f1);
    background: linear-gradient(135deg, var(--ch-primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ch-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.ch-dashboard[data-dark-mode="1"] .ch-logo h1 {
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
}

.ch-tagline {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.ch-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.5);
}

.ch-user-avatar {
    position: relative;
}

.ch-user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ch-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid white;
}

.ch-user-name {
    font-weight: 600;
    color: #1e293b;
}

.ch-user-email {
    font-size: 0.75rem;
    color: #64748b;
}

.ch-welcome-banner {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid rgba(99,102,241,0.2);
}

.ch-welcome-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ch-welcome-content i {
    font-size: 2rem;
    color: var(--ch-primary);
}

.ch-welcome-content h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.ch-welcome-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.ch-welcome-stats {
    display: flex;
    gap: 2rem;
}

.ch-welcome-stat {
    text-align: center;
}

.ch-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ch-primary);
}

.ch-stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.ch-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ch-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ch-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

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

.ch-card:hover::before {
    opacity: 0.05;
}

.ch-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ch-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ch-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ch-card-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.ch-card-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.ch-card-arrow {
    width: 32px;
    height: 32px;
    background: rgba(99,102,241,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-primary);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.ch-card:hover .ch-card-arrow {
    transform: translateX(4px);
    background: var(--ch-primary);
    color: white;
}

.ch-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--ch-primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    z-index: 1;
}

.ch-badge-notice {
    background: #ef4444;
    animation: chPulse 2s infinite;
}

@keyframes chPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.ch-card-logout .ch-card-icon {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.ch-info-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ch-info-section {
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ch-info-section i {
    font-size: 1.5rem;
    color: var(--ch-primary);
}

.ch-info-section h4 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.ch-info-section p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.ch-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.ch-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}

.ch-toast.show {
    transform: translateX(0);
}

.ch-login-prompt {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #e9eef3);
}

.ch-login-card {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.ch-login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--ch-primary);
}

.ch-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ch-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.ch-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99,102,241,0.4);
}

@media (max-width: 768px) {
    .ch-container { padding: 1rem; }
    .ch-cards-grid { grid-template-columns: 1fr; }
    .ch-welcome-banner { flex-direction: column; text-align: center; }
    .ch-welcome-stats { justify-content: center; }
}