/* ============================================
   Badges Page - Profesyonel Tasarım
   ============================================ */

/* Misafir CTA Header */
.badges-guest-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.12) 50%, rgba(236, 72, 153, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.badges-guest-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badges-guest-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.badges-guest-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badges-guest-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Misafirler için rozetler tam renkli (grayscale yok) */
.badges-page-guest .badge-item.locked .badge-icon-wrapper {
    filter: none;
}

.badges-page-guest .badge-item.locked {
    opacity: 1;
}

.badges-guest-footer-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.badges-guest-footer-cta p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.badges-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Header Card - Kompakt */
.badges-header-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(236, 72, 153, 0.06) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.badges-header-content {
    margin-bottom: 1rem;
}

.badges-page-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badges-page-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.badges-progress-wrapper {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .badges-progress-wrapper {
    background: rgba(11, 18, 35, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.4);
}

.badges-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.badges-progress-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badges-progress-percent {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.badges-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .badges-progress-bar {
    background: rgba(51, 65, 85, 0.4);
}

.badges-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.badges-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: qm-shimmer 2s infinite;
}

@keyframes qm-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.badges-progress-stats {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stats Grid */
.badges-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.badge-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.badge-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.badge-stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.badge-stat-icon-purple {
    background: #8b5cf6;
}

.badge-stat-icon-blue {
    background: #3b82f6;
}

.badge-stat-icon-green {
    background: #22c55e;
}

.badge-stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.badge-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.xp-progress-card {
    padding: 1rem;
}

.xp-progress-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}

.xp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.xp-progress-level {
    font-weight: 700;
    color: var(--text-primary);
}

.xp-progress-next {
    color: var(--text-secondary);
    font-weight: 600;
}

.xp-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.xp-progress-text {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Filter Tabs */
.badges-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.filter-count {
    padding: 0.125rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-tab.active .filter-count {
    background: var(--accent-primary);
    color: white;
}

/* Badges Content */
.badges-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge-category-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.badge-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.badge-category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.badge-category-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

/* Badge Item */
.badge-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: var(--accent-primary);
}

.badge-item.earned {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: var(--accent-primary);
}

.badge-item.locked {
    opacity: 0.7;
}

.badge-item.locked .badge-icon-wrapper {
    filter: grayscale(60%) opacity(0.85);
}

.badge-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border: 3px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: transform 0.3s ease;
}

.badge-item:hover .badge-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    display: block;
}

.badge-checkmark {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.badge-lock {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.4);
}

.badge-info {
    text-align: center;
}

.badge-name {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.badge-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-rarity {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 968px) {
    .badges-page {
        padding: 1rem 0.5rem;
    }
    
    .badges-header-card {
        padding: 0.875rem 1rem;
    }
    
    .badges-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xp-progress-card {
        grid-column: 1 / -1;
    }
    
    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .badges-guest-title {
        font-size: 1.375rem;
    }
    
    .badges-guest-desc {
        font-size: 0.9375rem;
    }
    
    .badges-page-title {
        font-size: 1.25rem;
    }
    
    .badges-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .badge-stat-card {
        padding: 0.875rem;
    }
    
    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.875rem;
    }
    
    .badge-item {
        padding: 1rem;
    }
    
    .badge-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .badges-filter-tabs {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .filter-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .badges-header-card {
        padding: 0.75rem 1rem;
    }
    
    .badge-category-section {
        padding: 1.25rem;
    }
    
    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .badge-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .badge-name {
        font-size: 0.875rem;
    }
    
    .badge-description {
        font-size: 0.75rem;
        min-height: 2.25rem;
    }
}
