/* ====================================================================
   PromptGet - User Profile & Favorites System Stylesheet
   ==================================================================== */

:root {
    --bg-dark: #050508;
    --bg-card: rgba(18, 20, 32, 0.75);
    --bg-card-hover: rgba(26, 29, 46, 0.9);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(139, 92, 246, 0.3);
    
    --accent-primary: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
    
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-dim: #64748b;
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

.page-profile {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.profile-container {
    max-width: 1200px;
    margin: 100px auto 60px auto;
    width: 92%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --- Hero User Card --- */
.profile-hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.12);
    position: relative;
    overflow: hidden;
}

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

.profile-avatar-ring {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}

.profile-meta h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-meta p {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Stats Counter Grid --- */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.stat-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.stat-icon.violet {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
}

.stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* --- Favorites Section Header --- */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 14px;
}

.section-title-row h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Heart Button Styling site-wide */
.favorite-btn {
    transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-btn.is-active {
    color: #ec4899 !important;
    border-color: rgba(236, 72, 153, 0.4) !important;
    background: rgba(236, 72, 153, 0.15) !important;
}

.favorite-btn.is-active span {
    animation: heartPulse 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Empty Favorites View */
.empty-favorites-box {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-lg);
    color: var(--text-sub);
}

.empty-favorites-box i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}
