/* ============================================================
   LifeStyleMod – Profile Page (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Container ---------- */
.prof-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 16px 50px;
    position: relative;
    z-index: 1;
}

/* ---------- Back Link ---------- */
.prof-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 22px; color: var(--text-muted); text-decoration: none;
    font-size: 13px; padding: 9px 18px;
    background: rgba(15,23,42,0.4); border: 1px solid rgba(245,158,11,0.15);
    border-radius: 30px; transition: all 0.3s; backdrop-filter: blur(10px);
}
.prof-back-link:hover {
    color: #fff;
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.1);
}

/* ---------- Profile Card ---------- */
.prof-profile-card {
    padding: 40px;
    margin-bottom: 28px;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(15,23,42,0.5));
    border: 1px solid rgba(245,158,11,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: fadeUp 0.6s ease forwards;
}
.prof-profile-card::before {
    content:'';
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.08), transparent 70%);
    z-index:-1;
}

/* Avatar */
.prof-avatar-section {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
}
.prof-avatar {
    width:120px; height:120px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:56px;
    overflow:hidden;
    border:3px solid rgba(255,255,255,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.prof-avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.prof-level-badge {
    background:rgba(15,23,42,0.6);
    backdrop-filter:blur(10px);
    padding:6px 16px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    border:1px solid rgba(255,255,255,0.1);
    color:#fbbf24;
}

/* Profile Info */
.prof-profile-info {
    flex:1;
    min-width:250px;
}
.prof-profile-name {
    font-size:32px;
    font-weight:900;
    margin-bottom:8px;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.prof-role-badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 20px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    margin-bottom:15px;
    transition:0.3s;
}
.prof-bio {
    color:var(--text-muted);
    font-size:14px;
    line-height:1.8;
    margin-top:10px;
    padding:16px;
    background:rgba(15,23,42,0.35);
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.04);
}
.prof-bio.empty {
    font-style:italic;
    color:#64748b;
}

/* Profile Actions */
.prof-profile-actions {
    display:flex;
    gap:10px;
    margin-top:18px;
    flex-wrap:wrap;
}
.prof-btn {
    padding:10px 24px;
    border-radius:30px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    transition: all 0.3s;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-family:inherit;
    border:none;
}
.prof-btn-edit {
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    color:#fff;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.prof-btn-edit:hover {
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(139,92,246,0.5);
}
.prof-btn-outline {
    background:transparent;
    border:1px solid rgba(139,92,246,0.2);
    color:#c4b5fd;
    backdrop-filter:blur(10px);
}
.prof-btn-outline:hover {
    background:rgba(139,92,246,0.1);
    border-color:#8b5cf6;
    color:#fff;
}

/* ---------- Stats Row ---------- */
.prof-stats-row {
    display:flex;
    gap:16px;
    margin-bottom:35px;
    flex-wrap:wrap;
}
.prof-stat-box {
    padding:24px;
    text-align:center;
    flex:1;
    min-width:130px;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(245,158,11,0.2);
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(12px);
}
.prof-stat-box:hover {
    transform:translateY(-4px);
    border-color:rgba(139,92,246,0.4);
    box-shadow:0 15px 40px rgba(0,0,0,0.25);
}
.prof-stat-icon {
    font-size:34px;
    display:block;
    margin-bottom:10px;
    opacity:0.8;
}
.prof-stat-box:hover .prof-stat-icon {
    opacity:1;
}
.prof-stat-number {
    font-size:38px;
    font-weight:900;
    background: linear-gradient(135deg, #fbbf24, #8b5cf6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.prof-stat-label {
    color:var(--text-muted);
    font-size:12px;
    margin-top:6px;
    font-weight:600;
}

/* ---------- Packs Section ---------- */
.prof-section-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
    flex-wrap:wrap;
    gap:15px;
}
.prof-section-title {
    font-size:22px;
    font-weight:900;
    display:flex;
    align-items:center;
    gap:10px;
}
.prof-gradient-warm {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.prof-packs-count {
    background:rgba(15,23,42,0.4);
    border:1px solid rgba(245,158,11,0.15);
    padding:7px 18px;
    border-radius:30px;
    font-size:13px;
    color:var(--text-muted);
    backdrop-filter:blur(10px);
}

/* Empty packs */
.prof-empty-packs {
    text-align:center;
    padding:60px;
    border-radius:24px;
    color:var(--text-muted);
}
.prof-empty-icon {
    font-size:64px;
    margin-bottom:16px;
}

/* Packs Grid */
.prof-packs-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:20px;
}
.prof-pack-card {
    border-radius: 24px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(245,158,11,0.2);
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(12px);
}
.prof-pack-card:hover {
    transform:translateY(-4px);
    border-color:rgba(139,92,246,0.5);
    box-shadow:0 20px 50px rgba(0,0,0,0.3);
}
.prof-pack-img-wrap {
    width:100%;
    height:160px;
    overflow:hidden;
    position:relative;
    background:#0f172a;
}
.prof-pack-img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform 0.4s;
}
.prof-pack-card:hover .prof-pack-img {
    transform:scale(1.05);
}
.prof-pack-no-img {
    width:100%;
    height:160px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:48px;
}
.prof-pack-img-overlay {
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
    opacity:0;
    transition:opacity 0.4s;
}
.prof-pack-card:hover .prof-pack-img-overlay {
    opacity:1;
}
.prof-pack-body {
    padding:18px;
}
.prof-pack-code {
    font-size:10px;
    color:#a78bfa;
    background:rgba(139,92,246,0.1);
    padding:3px 10px;
    border-radius:10px;
    display:inline-block;
    margin-bottom:8px;
    font-weight:700;
    border:1px solid rgba(139,92,246,0.15);
}
.prof-pack-title {
    font-size:16px;
    font-weight:700;
    margin-bottom:10px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.prof-pack-stats {
    display:flex;
    gap:15px;
    font-size:12px;
    color:#64748b;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,0.04);
}
.prof-pack-stats span {
    display:flex;
    align-items:center;
    gap:4px;
}

/* Hidden page */
.prof-hidden-page {
    display: none !important;
}

/* ---------- Pagination ---------- */
.prof-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.prof-page-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(245,158,11,0.15);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.prof-page-btn:hover {
    color: #fff;
    border-color: rgba(139,92,246,0.4);
}
.prof-page-btn.active {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.prof-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ---------- Role-specific body styles ---------- */
body.profile-role-owner .prof-avatar {
    border-color:#8b5cf6;
    box-shadow:0 0 25px rgba(139,92,246,0.3);
}
body.profile-role-owner .prof-role-badge {
    background:rgba(139,92,246,0.15);
    color:#c4b5fd;
    border:1px solid rgba(139,92,246,0.3);
}

body.profile-role-admin .prof-avatar {
    border-color:#6366f1;
    box-shadow:0 0 25px rgba(99,102,241,0.3);
}
body.profile-role-admin .prof-role-badge {
    background:rgba(99,102,241,0.15);
    color:#a5b4fc;
    border:1px solid rgba(99,102,241,0.3);
}

body.profile-role-pack_creator .prof-avatar {
    border-color:#2dd4bf;
    box-shadow:0 0 25px rgba(45,212,191,0.3);
}
body.profile-role-pack_creator .prof-role-badge {
    background:rgba(45,212,191,0.15);
    color:#5eead4;
    border:1px solid rgba(45,212,191,0.3);
}

body.profile-role-user .prof-avatar {
    border-color:#475569;
    box-shadow:0 0 15px rgba(71,85,105,0.2);
}
body.profile-role-user .prof-role-badge {
    background:rgba(100,116,139,0.15);
    color:#94a3b8;
    border:1px solid rgba(100,116,139,0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .prof-profile-card {
        padding: 25px;
        flex-direction:column;
        text-align:center;
    }
    .prof-avatar-section {
        margin:0 auto;
    }
    .prof-profile-name {
        font-size:26px;
    }
    .prof-stats-row {
        gap:10px;
    }
    .prof-stat-box {
        padding:16px;
        min-width:80px;
    }
    .prof-stat-number {
        font-size:28px;
    }
    .prof-packs-grid {
        grid-template-columns:1fr;
    }
    .prof-avatar {
        width:100px;
        height:100px;
        font-size:48px;
    }
    .prof-section-title {
        font-size:20px;
    }
}

@media (max-width: 480px) {
    .prof-profile-card {
        padding: 20px;
    }
    .prof-stat-box {
        padding: 14px;
    }
    .prof-stat-number {
        font-size: 24px;
    }
    .prof-pack-img-wrap, .prof-pack-no-img {
        height: 140px;
    }
}