/* ===========================================================
   TrueGiftCorp — Style Moderne Blanc/Bleu
   Mobile-first, responsive, dark-mode
   =========================================================== */

/* Page transition styles */
/* Remove animation from body to avoid fixed position issues */
body {
  opacity: 1;
}

/* Apply animation to content elements instead */
.site-header,
.page-separator,
.container,
footer {
  animation: fadeIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

body.page-exit .site-header,
body.page-exit .page-separator,
body.page-exit .container,
body.page-exit footer {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Page transition loader overlay */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#pageLoader.active {
  display: flex;
  opacity: 1;
}

#pageLoader .loader-brand {
  font-family: 'Reality Hyper', Inter, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

#pageLoader .loader-spinner {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom font: Reality Hyper Regular
   Place the file at: /public/assets/fonts/RealityHyper-Regular.ttf
*/
@font-face {
  font-family: 'Reality Hyper';
  src: url('/public/assets/fonts/RealityHyper-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  /* Use block to avoid showing fallback then swapping - browser will wait briefly for the font */
  font-display: block;
}

/* -------------------------
   CSS VARIABLES (light)
--------------------------*/
:root {
  --bg: #f5f7fb;
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

.site-header {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 9900;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  overflow: visible;
}

.header-inner {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 16px; max-width:var(--max-width); margin:0 auto;
}

.brand { font-weight:400; font-size:1.15rem; color:var(--text); }
/* Apply Reality Hyper to the brand and add a color-cycling animation */
.brand {
  font-family: 'Reality Hyper', Inter, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #ffffff;
}

.header-left { display:flex; align-items:center; gap:8px; }
/* Hamburger / nav toggle */
.nav-toggle { background:transparent; color: white; border:none; font-size:1.2rem; display:inline-flex; align-items:center; padding:6px; border-radius:8px; }
.nav-toggle:focus { outline:2px solid var(--accent); }

/* Small badge next to the brand/title (visible on all viewports) */
/* small round badge placed next to the brand/title */
.brand-notif { display:inline-flex; align-items:center; margin-left:6px; text-decoration:none; }
.toggle-badge {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 6px; font-size:0.75rem; font-weight:700;
  background:#e53; color:#fff; border-radius:999px; margin-left:8px;
  position:relative; z-index:1102;
}

.brand-notif:hover .toggle-badge{ filter:brightness(0.95); }

/* Ensure the brand-placed badge is positioned inline next to the title
   and not absolutely positioned by the generic .notif-badge rules. */
.brand-notif .toggle-badge {
  position: relative;
  top: 0;
  right: auto;
  left: 8px;
}

.main-nav { display:none; gap:12px; align-items:center; }
.main-nav a { padding:8px 10px; border-radius:8px; color:var(--text); font-weight:600; }
.main-nav a:hover { background: color-mix(in srgb,var(--accent) 6%, transparent); }

.notif-link { position:relative; }
.notif-badge { position:absolute; top:-6px; right:-8px; background:#e53; color:#fff; padding:2px 6px; border-radius:999px; font-size:0.75rem; font-weight:700; }

.header-actions { display:flex; align-items:center; gap:8px; margin-left: auto; position: relative;}
.avatar-small { width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid var(--glass); }

/* Profile menu toggle button */
.profile-menu-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-menu-toggle:hover {
  transform: scale(1.05);
}

.profile-menu-toggle .avatar-small {
  transition: border-color 0.2s ease;
}

.profile-menu-toggle:hover .avatar-small {
  border-color: var(--accent);
}

/* Profile dropdown menu */
.profile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--card);
  border-left: 1px solid rgba(0,0,0,0.1);
  box-shadow: -6px 0 30px rgba(2,6,23,0.25);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(.2,.9,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.profile-menu.open {
  right: 0;
  visibility: visible;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  border-bottom: 1px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.profile-menu-header .profile-menu-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.profile-menu-header strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.profile-menu a {
  display: block;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.95rem;
}

.profile-menu a:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--card));
}

.profile-menu a:last-child {
  border-bottom: none;
}

.profile-menu-logout {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ff4444 !important;
  font-weight: 600;
}

/* Desktop: revert to dropdown style */
@media (min-width: 800px) {
  .profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    width: auto;
    min-width: 240px;
    max-width: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: none;
    visibility: hidden;
    opacity: 0;
  }
  
  .profile-menu.open {
    visibility: visible;
    opacity: 1;
    animation: slideDown 0.2s ease;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .profile-menu-header {
    padding: 16px;
  }
  
  .profile-menu-header .profile-menu-avatar {
    width: 48px;
    height: 48px;
  }
  
  .profile-menu a {
    padding: 12px 16px;
  }
}
.btn-register { background: var(--accent); color:white; padding:6px 10px; border-radius:8px; }
.btn-logout { color:var(--muted); }

.page-separator { height:1px; background: rgba(0,0,0,0.03); }
/* Desktop layout */
@media(min-width:800px){
  .main-nav { display:flex; }
}

/* Mobile menu open state: slide-in drawer from the left */
.main-nav {
  /* hidden by default on mobile */
  display:none;
}

/* Drawer styles when open */
.main-nav.open {
  display:flex; 
  flex-direction:column; 
  gap:4px; 
  padding:18px 12px;
  position:fixed; 
  top: 0;
  left:0; 
  height:100vh; 
  width:280px; 
  max-width:80vw;
  background: var(--card); 
  border-radius:0 12px 12px 0; 
  box-shadow: 6px 0 30px rgba(2,6,23,0.25);
  z-index:200; 
  transform: translateX(-100%); 
  transition: transform 220ms cubic-bezier(.2,.9,.2,1);
  overflow-y: auto;
  padding-top: calc(var(--header-height, 60px) + 18px);
}

.main-nav.open {
  transform: translateX(0);
}

.main-nav.open a { padding:12px 14px; border-radius:8px; }

/* Make nav links fill full width when the drawer is open (apply on all viewports)
   This makes the open drawer behave the same on desktop as on mobile: links
   become block-level, full-width and left-aligned. */
.main-nav.open { width:320px; max-width:85vw; }
.main-nav.open a { display:block; width:100%; padding:14px 18px; border-bottom:1px solid rgba(0,0,0,0.04); border-radius:0; text-align:left; }
.main-nav.open a .notif-badge { position: static; margin-left:8px; }

/* Keep the mobile-specific override in case you want different sizes on small screens */
@media (max-width: 799px) {
  .main-nav.open { width:320px; max-width:85vw; }
}

/* Overlay for drawer */
.nav-overlay { position:fixed; inset:0; background: rgba(0,0,0,0.45); z-index:199; opacity:0; transition: opacity 200ms ease; }
.nav-overlay.show { opacity:1; }

/* Overlay for profile menu (lower z-index than profile menu itself) */
.profile-menu-overlay { position:fixed; inset:0; background: rgba(0,0,0,0.45); z-index:100; opacity:0; transition: opacity 200ms ease; }
.profile-menu-overlay.show { opacity:1; }

@keyframes navSlide {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Apps dropdown styling */
.apps-dropdown { position: relative; }
.apps-toggle-btn { 
  background:transparent; 
  color:var(--text); 
  border:none; 
  font-size:1rem; 
  font-weight:600; 
  padding:8px 10px; 
  border-radius:8px; 
  cursor:pointer; 
}
.apps-toggle-btn:hover { background: color-mix(in srgb,var(--accent) 6%, transparent); }
.apps-menu { 
  position: absolute; 
  top: 100%; 
  left: 0; 
  background: var(--card); 
  border: 1px solid rgba(0,0,0,0.1); 
  border-radius: 8px; 
  padding: 8px 0; 
  min-width: 160px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
  z-index: 100;
}
.apps-menu a { 
  display: block; 
  padding: 10px 16px; 
  color: var(--text); 
  text-decoration: none; 
}
.apps-menu a:hover { background: color-mix(in srgb,var(--accent) 8%, transparent); }

/* When main nav is open (mobile), apps dropdown should be relative to nav */
.main-nav.open .apps-dropdown { position: relative; width: 100%; display: block; }
.main-nav.open .apps-toggle-btn { 
  width: 100%; 
  text-align: left; 
  display: block; 
  padding: 14px 18px; 
  border-bottom: 1px solid rgba(0,0,0,0.04); 
  border-radius: 0; 
}
.main-nav.open .apps-menu { 
  position: static; 
  box-shadow: none; 
  border: none; 
  padding-left: 20px; 
  background: transparent; 
}
.main-nav.open .apps-menu a {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

}

/* -------------------------
   Dark mode variables
--------------------------*/
html[data-theme="dark"] {
  --bg: #0d1117;
  --card: #161b22;
  --text: #e6edf3;
  --muted: #9aa6bf;
  --accent: #4aa3ff;
  --accent-600: #2b7ed6;
  --glass: rgba(255,255,255,0.04);
  --shadow-1: 0 6px 20px rgba(2,6,23,0.6);
  --shadow-2: 0 10px 30px rgba(2,6,23,0.55);
}

/* -------------------------
   Reset & Base
--------------------------*/
* { box-sizing: border-box; margin:0; padding:0; font-family: Inter, "Segoe UI", Roboto, system-ui; }

html { height: 100%; }

body { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column;
  background: var(--bg); 
  color: var(--text); 
  transition: background 0.25s, color 0.25s; 
}

/* Sticky Footer: Main container takes all available space */
body > .container {
  flex: 1;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* -------------------------
   Layout containers
--------------------------*/
.header {
  background: var(--accent);
  color: white;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-1);
}
.header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header h1 { font-size: 1.25rem; font-weight: 700; }
.header nav { display: flex; gap: 12px; }
.header nav a { color: white; font-weight:600; padding:6px 10px; border-radius:8px; transition: background var(--transition-fast); }
.header nav a:hover { background: rgba(255,255,255,0.15); }

.feed-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 16px 48px;
}

/* -------------------------
   POST CREATE CARD
--------------------------*/
.post-create-card {
  max-width: 700px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  border: 5px solid rgba(95, 95, 251, 0.04);
  transition: box-shadow var(--transition-fast);
}
.post-create-card:hover { box-shadow: 0 12px 30px rgba(15,23,42,0.1); }

.post-create-top { display: flex; gap: 12px; align-items: flex-start; }
.post-create-top .avatar {
  width:50px; height:50px; border-radius:50%; object-fit:cover;
  border: 2px solid var(--glass); box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.post-create-card textarea {
  flex: 1; background: transparent; border: 1px solid rgb(71, 71, 71); resize: none;
  min-height: 15px; font-size: 1rem; color: var(--text); outline:none; border-radius: 15px; padding: 5px;
}
.post-create-card textarea:focus { box-shadow: 0 6px 18px rgba(91, 91, 91, 0.08); }

/* Media preview */
.media-preview { margin-top:12px; border-radius:12px; }
.media-preview img, .media-preview video, .media-preview audio { width:100%; border-radius:12px; margin-top:10px; }

/* Publish button */
.btn-publish {
  margin-top:12px; background: var(--accent); color:white; border:none;
  padding:10px 18px; font-size:1rem; border-radius: var(--radius-md);
  transition: background var(--transition-fast), transform var(--transition-fast);
  border-radius: 15px;
}
.btn-publish:hover { background: var(--accent-600); transform: translateY(-2px); }

/* Loader */
#postLoader { display: none; margin-top: 10px; font-weight:600; color: var(--muted); }

/* -------------------------
   POST CARD
--------------------------*/
.post-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  margin: 18px 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 3px solid rgba(95, 95, 251, 0.04);
  padding: 15px;
  border-radius: 15px;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,0.1); }

.post-top { display:flex; align-items:center; gap:12px; padding:14px 16px; }
.post-top .avatar { width:56px; height:56px; border-radius:50%; object-fit:cover; border:2px solid var(--glass); }
.post-meta { display:flex; flex-direction:column; gap:2px; }
.post-meta .username { font-weight:700; font-size:1.02rem; }
.post-meta .meta-sub { color: var(--muted); font-size:0.88rem; }

.post-body { padding:0 16px 16px; }
.post-text { font-size:1.02rem; margin-bottom:12px; white-space: pre-wrap; word-break: break-word; }
.post-media { display:block; width:100%; max-height:560px; object-fit:cover; border-radius:12px; margin:0 auto 14px; }

/* Actions */
.post-actions { display:flex; align-items:center; gap:10px; padding:6px 16px; border-top:1px solid rgba(0,0,0,0.03); }
.btn-like, .btn-comment {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(250,250,255,0.6); border:none; padding:6px 12px;
  border-radius:999px; font-weight:600; transition: all var(--transition-fast);
}
.btn-like:hover { background: color-mix(in srgb,var(--accent) 8%,white 92%); }
.btn-comment:hover { background: color-mix(in srgb,var(--accent) 8%,white 92%); }
.btn-like .heart { font-size:1.2rem; transition: transform 150ms; }
.btn-like.liked .heart { transform: scale(1.2); color: var(--accent-600); }

/* Like count */
.like-count { font-weight:700; margin-left:4px; }

/* -------------------------
   COMMENTS
--------------------------*/
.comments-wrapper { padding:12px 16px; }
.comments-list { display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
.comment { display:flex; gap:10px; align-items:flex-start; padding:10px; background: var(--card); border-radius:10px; border:1px solid rgba(0,0,0,0.03); }
.comment .c-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.comment .c-body { font-size:0.95rem; color:var(--text); }
.comment .c-meta { font-size:0.78rem; color:var(--muted); margin-bottom:4px; }

.comment-form { display:flex; gap:8px; align-items:center; margin-top:6px; }
.comment-form input[type="text"]{
  flex:1; padding:10px 12px; border-radius:999px; border:1px solid rgba(0,0,0,0.06);
  background: color-mix(in srgb,var(--card) 96%,transparent); color:var(--text);
}
.comment-form input[type="text"]:focus { box-shadow:0 6px 18px rgba(26,115,232,0.08); border-color:var(--accent-600); outline:none; }
.comment-form button {
  background: var(--accent); color:white; border-radius:999px; padding:10px 14px; border:none;
  font-weight:700; transition:background var(--transition-fast), transform var(--transition-fast);
}
.comment-form button:hover { background: var(--accent-600); transform:translateY(-2px); }

/* -------------------------
   FOLLOW/UNFOLLOW BUTTON
--------------------------*/
.btn-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.btn-follow:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.3);
}

.btn-follow:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.btn-follow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Unfollow state - use a different style when already following */
.btn-follow[data-following="true"] {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-follow[data-following="true"]:hover {
  background: rgba(26, 115, 232, 0.1);
  border-color: var(--accent-600);
  color: var(--accent-600);
}

/* -------------------------
   PROFILE PICTURE UPLOAD
--------------------------*/
.profile-pic-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.profile-pic-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-pic-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 2px dashed rgba(26, 115, 232, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-pic-upload-label:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--card));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.profile-pic-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.profile-pic-upload-text {
  flex: 1;
}

.profile-pic-upload-text strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.profile-pic-upload-text small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-pic-preview {
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-pic-preview.active {
  display: flex;
}

.profile-pic-preview img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.profile-pic-preview-info {
  flex: 1;
}

.profile-pic-preview-info strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.profile-pic-preview-info small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

/* -------------------------
   SETTINGS PAGE
--------------------------*/
.settings-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.settings-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text);
}

.settings-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(0,0,0,0.04);
}

.settings-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input {
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 110, 245, 0.1);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.danger-section {
  border: 2px solid rgba(220, 53, 69, 0.2);
}

.warning-text {
  color: #dc3545;
  font-size: 0.95rem;
  padding: 15px;
  border-radius: 15px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* -------------------------
   MEDIA QUERIES
--------------------------*/

/* -------------------------
   PROFILE PAGE
--------------------------*/
.profile-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    max-width: 700px;
    margin: 20px auto;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(0,0,0,0.04);
}

.profile-hero .avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass);
}

.profile-hero .profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-hero .profile-info .name {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-hero .profile-info .bio {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 100%;
}

/* Galerie des posts */
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 700px;
    margin: 20px auto 40px;
}

.profile-gallery img,
.profile-gallery video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Vidéo s'adapte bien sur mobile */
.profile-gallery video {
    display: block;
}

@media (max-width: 900px) {
    .profile-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .profile-gallery { grid-template-columns: 1fr; }
}

/* -------------------------
   FOOTER STYLES
--------------------------*/
.site-footer {
    background: var(--card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    font-family: 'Reality Hyper', Inter, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 400;
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .footer-links h4 {
        display: block;
        width: 100%;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        transform: translateX(0) scale(1.05);
    }
}
