/* ================================
   KAMP DASHBOARD - MODERN STYLES
   ================================ */

/* Dashboard Container */
.kamp-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dashboard Header */
.kamp-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.kamp-user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kamp-user-avatar {
    position: relative;
}

.kamp-user-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.kamp-rank-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

.kamp-user-info h1 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    font-weight: 700;
}

.kamp-user-tagline {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* User Stats */
.kamp-user-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.kamp-stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kamp-stat-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.kamp-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.kamp-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Dashboard Content */
.kamp-dashboard-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.kamp-dashboard-sidebar {
    background: white;
    border-radius: 20px;
    padding: 0;
    height: fit-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.kamp-dashboard-nav {
    padding: 20px 0;
}

.kamp-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kamp-dashboard-nav li {
    margin: 0;
}

.kamp-dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.kamp-dashboard-nav a:hover {
    background: #f9fafb;
    color: #667eea;
    border-left-color: #667eea;
}

.kamp-dashboard-nav li.active a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-left-color: #4338ca;
}

.kamp-dashboard-nav a i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

.kamp-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

.kamp-dashboard-actions {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Main Content */
.kamp-dashboard-main {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Tab Content */
.kamp-tab-content {
    display: none;
    padding: 30px;
}

.kamp-tab-content.active {
    display: block;
}

.kamp-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.kamp-tab-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kamp-tab-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kamp-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

/* Widgets */
.kamp-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.kamp-widget {
    background: #f9fafb;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e5e7eb;
}

.kamp-widget h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rank Progress */
.kamp-rank-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kamp-progress-bar {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.kamp-progress-fill {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Activity List */
.kamp-activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.kamp-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.kamp-activity-item:last-child {
    border-bottom: none;
}

.kamp-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    flex-shrink: 0;
}

.kamp-activity-icon .text-green {
    color: #10b981;
}

.kamp-activity-icon .text-red {
    color: #ef4444;
}

.kamp-activity-content p {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #1f2937;
}

.kamp-activity-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Places Grid */
.kamp-places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.kamp-place-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.kamp-place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.kamp-place-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.kamp-place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kamp-placeholder-image {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

.kamp-place-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-publish {
    background: #10b981;
    color: white;
}

.status-pending {
    background: #f59e0b;
    color: white;
}

.status-draft {
    background: #6b7280;
    color: white;
}

.kamp-place-content {
    padding: 20px;
}

.kamp-place-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #1f2937;
}

.kamp-place-content p {
    margin: 0 0 15px 0;
    color: #6b7280;
    line-height: 1.5;
}

.kamp-place-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6b7280;
}

.kamp-place-actions {
    display: flex;
    gap: 10px;
}

/* Comments List */
.kamp-comments-list {
    max-height: 600px;
    overflow-y: auto;
}

.kamp-comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.kamp-comment-avatar img {
    border-radius: 50%;
}

.kamp-comment-content {
    flex: 1;
}

.kamp-comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.kamp-comment-header strong {
    color: #1f2937;
}

.kamp-comment-header a {
    color: #667eea;
    text-decoration: none;
}

.kamp-comment-date {
    color: #6b7280;
    margin-left: auto;
}

.kamp-comment-rating {
    margin-top: 10px;
}

.kamp-comment-rating i {
    color: #d1d5db;
    margin-right: 2px;
}

.kamp-comment-rating i.active {
    color: #fbbf24;
}

/* Points Timeline */
.kamp-points-timeline {
    max-height: 600px;
    overflow-y: auto;
}

.kamp-timeline-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.kamp-timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kamp-timeline-icon.positive {
    background: #dcfce7;
    color: #10b981;
}

.kamp-timeline-icon.negative {
    background: #fee2e2;
    color: #ef4444;
}

.kamp-timeline-content {
    flex: 1;
}

.kamp-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kamp-points-change {
    font-weight: 700;
    font-size: 1.1rem;
}

.kamp-points-change.positive {
    color: #10b981;
}

.kamp-points-change.negative {
    color: #ef4444;
}

.kamp-timeline-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.kamp-total-after {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Profile Form */
.kamp-profile-form {
    max-width: 600px;
}

.kamp-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.kamp-form-section:last-child {
    border-bottom: none;
}

.kamp-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #1f2937;
}

/* Empty State */
.kamp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.kamp-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

.kamp-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #374151;
}

.kamp-empty-state p {
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Points Summary */
.kamp-points-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kamp-total-points {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Stats Grid in Quick Stats */
.kamp-quick-stats .kamp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.kamp-quick-stats .kamp-stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .kamp-dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .kamp-dashboard-sidebar {
        order: 2;
    }
    
    .kamp-dashboard-nav {
        display: none;
    }
    
    .kamp-user-stats {
        justify-content: center;
    }
    
    .kamp-dashboard-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kamp-dashboard-container {
        padding: 10px;
    }
    
    .kamp-dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .kamp-user-welcome {
        flex-direction: column;
        text-align: center;
    }
    
    .kamp-user-info h1 {
        font-size: 1.5rem;
    }
    
    .kamp-places-grid {
        grid-template-columns: 1fr;
    }
    
    .kamp-tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .kamp-form-row {
        grid-template-columns: 1fr;
    }
    
    .kamp-stat-card {
        min-width: auto;
        flex: 1;
    }
    
    .kamp-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .kamp-comment-date {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .kamp-tab-content {
        padding: 20px;
    }
    
    .kamp-dashboard-main {
        border-radius: 15px;
    }
    
    .kamp-place-actions {
        flex-direction: column;
    }
    
    .kamp-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
