* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #e1e4e8;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #0366d6;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    display: inline-block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0366d6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-weight: 600;
    color: #0366d6;
    text-decoration: none;
}

.username:hover {
    text-decoration: underline;
}

.username-link {
    color: #0366d6;
    text-decoration: none;
    font-weight: 500;
}

.username-link:hover {
    text-decoration: underline;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}

.author-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    vertical-align: middle;
    margin-right: 5px;
}

.comment-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    vertical-align: middle;
    margin-right: 8px;
}

.gems {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.notifications-bell {
    position: relative;
    font-size: 20px;
    text-decoration: none;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.notifications-bell:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: 0px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.btn-primary, .btn-hero, .btn-secondary, .btn-action, .btn-action-danger, .btn-sm {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: #0366d6;
    color: white;
}

.btn-primary:hover {
    background: #0256c4;
}

.btn-hero {
    background: #28a745;
    color: white;
    font-size: 18px;
    padding: 12px 30px;
}

.btn-hero:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-action {
    background: #f0f0f0;
    color: #333;
    margin: 5px;
}

.btn-action:hover {
    background: #e0e0e0;
}

.btn-action.upvoted {
    background: #e6f7ff;
    color: #0366d6;
    border: 1px solid #0366d6;
    font-weight: 600;
}

.btn-action-danger {
    background: #dc3545;
    color: white;
    margin: 5px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-link, .link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #0366d6;
    cursor: pointer;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
}

.link-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.btn-link:hover {
    text-decoration: underline;
}

.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.lead {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.dashboard {
    padding: 30px 20px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-options {
    margin-bottom: 20px;
}

.sort-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn.active {
    background: #0366d6;
    color: white;
}

.hacks-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hack-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    border: 3px solid #0366d6;
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0366d6, #00d4ff, #0366d6);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.hack-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.hack-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

.hack-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 40px rgba(3, 102, 214, 0.35), 
                0 0 0 1px rgba(3, 102, 214, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #00d4ff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.hack-card:hover::before {
    animation: shimmer 1s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hack-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.hack-card-main {
    flex: 1;
    min-width: 0;
}

.hack-card-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hack-card h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.hack-card:hover h2 {
    color: #0366d6;
}

.hack-meta {
    color: #666;
    font-size: 15px;
    margin-bottom: 12px;
}

.event-ribbons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
}

.event-ribbon {
    display: block;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #ff9800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.event-ribbon:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #f57c00;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

.event-ribbon strong {
    color: #000;
}

.hack-teaser {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #444;
}

.hack-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hack-card-content {
        flex-direction: column;
    }
    
    .hack-card-action {
        width: 100%;
    }
    
    .hack-card-action .btn-unlock {
        width: 100%;
    }
    
    .hack-card h2 {
        font-size: 22px;
    }
}

.paywall-badge {
    background: #ffc107;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.form-group {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.hack-view {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 20px;
}

.hack-view h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hack-content {
    margin: 30px 0;
    font-size: 18px;
    line-height: 1.8;
}

.hack-full-content {
    margin-top: 20px;
    white-space: pre-wrap;
}

.hack-actions {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.paywall {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.paywall h3 {
    margin-bottom: 15px;
}

.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.comments-section form {
    margin-bottom: 30px;
}

.comments-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 10px;
    resize: vertical;
}

.comment {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e1e4e8;
    transition: box-shadow 0.2s;
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.comment-meta strong {
    color: #0366d6;
    font-weight: 600;
}

.comment p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.rating-stars {
    display: flex;
    gap: 10px;
    font-size: 40px;
    justify-content: center;
    margin: 20px 0;
    cursor: pointer;
}

.rating-stars span {
    opacity: 0.3;
    transition: opacity 0.2s;
}

.rating-stars span.lit {
    opacity: 1;
}

.profile {
    padding: 30px 20px;
}

.profile-header {
    background: white;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
}

.profile-info h1 {
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.badges-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.badge {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.badge img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.activity-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h4 {
    font-size: 32px;
    color: #0366d6;
    margin-bottom: 10px;
}

.leaderboard {
    padding: 30px 20px;
}

.leaderboard h1 {
    margin-bottom: 30px;
}

.leaderboard-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.winner-row {
    background: #fff3cd;
}

.admin-dashboard {
    padding: 30px 20px;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.notification-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-type {
    background: #0366d6;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.notif-time {
    color: #666;
    font-size: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.badge-admin {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.badge-admin img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.upgrade-modal {
    max-width: 600px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.upgrade-modal h2 {
    margin-bottom: 20px;
}

.upgrade-modal ul {
    margin: 20px 0;
    padding-left: 30px;
}

.upgrade-modal li {
    margin: 10px 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .lead {
        font-size: 18px;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .brand-text {
        font-size: 18px;
    }
    
    .brand-logo {
        width: 32px;
        height: 32px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #e1e4e8;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar {
        position: relative;
    }
}

/* Event Pages */
.event-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.event-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.event-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.event-description {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.event-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
    opacity: 0.9;
}

.event-info span {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

.status-active {
    background: #28a745 !important;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.status-ended {
    background: #6c757d !important;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.event-leaderboard h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.leaderboard-item.rank-1 {
    border: 3px solid #FFD700;
    background: linear-gradient(to right, #fff9e6, white);
}

.leaderboard-item.rank-2 {
    border: 3px solid #C0C0C0;
    background: linear-gradient(to right, #f5f5f5, white);
}

.leaderboard-item.rank-3 {
    border: 3px solid #CD7F32;
    background: linear-gradient(to right, #fff5e6, white);
}

.rank-badge {
    font-size: 36px;
    min-width: 60px;
    text-align: center;
}

.hack-info {
    flex: 1;
}

.hack-info h3 {
    margin-bottom: 8px;
}

.hack-info h3 a {
    color: #0366d6;
    text-decoration: none;
    font-size: 22px;
}

.hack-info h3 a:hover {
    text-decoration: underline;
}

.hack-meta {
    font-size: 16px;
    color: #666;
}

.hack-meta a {
    color: #0366d6;
    text-decoration: none;
}

.hack-meta a:hover {
    text-decoration: underline;
}

.hack-score {
    text-align: center;
    min-width: 120px;
}

.score-number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
}

.score-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-breakdown {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.event-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-card h3 {
    margin-bottom: 12px;
    color: #0366d6;
}

.event-card p {
    margin-bottom: 8px;
    color: #666;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.events-list {
    margin-top: 20px;
}

.event-hacks-list, .available-hacks-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.hack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    font-size: 20px;
}

/* Social Wall Styles */
.social-intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.social-post {
    border-left: 4px solid #667eea;
}

.post-header {
    margin-bottom: 16px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.post-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tier-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.tier-team {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    color: white;
}

.tier-free {
    background: #e1e4e8;
    color: #666;
}

.post-time {
    color: #666;
    font-size: 14px;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.stat-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.stat-btn:hover {
    background: #f8f9fa;
    color: #0366d6;
}

.stat-btn.upvoted {
    background: #e6f7ff;
    color: #0366d6;
    font-weight: 600;
}

.upgrade-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.upgrade-banner p {
    margin: 0;
    font-size: 18px;
}

.upgrade-banner .btn-sm {
    background: white;
    color: #667eea;
    margin-left: 12px;
    font-weight: 600;
}

.upgrade-banner .btn-sm:hover {
    background: #f8f9fa;
}

/* Responsive Social Wall */
@media (max-width: 768px) {
    .post-avatar, .post-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .tier-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    color: white;
    margin-top: 80px;
    padding: 40px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 1fr;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-badge span {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Dashboard Overview Styles */
.dashboard-subtitle {
    color: #666;
    font-size: 18px;
    margin-top: -10px;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

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

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #0366d6;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-card.upgrade-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card.upgrade-cta .stat-value {
    color: white;
}

.stat-card.upgrade-cta .stat-label {
    color: white;
}

.dashboard-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.section-description {
    color: #666;
    margin-bottom: 24px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.preview-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.clickable-card {
    cursor: pointer;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.preview-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.preview-author {
    font-weight: 600;
    color: #0366d6;
    text-decoration: none;
}

.preview-author:hover {
    text-decoration: underline;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.preview-title a {
    color: #333;
    text-decoration: none;
}

.preview-title a:hover {
    color: #0366d6;
}

.preview-teaser {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.preview-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.preview-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.upgrade-teaser {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upgrade-teaser-content {
    text-align: center;
    margin-bottom: 32px;
}

.upgrade-teaser-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.upgrade-teaser-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.preview-blur {
    position: relative;
    filter: blur(4px);
    opacity: 0.6;
    pointer-events: none;
}

.preview-card.blurred {
    margin-bottom: 16px;
}

.leaderboard-preview {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-rank {
    font-weight: bold;
    color: #0366d6;
    font-size: 18px;
    min-width: 30px;
}

.leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.leader-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0366d6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.leader-name {
    flex: 1;
    font-weight: 600;
    color: #0366d6;
    text-decoration: none;
}

.leader-name:hover {
    text-decoration: underline;
}

.leader-gems {
    font-weight: 600;
    color: #333;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-card h3 {
    margin-bottom: 12px;
    color: #333;
}

.event-card p {
    color: #666;
    margin-bottom: 16px;
}

.empty-message {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

.empty-message a {
    color: #0366d6;
    text-decoration: none;
    font-weight: 600;
}

.empty-message a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Preview image thumbnail in dashboard */
.preview-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    outline: none;
}

.image-carousel:focus {
    outline: 3px solid #0366d6;
    outline-offset: 2px;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-nav {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .carousel-counter {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Unlock Button Styles */
.btn-unlock {
    padding: 14px 28px;
    border: 2px solid #ffc107;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
    min-width: 140px;
}

.btn-unlock:hover {
    background: #ffc107;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-unlock.locked {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-color: #ffc107;
    font-weight: 700;
}

.btn-unlock.locked:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

.btn-unlock.unlocked {
    background: linear-gradient(135deg, #d4edda 0%, #b8dac4 100%);
    border-color: #28a745;
    color: #155724;
}

.btn-unlock.unlocked:hover {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    color: white;
}

.btn-unlock.creator {
    background: linear-gradient(135deg, #e7f3ff 0%, #cfe2ff 100%);
    border-color: #0066cc;
    color: #004085;
}

.btn-unlock.creator:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
}

.btn-unlock.free {
    background: linear-gradient(135deg, #d1ecf1 0%, #b3dfe6 100%);
    border-color: #17a2b8;
    color: #0c5460;
}

.btn-unlock.free:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}
