/* src/_geteilt/css/profile.css */

.profile-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}



/* --- Bento Grid Layout --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1.5rem;
}

/* Responsive Bento */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Bento Cards (Glassmorphism) --- */
.bento-card {
    background: var(--bg-glass, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary, hsla(var(--primary-hue), 80%, 60%, 0.4));
}

/* Specific Card Sizes */
.card-welcome {
    grid-column: span 2;
    background: linear-gradient(135deg, hsla(var(--primary-hue), 80%, 50%, 0.1), transparent);
}

@media (max-width: 600px) {
    .card-welcome {
        grid-column: span 1;
    }
}

.card-stats {
    grid-row: span 2;
}

/* --- Card Content Styles --- */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-header svg {
    color: var(--primary);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main, #fff);
}

/* Welcome Card Specifics */
.user-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.user-name-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main, #fff);
    border: none;
    background: transparent;
    outline: none;
    width: auto;
    max-width: 100%;
}

.edit-icon {
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-name-wrapper:hover .edit-icon {
    opacity: 1;
}

/* Stats Styles */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    width: 0%;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Settings Shortcuts in Bento */
.settings-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
}

.shortcut-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.shortcut-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.shortcut-btn svg {
    color: var(--primary);
}
