/* Inline styles for specific dashboard tweaks if needed */
.level-badge-container {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.level-badge-container:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.level-icon {
    margin-right: 8px;
    color: var(--accent-primary);
}

.level-name {
    font-weight: bold;
    color: var(--text-primary);
}

.level-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.level-details-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.level-badge-container:hover .level-details-popover {
    display: block;
}

.level-list-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.6;
}

.level-list-item.active {
    opacity: 1;
    font-weight: bold;
    color: var(--accent-primary);
}

.level-list-item:last-child {
    border-bottom: none;
}

.level-list-icon {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

/* Dashboard Shop Styles */
.shop-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.credit-balance {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.shop-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.shop-item:hover {
    transform: translateY(-5px);
}

.item-preview {
    height: 150px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: var(--text-secondary);
}

.item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.item-desc {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-cost {
    font-weight: bold;
    color: var(--accent-primary);
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.85em;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Frame Styles for Shop Preview */
.item-preview {
    position: relative;
}

.item-preview[class*="frame-"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 20;
    /* Match shop item radius (top only) */
    /* Actually item-preview is square-ish inside rounded card */
}

.frame-silver::after { border: 5px solid silver; box-shadow: inset 0 0 15px rgba(192,192,192,0.5); }
.frame-neon::after { border: 4px solid #0ff; box-shadow: 0 0 15px #0ff, inset 0 0 15px #0ff; }
.frame-floral::after { border: 8px solid #ff69b4; border-style: double; }
.frame-fire::after { border: 4px solid #ff4500; box-shadow: 0 0 20px #ff0000, inset 0 0 20px #ff0000; animation: pulse-fire 1.5s infinite alternate; }
.frame-ice::after { border: 4px solid #a5f3fc; box-shadow: 0 0 15px #a5f3fc, inset 0 0 15px #a5f3fc; }
.frame-glitch::after { border: 4px solid #f0f; border-left-color: #0ff; border-right-color: #ff0; }
.frame-wooden::after { border: 8px solid #8b4513; border-style: ridge; }
.frame-rainbow::after { border: 5px solid red; animation: rainbow-border 3s linear infinite; }
.frame-shadow::after { border: 1px solid #333; box-shadow: inset 0 0 30px black; }
.frame-starlight::after { border: 3px dashed gold; box-shadow: 0 0 10px gold; }

@keyframes pulse-fire {
    from { box-shadow: 0 0 15px #ff0000, inset 0 0 15px #ff0000; border-color: #ff4500; }
    to { box-shadow: 0 0 25px #ff0000, inset 0 0 25px #ff0000; border-color: #ff0000; }
}

@keyframes rainbow-border {
    0% { border-color: red; }
    16% { border-color: orange; }
    33% { border-color: yellow; }
    50% { border-color: green; }
    66% { border-color: blue; }
    83% { border-color: indigo; }
    100% { border-color: violet; }
}

@media (max-width: 768px) {
    .feedback-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .feedback-list {
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dashboard-stats-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    
    .dashboard-stat-item {
        flex: 1 1 40%;
    }

    /* Mobile Tab Navigation */
    .tab-navigation {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.95em;
        flex-shrink: 0;
    }

    /* Mobile Shop Header */
    .shop-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .credit-balance {
        justify-content: space-between;
        width: 100%;
        margin-top: 10px;
    }

    /* Mobile Profile Adjustments */
    .user-profile-header {
        margin-bottom: 20px;
    }
    
    .profile-content {
        padding: 0 20px 20px;
    }

    .avatar-container {
        margin-top: -50px;
    }

    .author-avatar {
        width: 100px;
        height: 100px;
    }

    .user-title-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .profile-actions {
        width: 100%;
        justify-content: center;
    }

    .user-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
}
