338 lines
7.0 KiB
CSS
338 lines
7.0 KiB
CSS
/* Profile Page - Full width layout, darker share button, responsive grid */
|
|
|
|
/* ── Profile header ──────────────────────────────────────────────────── */
|
|
.profile-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 32px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
/* ── Profile avatar ──────────────────────────────────────────────────── */
|
|
.profile-avatar {
|
|
width: 110px;
|
|
height: 110px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* ── Profile info column ─────────────────────────────────────────────── */
|
|
.profile-info {
|
|
flex: 1;
|
|
}
|
|
|
|
#profileDisplayName {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
#profileSlug {
|
|
color: #64748b;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.profile-badge-icon {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
#profileBio {
|
|
margin-bottom: 8px;
|
|
}
|
|
#profileSpecialities {
|
|
color: #64748b;
|
|
}
|
|
|
|
#profileStats {
|
|
display: flex;
|
|
gap: 18px;
|
|
color: #64748b;
|
|
margin-top: 12px;
|
|
font-size: 0.95rem;
|
|
}
|
|
#profileStats strong {
|
|
color: #111827;
|
|
}
|
|
|
|
/* ── Profile actions column ──────────────────────────────────────────── */
|
|
#profileActions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
min-width: 220px;
|
|
}
|
|
|
|
#profileActions .login-button {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
.profile-tier-list {
|
|
background: #ffffff;
|
|
border: 1px solid #eef2f7;
|
|
border-radius: 16px;
|
|
display: grid;
|
|
gap: 10px;
|
|
margin-top: 6px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.profile-tier-list h3 {
|
|
font-size: 0.95rem;
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.profile-tier-option {
|
|
align-items: center;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
color: #334155;
|
|
cursor: pointer;
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: space-between;
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
}
|
|
|
|
.profile-tier-option.active {
|
|
background: #eef2ff;
|
|
border-color: #818cf8;
|
|
color: #2563eb;
|
|
}
|
|
|
|
.profile-tier-option strong,
|
|
.profile-tier-option small {
|
|
display: block;
|
|
}
|
|
|
|
.profile-tier-option small {
|
|
color: #64748b;
|
|
font-size: 0.75rem;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.profile-tier-option b {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ── Profile tabs ────────────────────────────────────────────────────── */
|
|
.profile-tabs {
|
|
display: flex;
|
|
gap: 24px;
|
|
border-bottom: 2px solid #e5e7eb;
|
|
margin: 32px 0 18px 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ── Prompts grid ────────────────────────────────────────────────────── */
|
|
#profile-prompts-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.profile-grid-loading {
|
|
grid-column: 1 / -1;
|
|
color: #64748b;
|
|
text-align: center;
|
|
padding: 28px;
|
|
}
|
|
.profile-grid-empty {
|
|
grid-column: 1 / -1;
|
|
color: #64748b;
|
|
text-align: center;
|
|
padding: 28px;
|
|
}
|
|
.profile-grid-error {
|
|
grid-column: 1 / -1;
|
|
color: #ef4444;
|
|
text-align: center;
|
|
padding: 28px;
|
|
}
|
|
.profile-prompt-card {
|
|
background: #fff;
|
|
border-radius: 18px;
|
|
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
|
|
padding: 18px;
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
.profile-prompt-card:focus-within,
|
|
.profile-prompt-card:hover {
|
|
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
|
|
}
|
|
.profile-prompt-link {
|
|
color: inherit;
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
text-decoration: none;
|
|
}
|
|
.profile-prompt-img {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
}
|
|
.profile-prompt-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.profile-prompt-title {
|
|
font-weight: 700;
|
|
}
|
|
.profile-prompt-desc {
|
|
color: #64748b;
|
|
margin-bottom: 8px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.profile-prompt-meta {
|
|
display: flex;
|
|
gap: 16px;
|
|
color: #64748b;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
.profile-prompt-edit-btn {
|
|
border: none;
|
|
background: #f1f5f9;
|
|
color: #334155;
|
|
border-radius: 10px;
|
|
padding: 6px 10px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ── Inner spacing for the profile card ─────────────────────────────── */
|
|
.profile-main {
|
|
background: transparent !important;
|
|
border-radius: 0 !important;
|
|
box-shadow: none !important;
|
|
padding: 20px 32px !important;
|
|
margin: 0 auto !important;
|
|
width: 100%;
|
|
max-width: 1600px; /* Limits content on very large screens, but still wide */
|
|
}
|
|
|
|
/* Make prompts grid use more columns on large screens */
|
|
.profile-main section:last-child {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
|
|
gap: 24px !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
/* Share button: darker background and text */
|
|
#shareProfileButton {
|
|
background: #cbd5e1 !important; /* darker gray */
|
|
color: #1e293b !important;
|
|
box-shadow: none !important;
|
|
border: none !important;
|
|
}
|
|
|
|
#manageTiersButton {
|
|
background: #f3e8ff !important;
|
|
color: #7c3aed !important;
|
|
box-shadow: none !important;
|
|
border: 1px solid #d8b4fe !important;
|
|
}
|
|
|
|
/* Buttons keep rounded corners */
|
|
.login-button {
|
|
align-items: center;
|
|
border-radius: 14px !important;
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.login-button i {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.profile-tab {
|
|
border: none;
|
|
background: transparent;
|
|
color: #64748b;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-weight: 600;
|
|
padding: 10px 0;
|
|
border-bottom: 2px solid transparent;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.profile-tab.active {
|
|
color: #3b82f6;
|
|
border-bottom-color: #3b82f6;
|
|
}
|
|
|
|
.profile-tab:hover:not(.active) {
|
|
color: #334155;
|
|
}
|
|
|
|
/* Prompt cards: rounded corners */
|
|
.profile-main section > div {
|
|
border-radius: 18px !important;
|
|
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
|
|
}
|
|
|
|
/* Prompt images: rounded corners */
|
|
.profile-main section img {
|
|
border-radius: 12px !important;
|
|
}
|
|
|
|
/* Avatar remains round */
|
|
.profile-avatar {
|
|
border-radius: 50% !important;
|
|
width: 110px;
|
|
height: 110px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* All outer containers stay square */
|
|
.layout,
|
|
.profile-main,
|
|
.profile-header,
|
|
.profile-tabs,
|
|
nav {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* Responsive: tablets */
|
|
@media (max-width: 768px) {
|
|
.profile-main {
|
|
padding: 16px !important;
|
|
}
|
|
.profile-header {
|
|
flex-direction: column;
|
|
align-items: flex-start !important;
|
|
}
|
|
.profile-header > div:last-child {
|
|
flex-direction: row;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Responsive: mobile */
|
|
@media (max-width: 480px) {
|
|
.profile-main {
|
|
padding: 12px !important;
|
|
}
|
|
.profile-header > div:last-child {
|
|
flex-direction: column;
|
|
}
|
|
.profile-main section:last-child {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
}
|