
:root {
    --profile-accent: var(--brand-colour, #ff6b6b);
    --profile-accent-soft: rgba(255, 107, 107, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
}

.user-profile-wrapper {
    background-color: #fbfbfd;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* --- Enhanced Hero Section --- */
.profile-hero {
    background: radial-gradient(circle at top right, var(--profile-accent-soft), transparent),
                linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.profile-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* --- Avatar with Dynamic Shadow --- */
.avatar-container {
    position: relative;
    z-index: 1;
}

.avatar-main {
    width: 180px;
    height: 180px;
    border-radius: 40px; /* Squircle */
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 
                0 0 0 8px #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-main:hover {
    transform: scale(1.03) rotate(-2deg);
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-name {
    font-weight: 900;
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin: 0 0 12px 0;
    color: #111;
}

.profile-bio {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 650px;
}

/* --- Modernized Stats --- */
.stats-container {
    display: flex;
    gap: 15px;
    padding: 25px 0;
}

.stat-block {
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s;
    text-align: center;
    min-width: 100px;
}

.stat-block:hover {
    background: var(--profile-accent);
    transform: translateY(-5px);
    border-color: var(--profile-accent);
}

.stat-block:hover strong, .stat-block:hover span {
    color: #fff !important;
}

.stat-block strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
}

.stat-block span {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- NEW GRID LOGIC --- */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 30px; /* Space between cards */
}

/* --- Buttons --- */
.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-modern {
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-subscribe { 
    background: var(--profile-accent); 
    color: white; 
    box-shadow: 0 10px 20px var(--profile-accent-soft);
}

.btn-chat { 
    background: #111; 
    color: white; 
}

.btn-modern:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.15); 
    filter: brightness(1.1);
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-link-styled {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #eee;
    transition: 0.2s;
}

.page-link-styled.active {
    background: var(--profile-accent);
    color: #fff;
    border-color: var(--profile-accent);
}

.page-link-styled:hover:not(.active) {
    background: #f0f0f0;
}

@media (max-width: 992px) {
    .recipe-grid { grid-template-columns: repeat(2, 1fr); } /* 2 Columns for tablets */
}

@media (max-width: 768px) {
    .profile-flex { flex-direction: column; text-align: center; gap: 30px; }
    .stats-container { flex-wrap: wrap; justify-content: center; }
    .profile-name { font-size: 2.2rem; }
    .avatar-main { width: 140px; height: 140px; }
    .recipe-grid { grid-template-columns: 1fr; } /* 1 Column for mobile */
}


	.social-links {
display: flex;
gap: 18px;
margin-bottom: 25px;
align-items: center;
}

.social-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.social-item:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-item::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    font-size: 10px;
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.social-item:hover::after {
    opacity: 1;
}