/* === FONT AWESOME === */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* === ROOT VARIABLES (inherit theme colors where possible) === */
:root {
  --sp-brand: #4f46e5;
  --sp-brand-dark: #3730a3;
  --sp-border: rgba(0, 0, 0, 0.08);
  --sp-border-dark: rgba(255, 255, 255, 0.1);
  --sp-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --sp-shadow-dark: 0 2px 8px rgba(255, 255, 255, 0.08);
  --sp-bg: var(--wp--preset--color--background, #fff);
  --sp-text: var(--wp--preset--color--text, #1a1a1a);
  --sp-link: var(--wp--preset--color--link, #4f46e5);
}

/* === THEME SUPPORT (dark mode) === */
@media (prefers-color-scheme: dark) {
  :root {
    --sp-border: var(--sp-border-dark);
    --sp-shadow-light: var(--sp-shadow-dark);
    --sp-bg: var(--wp--preset--color--background-dark, #111);
    --sp-text: var(--wp--preset--color--text-dark, #eee);
  }
}

/* === Main Layout === */
.snappress-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.snappress-form {
  margin-bottom: 2rem;
}

/* === Form Styling === */
#snappress-form {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

#snappress-form input[type="text"],
#snappress-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

#snappress-form button {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

#snappress-form button:hover {
  background: #3730a3;
}

/* === Activity Post Card === */
.snappress-post {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}

.snappress-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.snappress-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.snappress-post-content {
  flex: 1;
}

.snappress-post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.snappress-post-header h3 {
  margin: 0;
  font-size: 1rem;
}

.snappress-post-content p {
  margin: 0.25rem 0 0;
  color: #666;
  font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .snappress-wrapper {
    grid-template-columns: 1fr;
  }

  snappress-sidebar {
    display: none;
  }

  .snappress-post {
    flex-direction: column;
    align-items: flex-start;
  }

  .snappress-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Image upload field */
.snappress-upload {
  margin-bottom: 1rem;
}

.snappress-upload label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.snappress-upload input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}


#snappress-form.collapsed textarea,
#snappress-form.collapsed input:not(#snappress-content),
#snappress-form.collapsed .snappress-upload,
#snappress-form.collapsed #snappress-tags,
#snappress-form.collapsed button {
  display: none;
}

#snappress-form textarea {
  min-height: 60px;
}

#snappress-form.expanded textarea {
  min-height: 120px;
}

/* === Login Form Styling (match SnapPress form) === */
.snappress-login-wrap {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  max-width: 600px;
}

.snappress-login-wrap p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.snappress-login-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.snappress-login-wrap input[type="text"],
.snappress-login-wrap input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.snappress-login-wrap input[type="submit"] {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.snappress-login-wrap input[type="submit"]:hover {
  background: #3730a3;
}


/* ===========================================================
   SNAP PRESS – PROFILES LAYOUT
   Matches the clean, card-based SnapPress feed aesthetic
   =========================================================== */

/* === Profiles Grid (for [snappress_profiles]) === */
.sp-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sp-profile-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.sp-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sp-profile-thumb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sp-profile-card h3 {
  margin: 0.25rem 0;
  font-size: 1.1rem;
  color: #333;
}

.sp-profile-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* === Single Profile Layout (for [snappress_profile]) === */
.sp-profile-single {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: flex-start;
  background: #fff;
  padding: 0px;
  border-radius: 0px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 1.5rem;
}

.sp-profile-single img {
  border-radius: 12px;
  max-width: 100%;
  object-fit: cover;
}

.sp-profile-single h2 {
  margin-top: 0;
  font-size: 1.75rem;
  color: #1a1a1a;
}

.sp-profile-single p {
  line-height: 1.6;
  color: #555;
}

/* === Responsive === */
@media (max-width: 768px) {
  .sp-profile-single {
    grid-template-columns: 1fr;
  }
}

#snappress-profile-form {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 600px;
}

#snappress-profile-form label {
  display: block;
  font-weight: 600;
  margin-top: 0.75rem;
}

#snappress-profile-form input[type="text"],
#snappress-profile-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

#snappress-profile-form button {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
}

#snappress-profile-form button:hover {
  background: #3730a3;
}

/* === Edit Profile Button === */
.sp-profile-edit-btn {
  text-align: right;
  margin-bottom: 1rem;
}

.sp-edit-profile-btn {
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.sp-edit-profile-btn:hover {
  background: #3730a3;
  color: #fff;
}

/* === Profiles Grid === */
.sp-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.sp-profile-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.sp-profile-thumb, .sp-profile-card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.sp-profile-card h3 {
  margin: 0.25rem 0;
  font-size: 1.1rem;
}

.sp-profile-card p {
  font-size: 0.9rem;
  color: #666;
}

/* === Responsive === */
@media (max-width: 600px) {
  .sp-profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.sp-profile-header img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 3px;
  object-fit: cover;
}

.sp-profile-photo img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* === SnapPress Layout Framework === */
.snappress-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.snappress-sidebar {
  position: sticky;
  top: 0px;
}

.snappress-main {
  min-width: 0;
}

/* Profile images */
.sp-profile-header img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.sp-profile-photo img,
.sp-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.sp-edit-profile-btn {
  display: inline-block;
  background: #4f46e5;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sp-edit-profile-btn:hover {
  background: #3730a3;
}

/* Social links */
.sp-profile-socials {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.sp-profile-socials li {
  margin-bottom: 0.25rem;
}

.sp-profile-socials a {
  color: #4f46e5;
  text-decoration: none;
}

.sp-profile-socials a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .snappress-layout {
    grid-template-columns: 1fr;
  }
  .snappress-sidebar {
    position: static;
    order: -1;
  }
}

.snappress-sidebar {
  position: relative;
}

.snappress-sidebar-inner {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

/* === Profile Header === */
.sp-profile-header {
  position: relative;
  width: 100%;
  background: #fff;
  margin-bottom: 2rem;
}

.sp-header-cover {
  width: 100%;
  height: 290px;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid #fff;
  box-shadow: inset 0 -40px 40px rgba(0,0,0,0.1);
}

/* === Simple Header (used on single post, members list, etc.) === */
.sp-header-cover-simple {
  width: 100%;
  height: 370px;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid #fff;
  box-shadow: inset 0 -40px 40px rgba(0,0,0,0.1);
}

/* Mobile height adjustment */
@media (max-width: 768px) {
  .sp-header-cover-simple {
    height: 370px;
  }
}


/* === Header Overlay: Fixed Band at Bottom === */
.sp-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* shorter height band */
  background: rgba(255, 255, 255, 0.95); /* light translucent background */
  backdrop-filter: blur(4px); /* optional subtle blur for effect */
  z-index: 2;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-end;
  padding: 1rem 2rem;
}

/* The header content (profile photo + name) sits *inside* the overlay band */
.sp-header-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Make sure profile image sits partly above overlay band */
.sp-profile-image-wrap {
  position: absolute;
  bottom: -30px;
  left: 2rem;
  z-index: 4;
}

/* Adjust text position in overlay */
.sp-profile-summary {
  margin-left: 180px; /* space for profile image */
}

/* === Responsive Fix === */
@media (max-width: 768px) {
  .sp-header-overlay {
    height: 90px;
    padding: 0.75rem 1rem;
    align-items: center;
    text-align: center;
  }

    .sp-profile-summary {
  margin-left: 150px; /* space for profile image */
}
  
}


.sp-profile-summary h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
}

.sp-profile-summary p {
  margin: 0.25rem 0 0;
  color: #666;
}

.sp-profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}





/* === Button Row === */
.sp-profile-buttons {
  display: flex;
  gap: 0.5rem;
  
  overflow-x: auto;
  padding: 0.5rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.sp-btn {
  flex: 0 0 auto;
  background: #f1f1f1;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.sp-btn:hover {
  background: #4f46e5;
  color: #fff;
}

/* === Layout Container === */
.snappress-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  align-items: flex-start;
}

/* Section separation */
.snappress-sidebar {
  background: #fff;
  border-radius: 12px;
  
  padding: 0px;
}

/* Sidebar sticky */
.snappress-sidebar-inner {
  position: sticky;
  top: 2rem;
}

@media (max-width: 768px) {
  .sp-header-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  /* Shrink wrapper */
  .sp-profile-image-wrap {
    bottom: -10px;
    left: 40px;
    width: 100px;
    height: 100px;
  }

  /* Shrink the actual image inside */
  .sp-profile-image-wrap .sp-profile-photo {
    width: 100px;
    height: 100px;
    border-width: 3px; /* optional - slightly thinner border on small screens */
  }

  
  .snappress-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .snappress-main {
    order: 1;
  }
  .snappress-sidebar {
    order: 2;
  }
}
.sp-profile-header {
    height: 370px;
}

.sp-profile-header,
.sp-profile-buttons,
.snappress-layout {
  max-width: 1100px;
  margin: 0 auto;
}

.sp-profile-header-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.sp-profile-header-img img {
  width: 100%;
  height: auto;
  display: block;
}

.sp-profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sp-profile-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

.sp-profile-socials ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-profile-socials li {
  margin: 0.25rem 0;
}
.sp-profile-socials a {
  color: var(--link-color, #0073aa);
  text-decoration: none;
}
.sp-profile-socials a:hover {
  text-decoration: underline;
}

.sp-profile-details {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.sp-profile-links ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.sp-profile-links li {
  display: flex;
  align-items: center;
  margin: 0.25rem 0;
  font-size: 0.95rem;
}
.sp-profile-links .sp-icon {
  display: inline-block;
  width: 1.5rem;
  text-align: center;
  opacity: 0.75;
  margin-right: 0.5rem;
}
.sp-profile-links a {
  color: var(--link-color, #0073aa);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sp-profile-links a:hover {
  color: #111;
  text-decoration: underline;
}

.sp-profile-brand,
.sp-profile-location {
  font-size: 0.95rem;
  color: #666;
  margin: 0.25rem 0 0.5rem;
}

.sp-profile-bio {
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.sp-profile-links ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.sp-profile-links li {
  display: flex;
  align-items: center;
  margin: 0.25rem 0;
  font-size: 0.95rem;
}
.sp-profile-links i {
  color: #888;
  margin-right: 0.5rem;
  width: 1.25rem;
  text-align: center;
}
.sp-profile-links a {
  color: var(--link-color, #0073aa);
  text-decoration: none;
}
.sp-profile-links a:hover {
  text-decoration: underline;
}

.sp-profile-meta {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.sp-profile-meta p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
}
.sp-profile-meta i {
  margin-right: 0.5rem;
  color: #999;
  width: 1.25rem;
  text-align: center;
}

/* === SnapPress Auth Pages (Login / Register / Reset) === */
body.snappress-login-page {
  background: var(--sp-bg, #f9f9fb);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.snappress-login-wrap {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.snappress-login-wrap h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.snappress-login-wrap form {
  margin: 0;
}

.snappress-login-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.snappress-login-wrap input[type="text"],
.snappress-login-wrap input[type="password"],
.snappress-login-wrap input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.snappress-login-wrap input[type="submit"],
.snappress-login-wrap button {
  width: 100%;
  background: var(--sp-brand, #4f46e5);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.snappress-login-wrap input[type="submit"]:hover,
.snappress-login-wrap button:hover {
  background: var(--sp-brand-dark, #3730a3);
}

.snappress-login-wrap p {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.snappress-login-wrap a {
  color: var(--sp-link, #4f46e5);
  text-decoration: none;
  font-weight: 500;
}

.snappress-login-wrap a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 480px) {
  .snappress-login-wrap {
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
}
