/* Profile Page Styles - Enhanced with Modal Form Fixes // Location: /public_html/profile/assets/styles.css */

/* The `:root` selector was missing here, so this entire design-token block
   was an invalid rule that every browser silently discarded. Result:
   --fusion-grad, --border, --primary and --trans-fast all resolved to
   nothing, which is why the profile's primary buttons rendered with a
   transparent background and white text — the "Go to Dashboard" link was
   painting white-on-white. */
:root {--gold: #F9C94C;--orange: #F28E1C;--primary-grad: linear-gradient(135deg, #F9C94C 0%, #F28E1C 100%);--accent-purple: #7C3AED;--accent-blue: #3B82F6;--fusion-grad: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(59, 130, 246, 0.95));

--bg: #F4F6FB;
--card-bg: #FFFFFF;
--text-main: #0F172A;
--text-muted: #64748B;
--border: #E2E8F0;

--radius-sm: 12px;
--radius-md: 16px;
--radius-lg: 24px;
--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
--shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

--trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--trans-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);

}

*,*::before,*::after {box-sizing: border-box;margin: 0;padding: 0;}

body {font-family: 'Inter', system-ui, -apple-system, sans-serif;background: var(--bg);color: var(--text-main);line-height: 1.5;font-size: 14px;}

button {font-family: inherit;border: none;background: none;cursor: pointer;color: inherit;}

a {text-decoration: none;color: inherit;}

ul {list-style: none;}

img {display: block;max-width: 100%;}

.font-display {font-family: 'Space Grotesk', 'Inter', sans-serif;}

/* ============================================================================LAYOUT============================================================================ */

.app {display: flex;min-height: 100vh;width: 100%;}

.main {flex: 1;margin-left: 260px;padding: 24px 32px 48px;transition: margin-left var(--trans-smooth);min-width: 0;}

/* ============================================================================TOAST NOTIFICATIONS============================================================================ */

.toast-container {position: fixed;top: 24px;right: 24px;z-index: 9999;display: flex;flex-direction: column;gap: 12px;max-width: 400px;}

.toast {background: white;border-radius: var(--radius-sm);padding: 16px;box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);display: flex;align-items: center;gap: 12px;border-left: 4px solid var(--accent-blue);animation: toast-slide-in 0.3s ease-out;}

.toast-success {border-left-color: #10B981;}

.toast-error {border-left-color: #EF4444;}

.toast-warning {border-left-color: #F59E0B;}

.toast-info {border-left-color: var(--accent-blue);}

.toast-exit {animation: toast-slide-out 0.3s ease-out forwards;}

@keyframes toast-slide-in {from {transform: translateX(400px);opacity: 0;}

to {
    transform: translateX(0);
    opacity: 1;
}

}

@keyframes toast-slide-out {from {transform: translateX(0);opacity: 1;}

to {
    transform: translateX(400px);
    opacity: 0;
}

}

/* ============================================================================MODALS - UPDATED WITH FORM FIX============================================================================ */

.modal {display: none;position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(15, 23, 42, 0.6);backdrop-filter: blur(4px);z-index: 9999;align-items: center;justify-content: center;}

.modal.active {display: flex;}

.modal-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 1;}

.modal-content {position: relative;background: white;border-radius: 16px;max-width: 500px;width: 90%;max-height: 90vh;overflow-y: auto;box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);z-index: 2;animation: modal-slide-up 0.3s ease-out;}

@keyframes modal-slide-up {from {transform: translateY(50px);opacity: 0;}

to {
    transform: translateY(0);
    opacity: 1;
}

}

.modal-content.modal-wide {max-width: 700px;}

/* Modal Header */.modal-header {display: flex;align-items: center;justify-content: space-between;padding: 24px 24px 20px;border-bottom: 1px solid #e2e8f0;}

.modal-header h2 {margin: 0;font-size: 24px;font-weight: 700;color: #0f172a;}

.modal-close {background: white;border: 1px solid #e2e8f0;color: #64748b;cursor: pointer;padding: 8px;border-radius: 8px;display: flex;align-items: center;justify-content: center;transition: all 0.2s;width: 36px;height: 36px;}

.modal-close {background: #f8fafc;color: #0f172a;}

/* ============================================================================MODAL FORMS - CRITICAL FIX============================================================================ */

.modal-content form {padding: 24px;}

.form-group {margin-bottom: 20px;}

.form-group {margin-bottom: 0;}

/* Form Labels */.form-group label,.form-group .form-label {display: block;margin-bottom: 8px;font-size: 14px;font-weight: 600;color: #0f172a;}

/* Form Inputs - All Types */.form-group input,.form-group textarea,.form-group input[type="text"],.form-group input[type="url"],.form-group input[type="email"],.form-group input[type="password"] {width: 100% !important;padding: 12px 16px !important;background: #ffffff !important;border: 1px solid #cbd5e1 !important;border-radius: 8px !important;font-size: 14px !important;font-family: 'Inter', system-ui, -apple-system, sans-serif !important;color: #0f172a !important;transition: all 0.2s !important;box-sizing: border-box !important;line-height: 1.5 !important;}

/* Textarea Specific */.form-group textarea {resize: vertical !important;min-height: 100px !important;}

/* Focus States */.form-group input,.form-group textarea {outline: none !important;border-color: #3b82f6 !important;box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;}

/* Placeholder Styles */.form-group input::placeholder,.form-group textarea::placeholder {color: #94a3b8 !important;opacity: 1 !important;}

/* Modal Actions */.modal-actions {padding: 20px 24px;display: flex;gap: 12px;justify-content: flex-end;border-top: 1px solid #e2e8f0;margin-top: 24px;}

.modal-actions .btn {min-width: 120px;height: 44px;padding: 0 24px;border-radius: 8px;font-size: 14px;font-weight: 600;cursor: pointer;transition: all 0.2s;display: inline-flex;align-items: center;justify-content: center;border: none;}

.modal-actions .btn-ghost {background: white;border: 1px solid #cbd5e1;color: #475569;}

.modal-actions .btn-ghost {background: #f8fafc;border-color: #94a3b8;}

.modal-actions .btn-primary {background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);color: white;box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);}

/* These two lost their pseudo-class selectors somewhere in a reformat: all
   three rules below shipped as a bare `.modal-actions .btn-primary`, so the
   hover lift applied permanently and — the visible bug — every primary modal
   button rendered at 60% opacity with cursor:not-allowed whether or not it was
   disabled. "Save Profile" looked broken while being perfectly clickable.
   The sibling rules for .btn / .post-btn / .pdf-btn were never damaged and
   already scope to :disabled, [disabled], .is-disabled — matched here. */
.modal-actions .btn-primary:hover:not(:disabled):not([disabled]):not(.is-disabled) {transform: translateY(-1px);box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);}

.modal-actions .btn-primary:disabled,
.modal-actions .btn-primary[disabled],
.modal-actions .btn-primary.is-disabled {opacity: 0.6;cursor: not-allowed;transform: none;}

/* ============================================================================UPLOAD AREAS============================================================================ */

.upload-area-wrapper {padding: 24px;}

.upload-drop-zone {border: 2px dashed #cbd5e1;border-radius: 12px;padding: 60px 40px;text-align: center;cursor: pointer;transition: all 0.3s ease;background: #fafafa;}

.upload-drop-zone {border-color: var(--accent-purple);background: #f5f3ff;}

.upload-drop-zone.dragover {border-color: var(--accent-purple);background: #f5f3ff;transform: scale(1.02);}

.cover-drop-zone {min-height: 200px;}

.upload-icon {margin-bottom: 20px;color: #94a3b8;}

.upload-text {color: #64748b;}

.upload-primary {font-size: 16px;font-weight: 600;color: #334155;margin-bottom: 8px;}

.upload-secondary {font-size: 14px;color: #94a3b8;}
.upload-mint-notice {margin: 16px 0 0;padding: 12px 14px;border: 1px solid rgba(124,58,237,.22);border-radius: 10px;background: rgba(124,58,237,.06);color: #64748b;font-size: 13px;line-height: 1.5;}
.avatar-position-controls {width:min(100%,420px);margin:16px auto 0;display:grid;gap:10px;text-align:left;}
.avatar-position-controls label {display:grid;grid-template-columns:90px 1fr;align-items:center;gap:10px;color:#64748b;font-size:12px;font-weight:600;}
.avatar-position-controls input[type="range"] {width:100%;accent-color:#7c3aed;}
.avatar-position-controls p {margin:0;color:#94a3b8;font-size:12px;text-align:center;}

/* Cover repositioning — mirrors the avatar controls above */
.cover-position-controls {width:min(100%,420px);margin:16px auto 0;display:grid;gap:10px;text-align:left;padding-top:16px;border-top:1px dashed var(--border,#e2e8f0);}
.cover-position-controls .cover-position-title {color:#334155;font-size:13px;font-weight:700;margin-bottom:2px;}
.cover-position-controls label {display:grid;grid-template-columns:90px 1fr;align-items:center;gap:10px;color:#64748b;font-size:12px;font-weight:600;}
.cover-position-controls input[type="range"] {width:100%;accent-color:#7c3aed;}
.cover-position-controls p {margin:0;color:#94a3b8;font-size:12px;text-align:center;}
.cover-position-preview {width:100%;max-width:600px;margin:0 auto 4px;}
.cover-position-preview img {width:100%;height:200px;object-fit:cover;border-radius:12px;display:block;transition:object-position .1s ease;}
.cover-position-save {display:flex;justify-content:flex-end;margin-top:4px;}
.cover-position-save .btn {min-width:132px;}

/* Live Preview */.image-preview-area {position: relative;margin-bottom: 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;}

.preview-container {position: relative;display: inline-block;border-radius: 12px;overflow: hidden;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}

.preview-image {display: block;max-width: 100%;height: auto;}

.avatar-preview {width:300px;height:300px;object-fit:cover;border-radius:50%;transform-origin:center;transition:transform .12s ease,object-position .12s ease;}

.cover-preview-container {width: 100%;max-width: 600px;margin: 0 auto;}

.cover-preview {width: 100%;height: 200px;object-fit: cover;border-radius: 12px;}

.preview-remove-btn {position: absolute;top: 10px;right: 10px;background: rgba(0, 0, 0, 0.6);color: white;border: none;border-radius: 50%;width: 36px;height: 36px;display: flex;align-items: center;justify-content: center;cursor: pointer;transition: all 0.2s ease;}

.preview-remove-btn {background: rgba(0, 0, 0, 0.8);transform: scale(1.1);}

/* ============================================================================PROFILE HEADER============================================================================ */

.profile-card {background: var(--card-bg);border-radius: var(--radius-lg);border: 1px solid var(--border);box-shadow: var(--shadow-lg);overflow: hidden;position: relative;margin-bottom: 24px;}

.cover-image {height: 220px;background-size: cover;background-position: center;position: relative;background-color: #E2E8F0;}

.edit-cover-btn {position: absolute;top: 16px;right: 16px;padding: 8px 14px;background: rgba(0, 0, 0, 0.4);backdrop-filter: blur(8px);border: 1px solid rgba(255, 255, 255, 0.2);border-radius: var(--radius-sm);color: white;font-weight: 600;font-size: 13px;display: flex;align-items: center;gap: 6px;transition: var(--trans-fast);}

.edit-cover-btn {background: rgba(0, 0, 0, 0.6);}

.profile-body {padding: 0 32px 24px;position: relative;}

.profile-info-row {display: flex;align-items: flex-end;gap: 24px;margin-top: -60px;margin-bottom: 24px;position: relative;z-index: 2;}

.profile-avatar {width: 120px;height: 120px;border-radius: 24px;border: 4px solid var(--card-bg);background: #F8FAFC;overflow: hidden;box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);flex-shrink: 0;display: flex;align-items: center;justify-content: center;cursor: pointer;transition: var(--trans-fast);position: relative;}

.profile-avatar {background: #F1F5F9;transform: scale(1.02);}

.profile-avatar img {width: 100%;height: 100%;object-fit: cover;}

.profile-details {flex: 1;padding-top: 64px;display: flex;flex-direction: column;}

.profile-name {font-size: 26px;font-weight: 800;letter-spacing: -0.03em;color: var(--text-main);margin-bottom: 8px;}

.profile-role {color: var(--text-muted);font-weight: 600;display: flex;align-items: center;gap: 6px;margin-bottom: 16px;font-size: 14px;}

.profile-stats {display: flex;gap: 24px;margin-bottom: 16px;}

.stat-item {text-align: center;}

.stat-val {display: block;font-size: 18px;font-weight: 800;color: var(--text-main);}

.stat-label {font-size: 12px;font-weight: 600;color: var(--text-muted);text-transform: uppercase;letter-spacing: 0.02em;margin-top: 4px;}

.profile-actions {display: flex;gap: 12px;flex-wrap: nowrap;align-items: center;}

/* ============================================================================BUTTONS============================================================================ */

.btn {height: 40px;padding: 0 16px;border-radius: var(--radius-sm);font-weight: 600;font-size: 13px;display: flex;align-items: center;gap: 6px;transition: var(--trans-fast);position: relative;overflow: hidden;white-space: nowrap;flex-shrink: 0;}

.btn:active {transform: translateY(1px);}

.btn:disabled, .btn[disabled], .btn.is-disabled {opacity: 0.5;cursor: not-allowed;}

.btn-primary {background: var(--fusion-grad);color: white;box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);}

.btn-primary:hover {box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);transform: translateY(-1px);}

.btn-ghost {background: white;border: 1px solid var(--border);color: var(--text-main);}

.btn-ghost:hover {background: #F8FAFC;border-color: #CBD5E1;}

.btn-sm {height: 34px;padding: 0 12px;font-size: 12px;gap: 4px;}

/* ============================================================================TABS============================================================================ */

.tabs-nav {display: flex;gap: 24px;padding: 0 32px;border-bottom: 1px solid var(--border);}

.tab-btn {padding: 16px 4px;font-weight: 600;color: var(--text-muted);position: relative;font-size: 14px;border: none;background: none;cursor: pointer;transition: var(--trans-fast);}

.tab-btn {color: var(--text-main);}

.tab-btn.active {color: var(--text-main);}

.tab-btn.active::after {content: '';position: absolute;bottom: -1px;left: 0;width: 100%;height: 2px;background: var(--text-main);border-radius: 2px 2px 0 0;}

/* ============================================================================CONTENT GRID============================================================================ */

.content-grid {display: grid;grid-template-columns: 2fr 1fr;gap: 24px;margin-top: 24px;align-items: start;}

.stack {display: flex;flex-direction: column;gap: 24px;}

.card {background: var(--card-bg);border: 1px solid var(--border);border-radius: var(--radius-md);box-shadow: var(--shadow-sm);overflow: hidden;}

.card-body {padding: 20px;}

.tab-content {display: none;}

.tab-content.active {display: block;}

/* ============================================================================POST CREATION============================================================================ */

.create-post {margin-bottom: 20px;width: 100%;}

.post-input-area {display: flex;align-items: flex-start;gap: 12px;margin-bottom: 12px;width: 100%;}

.post-avatar-mini {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;flex-shrink: 0;background: #F1F5F9;margin-top: 8px;}

.post-input {flex: 1;width: 100%;background: #F8FAFC;border: 1px solid var(--border);padding: 12px 16px;border-radius: var(--radius-sm);font-family: inherit;font-size: 14px;color: var(--text-main);resize: none;transition: var(--trans-fast);box-sizing: border-box;min-height: 100px;}

.post-input {outline: none;border-color: var(--accent-blue);background: white;box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);}

.post-actions-enhanced {display: flex;align-items: center;justify-content: space-between;gap: 12px;}

.media-upload-buttons {display: flex;gap: 8px;align-items: center;}

.media-btn {width: 40px;height: 40px;display: flex;align-items: center;justify-content: center;border: 1px solid var(--border);border-radius: var(--radius-sm);cursor: pointer;transition: var(--trans-fast);color: var(--text-muted);background: white;flex-shrink: 0;}

.media-btn {background: #F8FAFC;border-color: var(--accent-blue);color: var(--accent-blue);}

.media-btn {transform: scale(0.95);}

.post-btn {padding: 8px 16px;background: var(--primary-grad);color: white;border-radius: var(--radius-sm);font-weight: 600;font-size: 13px;transition: var(--trans-fast);border: none;cursor: pointer;height: 40px;}

.post-btn:hover {transform: translateY(-2px);box-shadow: 0 4px 12px rgba(242, 142, 28, 0.3);}

.post-btn:disabled, .post-btn[disabled], .post-btn.is-disabled {opacity: 0.5;cursor: not-allowed;}

/* Media Preview */.media-preview-item {position: relative;display: inline-block;}

.media-remove-btn {position: absolute;top: -8px;right: -8px;width: 24px;height: 24px;border-radius: 50%;background: #EF4444;color: white;display: flex;align-items: center;justify-content: center;cursor: pointer;transition: var(--trans-fast);border: 2px solid white;}

.media-remove-btn {background: #DC2626;transform: scale(1.1);}

/* ============================================================================POSTS============================================================================ */

.post {padding: 0;border-bottom: 1px solid var(--border);display: flex;flex-direction: column;margin-bottom: 20px;}

.post {border-bottom: none;}

.post-header {display: flex;align-items: center;gap: 12px;margin-bottom: 0;justify-content: space-between;padding: 16px 0;order: 2;}

.post-header-info {display: flex;align-items: center;gap: 12px;flex: 1;min-width: 0;}

.post-avatar {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;background: #F1F5F9;flex-shrink: 0;}

.post-meta {display: flex;flex-direction: column;gap: 4px;flex: 1;min-width: 0;}

.post-meta b {display: flex;align-items: center;gap: 6px;font-weight: 700;color: var(--text-main);font-size: 14px;line-height: 1.2;}

.post-meta span {display: block;font-size: 12px;color: var(--text-muted);}

.post-header-actions {display: flex;align-items: center;gap: 8px;flex-shrink: 0;}

.post-menu-btn {background: transparent;border: none;color: var(--text-muted);cursor: pointer;padding: 4px 8px;display: flex;align-items: center;justify-content: center;border-radius: 4px;transition: all 0.2s;font-size: 18px;}

.post-menu-btn {color: var(--text-main);background: #F8FAFC;}

.post-content {color: #334155;line-height: 1.6;display: block;word-wrap: break-word;margin-bottom: 0;padding: 16px 0;order: 3;}

.post-delete-btn {background: transparent;border: none;color: var(--text-muted);cursor: pointer;padding: 4px 8px;display: flex;align-items: center;justify-content: center;border-radius: 4px;transition: all 0.2s;flex-shrink: 0;font-size: 16px;}

.post-delete-btn {color: var(--text-main);background: #F8FAFC;}

.post-delete-btn {transform: scale(0.95);}

/* ============================================================================POST MEDIA STYLES============================================================================ */

.post-media {margin-top: 0;margin-bottom: 0;border-radius: 8px;overflow: hidden;background: #f8fafc;width: 100%;max-width: 100%;order: 1;}

.post-media.image-media {max-width: 100%;}

.post-media.image-media img {width: 100%;height: auto;display: block;object-fit: cover;max-height: 800px;}

.post-media.video-media {background: #000;max-width: 100%;}

.post-media.video-media video {width: 100%;height: auto;max-height: 690px;display: block;object-fit: contain;}

.post-media.audio-media {padding: 16px;background: #f1f5f9;}

.post-media.audio-media audio {width: 100%;}

/* Spotify-style Audio Player */.spotify-player {background: #191414;border-radius: 8px;padding: 16px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);}

.spotify-player-content {display: flex;align-items: center;gap: 16px;}

.spotify-player-info {display: flex;align-items: center;gap: 12px;flex: 1;min-width: 0;}

.spotify-album-art {width: 56px;height: 56px;min-width: 56px;background: #1DB954;border-radius: 4px;display: flex;align-items: center;justify-content: center;overflow: hidden;}

.spotify-album-art svg {width: 100%;height: 100%;}

.spotify-track-info {flex: 1;min-width: 0;}

.spotify-track-title {color: #fff;font-weight: 600;font-size: 14px;margin-bottom: 4px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}

.spotify-artist-name {color: #b3b3b3;font-size: 13px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}

.spotify-player-controls {display: flex;align-items: center;gap: 12px;flex: 1;}

.spotify-control-btn {background: transparent;border: none;color: #fff;cursor: pointer;padding: 8px 12px;display: flex;align-items: center;justify-content: center;border-radius: 50%;transition: all 0.2s;font-size: 20px;min-width: 40px;min-height: 40px;flex-shrink: 0;}

.spotify-control-btn {color: #1DB954;}

.spotify-control-btn {background: #1DB954;color: #000;font-size: 14px;}

.spotify-control-btn:first-of-type {background: #1ed760;}

.post-media.document-media {padding: 16px;background: #f8fafc;border: 1px solid #e2e8f0;border-radius: 8px;}

.document-info {display: flex;align-items: center;gap: 16px;color: #64748b;}

.document-info .iconify {color: #e11d48;flex-shrink: 0;}

.document-info p {margin: 0;font-weight: 500;color: #1e293b;word-break: break-word;max-width: 300px;}

.download-link {display: inline-block;margin-top: 8px;color: #3b82f6;text-decoration: none;font-size: 13px;font-weight: 500;transition: color 0.2s;}

.download-link {color: #2563eb;text-decoration: underline;}

/* ============================================================================PDF VIEWER STYLES============================================================================ */

.pdf-viewer {border: 1px solid #e2e8f0;border-radius: 8px;overflow: hidden;background: #f8fafc;}

.pdf-controls {display: flex;align-items: center;justify-content: center;gap: 12px;padding: 12px 16px;background: #f1f5f9;border-bottom: 1px solid #e2e8f0;}

.pdf-btn {background: #e2e8f0;border: none;color: #334155;cursor: pointer;padding: 8px 12px;border-radius: 4px;display: flex;align-items: center;justify-content: center;transition: all 0.2s;font-size: 14px;}

.pdf-btn {background: #cbd5e1;color: #1e293b;}

.pdf-btn {transform: scale(0.95);}

.pdf-btn:disabled, .pdf-btn[disabled], .pdf-btn.is-disabled {opacity: 0.5;cursor: not-allowed;}

.pdf-page-info {color: #64748b;font-size: 13px;font-weight: 500;min-width: 80px;text-align: center;}

.pdf-download-btn {background: #3b82f6;color: white;padding: 8px 12px;border-radius: 4px;text-decoration: none;border: none;display: flex;align-items: center;justify-content: center;transition: all 0.2s;cursor: pointer;font-size: 14px;}

.pdf-download-btn {background: #2563eb;}

.pdf-canvas {display: block;margin: 0 auto;max-width: 100%;height: auto;background: white;}

/* ============================================================================POST REACTIONS============================================================================ */

.post-reactions {display: flex;gap: 24px;padding: 12px 0;margin-top: 12px;margin-left: 16px;margin-right: 16px;order: 4;}

.reaction-btn {display: flex;align-items: center;gap: 6px;padding: 0;background: transparent;border: none;border-radius: 0;cursor: pointer;color: #64748b;font-size: 14px;font-weight: 500;transition: color 0.2s;}

.reaction-btn {color: #334155;}

.reaction-btn {transform: scale(0.98);}

.reaction-icon {font-size: 18px;line-height: 1;display: flex;align-items: center;justify-content: center;}

.reaction-count {font-size: 14px;color: #64748b;min-width: 18px;text-align: center;}

/* ============================================================================POST COMMENTS SECTION============================================================================ */

.post-comments-section {padding: 0;border-top: 1px solid #e2e8f0;margin-top: 12px;background: white;order: 5;}

.comments-container {display: flex;flex-direction: column;gap: 0;}

.comments-input-box {display: flex;align-items: center;gap: 12px;padding: 16px;border-bottom: 1px solid #e2e8f0;}

.comments-input-field {flex: 1;padding: 12px 16px;border: 1px solid #cbd5e1;border-radius: 24px;font-size: 14px;font-family: inherit;background: white;color: #0f172a;transition: border-color 0.2s;}

.comments-input-field::placeholder {color: #94a3b8;}

.comments-input-field {outline: none;border-color: #94a3b8;}

.comments-emoji-btn,.comments-image-btn {background: transparent;border: none;cursor: pointer;color: #64748b;padding: 8px;display: flex;align-items: center;justify-content: center;transition: color 0.2s;}

.comments-emoji-btn,.comments-image-btn {color: #334155;}

.comments-header {padding: 12px 16px;border-bottom: 1px solid #e2e8f0;}

.comments-sort-dropdown {background: transparent;border: none;color: #475569;font-size: 14px;font-weight: 500;cursor: pointer;padding: 0;font-family: inherit;}

.comments-sort-dropdown {color: #0f172a;}

.comments-list-wrapper {max-height: 400px;overflow-y: auto;}

.comments-list {display: flex;flex-direction: column;gap: 0;padding: 0;}

.comments-loading,.no-comments,.comments-error {padding: 24px 16px;text-align: center;color: #64748b;font-size: 14px;}

.comments-error {color: #dc3545;}

.comment-item {display: flex;gap: 12px;padding: 12px 16px;border-bottom: 1px solid #f1f5f9;align-items: flex-start;}

.comment-item {border-bottom: none;}

.comment-avatar {width: 40px;height: 40px;border-radius: 50%;object-fit: cover;flex-shrink: 0;}

.comment-body {flex: 1;min-width: 0;}

.comment-header {display: flex;align-items: baseline;gap: 8px;margin-bottom: 2px;flex-wrap: wrap;}

.comment-name {font-size: 14px;font-weight: 600;color: #0f172a;}

.comment-title {font-size: 12px;color: #64748b;}

.comment-time {font-size: 12px;color: #94a3b8;display: block;margin-bottom: 6px;}

.comment-text {font-size: 14px;color: #0f172a;line-height: 1.5;word-wrap: break-word;margin-bottom: 8px;}

.comment-actions {display: flex;gap: 16px;font-size: 12px;}

.comment-action-btn {background: none;border: none;color: #64748b;cursor: pointer;padding: 0;font-size: 12px;display: flex;align-items: center;gap: 4px;transition: color 0.2s;}

.comment-action-btn {color: #0f172a;}

.comment-action-btn.liked {color: #0066cc;}

.comment-likes {font-size: 12px;color: #64748b;}

.comment-menu-btn {background: none;border: none;color: #cbd5e1;cursor: pointer;padding: 4px 8px;display: flex;align-items: center;justify-content: center;transition: color 0.2s;flex-shrink: 0;}

.comment-menu-btn {color: #64748b;}

.load-more-comments-btn {padding: 12px 16px;text-align: center;border-top: 1px solid #f1f5f9;}

.load-more-comments-btn button {background: transparent;border: none;color: #64748b;cursor: pointer;font-size: 13px;padding: 0;display: flex;align-items: center;gap: 6px;justify-content: center;margin: 0 auto;transition: color 0.2s;}

.load-more-comments-btn button {color: #0f172a;}

/* ============================================================================EMPTY STATES============================================================================ */

.empty-state {padding: 48px 24px;text-align: center;color: var(--text-muted);}

.empty-icon {width: 64px;height: 64px;background: #F1F5F9;border-radius: 50%;display: flex;align-items: center;justify-content: center;margin: 0 auto 16px;color: #94A3B8;font-size: 28px;}

.empty-title {font-size: 18px;font-weight: 700;color: var(--text-main);margin-bottom: 8px;}

/* ============================================================================ABOUT SECTION============================================================================ */

.about-section {line-height: 1.6;}

.about-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 16px;}

.about-text {color: var(--text-main);font-size: 14px;margin-bottom: 16px;}

.about-item {display: flex;align-items: center;gap: 8px;font-size: 13px;color: var(--text-muted);margin-bottom: 12px;}

.about-item a {color: var(--accent-blue);text-decoration: underline;}

/* ============================================================================MEDIA GALLERY============================================================================ */

.media-section {margin-bottom: 40px;}

.media-section-title {font-size: 18px;font-weight: 600;color: #1e293b;margin-bottom: 16px;padding-bottom: 12px;border-bottom: 2px solid #e2e8f0;}

.media-gallery {display: grid;grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));gap: 12px;padding: 0;}

.media-grid-item {position: relative;overflow: hidden;border-radius: 8px;aspect-ratio: 1;cursor: pointer;background: #f1f5f9;transition: all 0.2s;}

.media-grid-item {transform: scale(1.02);box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);}

.media-thumbnail {width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;background: #e2e8f0;}

.media-thumbnail-img {width: 100%;height: 100%;object-fit: cover;}

.media-video-container {position: relative;width: 100%;height: 100%;background: #000;}

.media-video-thumbnail {width: 100%;height: 100%;object-fit: cover;display: block;}

.video-play-icon {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 50px;height: 50px;background: rgba(255, 255, 255, 0.9);border-radius: 50%;display: flex;align-items: center;justify-content: center;font-size: 24px;color: #000;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);z-index: 2;}

.media-video-container .video-play-icon {background: rgba(29, 185, 84, 0.9);color: white;}

.media-audio-placeholder,.media-doc-placeholder {width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);color: white;font-size: 48px;}

.media-doc-placeholder {background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);}

.media-overlay {position: absolute;bottom: 0;left: 0;right: 0;background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));padding: 12px 8px;color: white;opacity: 0;transition: opacity 0.2s;}

.media-grid-item .media-overlay {opacity: 1;}

.media-title {font-size: 12px;font-weight: 600;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;margin-bottom: 2px;}

.media-date {font-size: 10px;opacity: 0.8;}

/* ============================================================================SIDEBAR============================================================================ */

.sidebar-card {background: var(--card-bg);border: 1px solid var(--border);border-radius: var(--radius-md);box-shadow: var(--shadow-sm);padding: 20px;}

.sidebar-card-title {font-size: 14px;font-weight: 700;color: var(--text-main);margin-bottom: 12px;}

.activity-item {display: flex;align-items: center;gap: 8px;padding: 8px 0;}

/* ============================================================================ANIMATIONS============================================================================ */

@keyframes fadeOut {from {opacity: 1;transform: translateY(0);}

to {
    opacity: 0;
    transform: translateY(-10px);
}

}

/* ============================================================================RESPONSIVE============================================================================ */

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

.main {
    padding: 20px;
}

.profile-info-row {
    flex-wrap: wrap;
    gap: 16px;
    margin-top: -40px;
}

.profile-details {
    padding-top: 0;
    width: 100%;
}

.profile-avatar {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.profile-stats {
    justify-content: center;
    width: 100%;
    margin: 16px 0;
}

.profile-actions {
    justify-content: center;
}

}

@media (max-width: 860px) {.main {margin-left: 0 !important;}

.profile-info-row {
    text-align: center;
}

.tabs-nav {
    padding: 0 16px;
    gap: 16px;
    overflow-x: auto;
}

.toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
}

}

@media (max-width: 768px) {.pdf-controls {gap: 8px;padding: 10px 12px;}

.pdf-btn {
    padding: 6px 10px;
}

.pdf-page-info {
    min-width: 60px;
    font-size: 12px;
}

.document-info {
    flex-direction: column;
    align-items: flex-start;
}

.document-info p {
    max-width: 100%;
}

.post-media.image-media {
    max-height: 350px;
}

.post-media.video-media video {
    max-height: 300px;
}

.spotify-player {
    padding: 12px;
}

.spotify-player-content {
    flex-direction: column;
    gap: 12px;
}

.media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.media-section-title {
    font-size: 16px;
}

}

@media (max-width: 640px) {.profile-body {padding: 0 16px 16px;}

.cover-image {
    height: 160px;
}

.profile-name {
    font-size: 22px;
}

.modal-content {
    width: 95%;
    max-height: 95vh;
}

.modal-header {
    padding: 20px 16px 16px;
}

.modal-header h2 {
    font-size: 20px;
}

.modal-content form {
    padding: 20px 16px;
}

.modal-actions {
    padding: 16px;
    flex-direction: column-reverse;
}

.modal-actions .btn {
    width: 100%;
}

.upload-area-wrapper {
    padding: 16px;
}

.upload-drop-zone {
    padding: 40px 20px;
}

.pdf-download-btn {
    padding: 6px 10px;
    font-size: 12px;
}

.post-reactions {
    gap: 16px;
    margin-left: 12px;
    margin-right: 12px;
}

.reaction-count {
    display: none;
}

.post-comments-section {
    padding: 0;
}

.comments-input-box {
    padding: 12px;
    gap: 8px;
}

.comments-input-field {
    font-size: 13px;
    padding: 10px 12px;
}

.comment-item {
    padding: 10px 12px;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
}

.comment-text {
    font-size: 13px;
}

.comments-header {
    padding: 10px 12px;
}

.comments-sort-dropdown {
    font-size: 13px;
}

.media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.media-section-title {
    font-size: 14px;
    margin-bottom: 12px;
}

.media-section {
    margin-bottom: 30px;
}

}

/* ============================================================================
   PROFILE MEDIA PROMPT
   Asks for a missing profile photo / cover without blocking anything. Replaces
   an auto-opening modal that was removed because it seized focus from whatever
   the member came to do. Inline, dismissible, and it names only what is missing.
   ============================================================================ */

.profile-media-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #7C3AED;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(124, 58, 237, .05), rgba(59, 130, 246, .03));
}
.profile-media-prompt__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.profile-media-prompt__text strong { font-size: 14px; color: #0f172a; }
.profile-media-prompt__text span { font-size: 13px; color: #64748b; }
.profile-media-prompt__actions { display: flex; align-items: center; gap: 8px; }

.profile-media-prompt__btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #7C3AED;
    background: #7C3AED;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.profile-media-prompt__btn:hover { background: #6D28D9; border-color: #6D28D9; }

.profile-media-prompt__dismiss {
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.profile-media-prompt__dismiss:hover { background: #f1f5f9; color: #0f172a; }

@media (max-width: 640px) {
    .profile-media-prompt { align-items: flex-start; }
    .profile-media-prompt__actions { width: 100%; }
    .profile-media-prompt__btn { flex: 1; text-align: center; }
}
