/* ======================================================================
   Global Reset and Base Styles
========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}



/* ======================================================================
   Utility Classes
========================================================================== */
.text-center {
  text-align: center;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.p-10 {
  padding: 10px;
}

.p-15 {
  padding: 15px;
}

/* ======================================================================
   Header Styling
========================================================================== */
header {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #fff;
  padding: 15px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}
.logo{
  height: 80px;
}

/* Header Buttons for Profile and View Pages */
header .back-btn,
header .logout-btn {
  position: absolute;
  top: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

header .back-btn {
  left: 15px;
}

header .logout-btn {
  right: 15px;
}

button{
  background: #9045e0;
  color: white;
}
/* ======================================================================
   Bottom Navigation Bar
========================================================================== */
nav.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #2575fc, #6a11cb);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1px 0;
  height: 50px;
  z-index: 1100;
  border-radius: 10px 10px 0 0;
  border-top: 1px solid black;
}

nav.bottom-nav a i {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
}

nav.bottom-nav a i:hover {
  color: #e0e0e0;
}

nav.bottom-nav a i1 {
  background: white;
  color: #36228f;
  border: 5px solid white;
  border-top: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 4rem;
  margin-bottom: 25px;
  
}

nav.bottom-nav a1:hover {
  color: #e0e0e0;
}

.bottom-profile-pic {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
  margin-top: 10px;
}

/* ======================================================================
   Skeleton Loader Styles
========================================================================== */
.article-card.skeleton {
  border: 2px solid #6a11cb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.skeleton-img {
  background: #ddd;
  width: 100%;
  height: 180px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
  background: #ccc;
  height: 20px;
  margin: 10px;
  width: 80%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* ======================================================================
   Article Card (Home Page)
========================================================================== */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #fff;
}

.header-left .logo {
  height: 60px;
}

.header-center {
  flex: 1;
  margin: 0 20px;
}

.search-bar {
  position: relative;
  width: 85%;
}

.search-bar input[type="text"] {
  width: 100%;
  padding: 8px 40px 8px 10px;
  border-radius: 20px;
  border: none;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
}

.header-right a,
.header-right button {
  background: none;
  border: none;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

#articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px 20px 50px 20px; /* Top padding for header, bottom for nav */
}

.article-card {
  background: #fff;
  border: 2px solid #6a11cb;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card h2 {
  font-size: 1.3rem;
  margin: 5px 0;
  color: #175DF0;
  font-weight: bold;
  padding: 0 5px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px;
  font-size: 0.8rem;
}

.left{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 0.8rem;
}
.article-meta img.uploader-pic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.article-meta .uploader-name {
  font-weight: bold;
}

.article-meta .comment-count {
  background: #f0f0f0;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ======================================================================
   View Page Styles
========================================================================== */
.view-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
}

.view-header .header-left {
  position: absolute;
  left: 15px;
}

.view-header .back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.view-header .header-center .logo {
  margin-top: 10px;
  height: 60px;
}

#article-details {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto 0 auto;
  background: #fff;
  border: 2px solid #2575fc;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.head{
  gap: 50px;
}
.notify-btn{
  background: #36228f;
  color: black;
}
#article-details img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

#article-details img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#article-details h2 {
  font-size: 2rem;
  color: #4D68A2;
}

#article-details h3 {
  font-size: 1.6rem;
  color: #4D68A2;
}

#article-details .head p {
  font-size: 8px;
  color: #555;
  margin-bottom: 15px;
  padding: 0 0px;
}

#article-details p {
  font-size: 10px;
  color: #555;
  margin-bottom: 5px;
  padding: 0 0px;
}

/* Article Links in View Page */
.article-links {
  margin: 15px 0;
  padding: 0 10px;
}

.article-links a {
  margin-right: 10px;
  font-size: 1.4rem;
  color: #2575fc;
  text-decoration: none;
  transition: color 0.3s;
}

.article-links a:hover {
  color: #6a11cb;
}

/* Share Section */
.share-section {
  padding: 10px;
  text-align: right;
}

.share-section #shareBtn {
  padding: 5px 10px;
  background: #2575fc;

  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.share-section button:hover {
  background: #6a11cb;
}

/* ======================================================================
   Comment Section in View Page
========================================================================== */
#comments-section {
  padding: 20px 10px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 30px;
}
#comments-section hr{
  color: black;
  background: black;
}
#comments-section #commentForm{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}


#comments-section h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
  padding-left: 10px;
}

#comments-section a{

}

.comment {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.comment:last-child {
  border-bottom: none;
}

.comment .comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.comment .comment-meta img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.comment .comment-meta strong {
  font-size: 1rem;
  color: #333;
}

.comment .comment-meta span {
  font-size: 0.8rem;
  color: #888;
}

.comment p {
  font-size: 0.95rem;
  color: #555;
  padding-left: 10px;
}
comment-meta .del-cmt-btn span i {
  display: inline-block;
  color: #ff4d4d;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left:auto;  cursor:pointer; font-size:0.9em;
  background: none;
}

.delete-icon:hover {
  color: #e60000;
  transform: rotate(-15deg) scale(1.2);
}

.delete-icon:active {
  transform: scale(0.9);
}

/* Comment Form */
#commentForm {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding: 0 10px;
}

#commentForm input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#commentForm button {
  padding: 8px 10px;
  background: #2575fc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#commentForm button:hover {
  background: #6a11cb;
}

/* ======================================================================
   Upload Page Styles
========================================================================== */
.upload-form {
  background: #fff;
  padding: 20px;
  margin: 80px 20px 120px 20px;
  border: 2px solid #6a11cb;
  border-radius: 8px;
}

.upload-form label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

.upload-form input[type="text"],
.upload-form input[type="file"],
.upload-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
}

.upload-form textarea {
  resize: vertical;
  min-height: 120px;
}

.file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.file-input-wrapper input[type="file"] {
  opacity: 0;
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-wrapper label {
  position: relative;
  z-index: 1;
  background: #2575fc;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

/* Image Preview for Upload */
#imgPreview {
  margin: 10px 0;
  text-align: center;
}

#imgPreview img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Links Section in Upload Page */
.upload-form .link-section {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}

.upload-form .link-section label {
  font-size: 1rem;
}

.upload-form .link-section input[type="text"] {
  margin-top: 5px;
  outline: none;
}

.upload-form .link-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end; /* aligns button to bottom of inputs */
  flex-wrap: wrap; /* wrap for small screens */
  margin-top: 10px;
}

.link-input-group {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
}

.link-input-group label {
  font-size: 0.60rem;
  margin-bottom: 5px;
  color: #333;
}

.link-input-group input {
  padding: 4px;
  height: 30px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  outline: none;
}

#addLinkBtn {
  height: fit-content;
  padding: 8px 12px;
  background: #6a11cb;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#addLinkBtn:hover {
  background: #2575fc;
}

.upload-form .link-section #linksContainer {
  margin-top: 10px;
}

.upload-form .link-section .link-item {
  padding: 5px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 5px;
  background: #f8f8f8;
}

.upload-form button{
  height: fit-content;
  padding: 8px 20px;
  background: #6a11cb;
  color: #fff;
  border: 1px solid #d82c3b;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  align-self: center;
}
/* ======================================================================
   Color Variables & Typography
   ====================================================================== */
   :root {
    --primary: #2575fc;
    --primary-dark: #1a5dcc;
    --secondary: #6a11cb;
    --background: #f2f2f2;
    --text-dark: #333;
    --text-muted: #555;
    --border-radius: 8px;
    --transition: 0.3s ease;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --box-shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.1);
    --font-sans: 'Arial', sans-serif;
  }
  
  /* ======================================================================
     Header
     ====================================================================== */
  header.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: var(--box-shadow);
  }
  
  header.header .logo {
    height: 60px;
  }
  
  header.header .btn.logout {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform var(--transition);
  }
  
  header.header .btn.logout:hover {
    transform: scale(1.1);
  }
  
  /* ======================================================================
     Main Layout
     ====================================================================== */
  main {
    padding-top: 10px; /* Leave space for fixed header */
    padding-bottom: 40px;
    margin: 10px 10px;
  }
  
/* ======================================================================
   Global Variables (Assuming these are defined elsewhere or at :root)
   ====================================================================== */
   :root {
    --primary: #007bff; /* Example Primary Color */
    --secondary: #6c757d; /* Example Secondary Color */
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --box-shadow-heavy: 0 5px 15px rgba(0, 0, 0, 0.15);
    --transition: 0.2s ease;
  }
  
  /* ======================================================================
     Profile Section
     ====================================================================== */
      /* Profile Section Layout */
      .profile-section {
         display: flex; 
         flex-direction: column; 
         align-items: center; 
         text-align: center; 
         position: relative; 
         padding: 20px; 
      }
      .profile-section .top{
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
      }

  .profile-section .profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-light, #eee); /* Use a light bg if image fails */
    border: 3px solid var(--primary);
    grid-row: 1 / span 1; /* Ensure it stays in the first row */
  }
  /* Styles for Profile Picture Upload */
.profile-pic-container {
  position: relative; /* Needed for absolute positioning of overlay */
  display: inline-block; /* Adjust as needed based on your layout */
  margin-bottom: 15px; /* Add some space below */
}

.profile-pic-label {
  display: block; /* Make label behave like a block */
  cursor: pointer;
  position: relative; /* For spinner overlay */
  border-radius: 50%; /* Match image border-radius */
  overflow: hidden; /* Hide parts of overlay extending beyond circle */
}

.profile-pic {
  display: block; /* Ensure image behaves predictably */
  width: 120px; /* Or your existing size */
  height: 120px; /* Or your existing size */
  border-radius: 50%;
  object-fit: cover; /* Ensure image covers the area */
  border: 3px solid #eee; /* Optional border */
}

.camera-icon-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  width: 35px; /* Adjust size */
  height: 35px; /* Adjust size */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em; /* Adjust icon size */
  border: 2px solid white; /* Make it stand out */
  transition: background-color 0.2s ease;
}

.profile-pic-label:hover .camera-icon-overlay {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Spinner Styles (Optional) */
.spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Light overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.spinner-overlay.hide {
  display: none;
}
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f; /* Or your primary color */
  animation: spin 1s ease infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
  
  .profile-section .profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 2 / 3; /* Place info in the second column */
    grid-row: 1 / span 1;
  }
  
  .profile-section .profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: var(--text-dark);
  }
  
  .profile-section .profile-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  
  .profile-section .profile-info .small-text { /* Keep if you use this class */
    font-size: 0.9em;
    font-style: italic;
  }
  
  .profile-section .social-links {
    margin-top: 8px;
  }
  
  .profile-section .social-links a {
    margin-right: 12px; /* Slightly more space */
    font-size: 1.3rem; /* Slightly larger icons */
    color: #007bff;
    transition: color var(--transition);
  }
  
  .profile-section .social-links a:hover {
    color: var(--secondary);
  }
  
  /* --- Profile Page Actions Container --- */
.profile-page-actions {
  display: flex;         /* Arrange buttons horizontally */
  justify-content: center; /* Center buttons within the container */
  align-items: center;   /* Align buttons vertically if they differ in height */
  gap: 15px;             /* Space between the buttons */
  margin-top: 25px;      /* Space above the button group */
  margin-bottom: 15px;   /* Space below the button group */
  width: 100%;           /* Allow centering */
  flex-wrap: wrap;       /* Allow buttons to wrap on smaller screens */
}

/* --- Styling for Buttons within the Actions Container --- */
/* Refined base style suggestion for buttons if needed */
.profile-page-actions .btn {
  padding: 10px 22px;      /* Comfortable padding */
  border: none;
  border-radius: 25px;     /* Pill shape */
  font-size: 0.95em;       /* Adjust font size as needed */
  font-weight: 600;        /* Medium boldness */
  cursor: pointer;
  display: inline-flex;    /* Align icon and text */
  align-items: center;
  justify-content: center;
  gap: 8px;              /* Space between icon and text */
  text-decoration: none;   /* Remove underline if used on <a> tags styled as buttons */
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  min-width: 140px;        /* Give buttons a decent minimum width */
  text-align: center;
}

.profile-page-actions .btn:hover {
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.profile-page-actions .btn:active {
  transform: scale(0.98); /* Click effect */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Specific styles for Edit button */
.profile-page-actions .btn.edit {
  background-color: var(--primary-color, #007bff); /* Use variable or hex */
  color: #ffffff;
}

.profile-page-actions .btn.edit:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

/* Specific styles for Share button */
.profile-page-actions .btn.share {
  background-color: #25d366; /* WhatsApp green */
  color: white;
}

.profile-page-actions .btn.share:hover {
  background-color: #1ebe58; /* Darker green on hover */
}

/* Disabled state */
.profile-page-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
  .follow-buttons { display: flex; justify-content: space-around; gap: 10px; }
  .follow-btn {
     background-color: #6a11cb; /* Use theme color */
    color: #ffffff;
    padding: 10px 22px;      /* Comfortable padding */
    border: none;
    border-radius: 25px;     /* Pill shape */
    font-size: 0.95em;       /* Adjust font size as needed */
    font-weight: 600;        /* Medium boldness */
    cursor: pointer;
    display: inline-flex;    /* Align icon and text */
    align-items: center;
    justify-content: center;
    gap: 8px;              /* Space between icon and text */
    text-decoration: none;   /* Remove underline if used on <a> tags styled as buttons */
 /* Subtle shadow */
    min-width: 140px;        /* Give buttons a decent minimum width */
    text-align: center;
   }
  .follow-btn span { display: block; font-weight: bold; font-size: 1.2em; color: #333; margin-bottom: 3px; }
  

  /* ======================================================================
     Follow Stats Section (Separate from profile actions)
     ====================================================================== */
  .follow-stats-section {
    max-width: 800px; /* Match profile section width */
    margin: 30px auto 20px auto; /* More space above */
    padding: 15px 20px; /* Add horizontal padding */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #fff; /* Optional: Add background */
    border-radius: var(--border-radius); /* Optional: Round corners */
  }
  
  .follow-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px; /* More gap */
  }
  
  /* Style for the buttons WITHIN the stats section */
  .follow-stats-section .follow-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 0.95em;
    color: var(--text-muted); /* Use theme color */
    border-radius: var(--border-radius);
    transition: background-color var(--transition), color var(--transition);
    flex: 1; /* Allow buttons to take up space */
  }
  
  .follow-stats-section .follow-btn:hover {
    background-color: #f0f0f0;
    color: var(--text-dark);
  }
  
  .follow-stats-section .follow-btn span.count { /* Target the count span */
    display: block;
    font-weight: bold;
    font-size: 1.3em; /* Larger count */
    color: var(--text-dark); /* Use theme color */
    margin-bottom: 4px;
  }
  
  .follow-list {
    margin-top: 20px; /* More space */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
  }
  
  .follow-list.hide {
    display: none;
  }
  
  .follow-list h4 {
    margin-top: 0;
    margin-bottom: 15px; /* More space */
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px; /* More space */
    font-size: 1.1rem;
    color: var(--secondary);
  }
  
  .follow-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0; /* More vertical padding */
    border-bottom: 1px solid #eee;
  }
  
  .follow-list-item:last-child {
    border-bottom: none;
  }
  
  .follow-list-item img {
    width: 40px; /* Slightly larger image */
    height: 40px;
    border-radius: 50%;
    margin-right: 12px; /* More space */
    object-fit: cover;
    background-color: #eee; /* Placeholder bg */
  }
  
  .follow-list-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition);
  }
  
  .follow-list-item a:hover {
    color: var(--primary);
    text-decoration: none; /* Optional: remove underline on hover too */
  }

  /* Share Overlay Styles        */
/* =========================== */

/* --- Main Overlay Backdrop --- */
.share-overlay {
  position: fixed; /* Cover the whole screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark background */
  display: flex; /* Use flexbox for centering content */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it's on top of other content */
  opacity: 0; /* Start invisible */
  visibility: hidden; /* Start hidden for accessibility */
  transition: opacity 0.4s ease, visibility 0s linear 0.4s; /* Fade transition */
  backdrop-filter: blur(5px); /* Apply background blur */
  -webkit-backdrop-filter: blur(5px);
  padding: 15px; /* Padding for smaller screens */
  box-sizing: border-box;
}

.share-overlay.show {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; /* Make visible transition immediate */
}

/* --- Animated Gradient Definition --- */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Content Box inside Overlay --- */
.share-content {
  display: flex; /* Use flexbox for internal alignment */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  padding: 30px 25px; /* Generous padding */
  border-radius: 15px; /* Rounded corners */
  text-align: center;
  max-width: 95%; /* Responsive width */
  width: 380px; /* Maximum width */
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); /* Stronger shadow */
  position: relative; /* For absolute positioning of close button */
  color: white; /* Default text color on gradient */
  /* Animated Gradient Background */
  background: linear-gradient(135deg, #6dd5ed, #2193b0, #0f3443, #2193b0); /* Example gradient */
  background-size: 400% 400%; /* Required size for smooth animation */
  animation: gradientBG 18s ease infinite; /* Apply animation */
  transform: scale(0.95); /* Start slightly smaller for pop effect */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Pop transition */
  overflow: hidden; /* Prevent content spill */
}

/* Pop-in effect when overlay becomes visible */
.share-overlay.show .share-content {
  transform: scale(1); /* Scale to full size */
}

/* Title inside Content Box */
.share-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  color: inherit; /* Inherit color (white/light) */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Subtle text shadow */
  font-size: 1.4em;
}

/* --- Close Button (Top Right) --- */
.close-share-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2.3em; /* Larger icon */
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  transition: color 0.2s ease, transform 0.2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  line-height: 1; /* Prevent extra spacing */
  padding: 5px; /* Increase clickable area */
}

.close-share-btn:hover {
  color: white;
  transform: rotate(90deg) scale(1.1); /* Rotate and scale on hover */
}

/* --- QR Code Container & Styling --- */
#qrCodeContainer {
  margin-bottom: 15px; /* Space below QR code */
  width: 180px; /* Fixed size for QR code area */
  height: 180px;
  padding: 10px; /* Padding around the QR code image/canvas */
  background-color: #ffffff; /* Force white background for QR readability */
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.1), 0 3px 8px rgba(0,0,0,0.25); /* Inner/outer shadow */
  display: flex; /* Center the QR code element */
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Hide parts of QR if needed */
  cursor: pointer; /* Indicate it's clickable */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; /* For potential pseudo-elements */
}

#qrCodeContainer:hover {
  transform: scale(1.06); /* Zoom effect */
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 0 6px 15px rgba(0,0,0,0.35); /* Enhance shadow */
}

/* Styles for the actual QR code element (img or canvas) generated by the library */
#qrCodeContainer img,
#qrCodeContainer canvas {
  display: block !important; /* Ensure visibility and block behavior */
  width: 100% !important;   /* Fill the padding box */
  height: 100% !important;  /* Fill the padding box */
  max-width: 100%;          /* Redundant but safe */
  max-height: 100%;         /* Redundant but safe */
  border-radius: 4px;       /* Slightly round QR code itself */
  object-fit: contain;      /* Ensure entire QR is visible */
}

/* Error message inside QR container */
#qrCodeContainer p {
  color: #555;
  font-size: 0.8em;
  margin: auto; /* Center text if QR fails */
}

/* --- Profile Link Text --- */
#profileLinkText {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85); /* Light text */
  margin-top: 10px;
  margin-bottom: 15px; /* Space before copy button */
  word-break: break-all; /* Allow long URLs to wrap */
  font-family: 'Courier New', Courier, monospace; /* Monospace for URL */
  padding: 0 10px; /* Prevent touching edges */
  line-height: 1.3;
}

/* --- Copy Link Button --- */
#copyLinkBtn {
  display: inline-flex; /* Align icon and text */
  align-items: center;
  gap: 8px; /* Space between icon and text */
  margin-top: 10px; /* Adjusted from 15px */
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2); /* Glassmorphism effect */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px; /* Pill shape */
  cursor: pointer;
  transition: all 0.2s ease; /* Smooth transitions */
  font-weight: 500;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

#copyLinkBtn:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px); /* Subtle lift */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#copyLinkBtn:active {
  transform: scale(0.97); /* Click feedback */
}

/* Disabled state for Copy Button (e.g., after copying) */
#copyLinkBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important; /* Prevent hover/active effects */
  box-shadow: none !important;
}

#copyLinkBtn i {
  margin-right: 0; /* Gap property handles spacing */
}

/* --- Social Share Options --- */
.social-share-options {
  margin-top: 25px; /* Space above icons */
  display: flex;
  justify-content: center;
  gap: 25px; /* Space between icons */
  flex-wrap: wrap;
  width: 100%;
}

.social-share-options a {
  font-size: 2.5em; /* Icon size */
  color: #ffffffd9;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.social-share-options a:hover {
  transform: scale(1.15) rotate(-5deg); /* Grow and tilt */
  color: white; /* Brighter on hover */
}

/* Optional: Specific hover colors for branding */
.social-share-options a.whatsapp:hover { color: #25D366; }
.social-share-options a.facebook:hover { color: #1877F2; }
.social-share-options a.twitter:hover { color: #1DA1F2; }
/* Add this to your <style> block or CSS file */
.social-share-options a.whatsapp:hover { color: #25D366; }
.social-share-options a.facebook:hover { color: #1877F2; }
.social-share-options a.twitter:hover { color: #1DA1F2; }

/* NEW */
.social-share-options a.linkedin:hover { color: #0A66C2; } /* LinkedIn Blue */
.social-share-options a.telegram:hover { color: #2AABEE; } /* Telegram Blue */
.social-share-options a.email:hover { color: #f1c40f; } /* Example: Yellow for Email */

/* Native Share Button Hover (using a neutral color) */


.native-share{
background: none;
border: none;
cursor: pointer;/* Styles to match 'a' tags */
padding: 0; /* Remove default button padding */
font-size: 2.3em; /* Match icon size */
color: #ffffffd9; /* Match base icon color */
text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Match text shadow */
line-height: 1; /* Consistent line height */
vertical-align: middle; 
}
.native-share:hover{
transform: scale(1.15) rotate(-5deg); /* Grow and tilt */
color: #2f98dd; /* Brighter on hover */
}

/* Add transition if desired (apply to the base button style) */
button#nativeShareBtn {
   transition: color 0.2s, transform 0.2s;
}
/* Add more as needed */
  
  /* ======================================================================
     Articles Section (Profile Page Specific Adjustments)
     ====================================================================== */
  .profile-page .articles-section { /* Add .profile-page class to body of profile.html */
    max-width: 1000px; /* Allow slightly wider */
    margin: 40px auto;
    padding: 0 20px; /* Consistent padding */
  }
  
  .profile-page .articles-section h3 {
    font-size: 1.7rem; /* Slightly larger title */
    margin-bottom: 25px;
    color: var(--secondary);
    text-align: center;
    font-weight: 500;
  }
  
  .articles-container {
    display: grid;
    gap: 25px; /* Increase gap */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 20px;
  }
  
  /* Article Card Styling (Generally Applicable) */
  .article-card {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; /* Use flex for better control */
    flex-direction: column;
  }
  
  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
  }
  
  .article-card img.card-img {
    width: 100%;
    height: 160px; /* Slightly taller image */
    object-fit: cover;
    display: block; /* Remove extra space below image */
  }
  
  .article-card .card-body {
    padding: 15px;
    flex-grow: 1; /* Allow body to take remaining space */
    display: flex;
    flex-direction: column;
  }
  
  .article-card .card-body h4 {
    font-size: 1.1rem;
    margin-top: 0; /* Remove default margin */
    margin-bottom: 10px; /* Increase space */
    color: var(--text-dark);
    line-height: 1.4; /* Improve readability */
  }
  
  .article-card .card-meta {
    margin-top: auto; /* Push meta to the bottom */
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap; /* Allow badges to wrap */
    gap: 8px; /* Space between badges/date */
    padding-top: 10px; /* Space above meta */
    border-top: 1px solid #eee; /* Separator line */
  }
  
  .article-card .card-meta .badge {
    background: var(--secondary);
    color: #fff;
    padding: 3px 7px; /* Adjust padding */
    border-radius: var(--border-radius);
    font-size: 0.75rem; /* Smaller badge text */
    text-transform: capitalize; /* Nicer look for visibility */
  }
  .article-card .card-meta .badge.public { background-color: #28a745; } /* Green for public */
  .article-card .card-meta .badge.private { background-color: #dc3545; } /* Red for private */
  .article-card .card-meta .badge.comments { background-color: var(--primary); } /* Blue for comments */
  
  /* Article Card Menu */
  .article-card .card-menu {
    position: absolute;
    top: 8px; /* Adjust position */
    right: 8px;
    z-index: 10;
  }
  
  .article-card .menu-toggle-btn {
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for visibility */
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1rem; /* Adjust icon size */
    padding: 5px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
  }
  
  .article-card .menu-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.6);
  }
  
  .article-card .menu-dropdown {
    position: absolute;
    top: 35px; /* Position below button */
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-heavy); /* More prominent shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 150px; /* Slightly wider */
    z-index: 11; /* Above toggle button */
    opacity: 0; /* Start hidden for transition */
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }
  
  .article-card .menu-dropdown:not(.hide) { /* Show when .hide is removed */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .article-card .menu-dropdown.hide { /* Keep hide class functional */
      display: none; /* Still needed for JS toggle logic */
  }
  
  
  .article-card .menu-dropdown .menu-btn { /* Use specific class */
    background: none;
    border: none;
    text-align: left;
    padding: 10px 15px; /* Adjust padding */
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition);
    color: var(--text-dark);
    display: flex; /* Align icon and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
  }
  
  .article-card .menu-dropdown .menu-btn i {
      color: var(--text-muted); /* Icon color */
      width: 16px; /* Align icons */
      text-align: center;
  }
  
  .article-card .menu-dropdown .menu-btn:hover {
    background: #f0f0f0;
  }
  
  .article-card .menu-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
  }
  
  
  /* ======================================================================
     Skeleton Loader Styles (Included at the end)
     ====================================================================== */
  .article-card.skeleton {
      /* Keep structure, adjust height if needed based on final card size */
      height: 280px; /* Example height, adjust */
      display: flex;
      flex-direction: column;
      background-color: #fff; /* Match card background */
      box-shadow: var(--box-shadow);
      border-radius: var(--border-radius);
      overflow: hidden;
  }
  
  .skeleton .skeleton-img { /* Use nested selector */
      height: 160px; /* Match card image height */
      background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
      background-size: 200% 100%;
      animation: pulse-bg 1.5s infinite ease-in-out;
  }
  
  .skeleton .skeleton-body { /* Use nested selector */
      padding: 15px;
  }
  
  .skeleton .skeleton-text { /* Use nested selector */
      height: 16px;
      margin-bottom: 8px;
      border-radius: var(--border-radius);
      background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
      background-size: 200% 100%;
      animation: pulse-bg 1.5s infinite ease-in-out;
  }
  .skeleton .skeleton-text.long { width: 90%; }
  .skeleton .skeleton-text.short { width: 60%; }
  
  /* Keyframes for skeleton animation */
  @keyframes pulse-bg {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
  }
  
 
/* ======================================================================
   Miscellaneous
========================================================================== */
/* Button general hover effect */
button:hover {
  opacity: 0.9;
}

/* Link styles inside text */
a {
  color: #2575fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: #f2f2f2;
}

/* Additional spacing for sections if needed */
.section {
  padding: 20px;
  margin: 20px 0;
}
/* --- Custom App Alert Styling --- */
.app-notification {
  position: fixed; /* Keep it in view */
  bottom: 70px;    /* Position near the bottom */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  background-color: #333; /* Default background */
  color: #fff;
  padding: 12px 20px;
  padding-right: 45px; /* Extra padding for close button */
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;   /* Ensure it's above most other content */
  display: flex;
  align-items: center;
  min-width: 250px;
  max-width: 90%;
  opacity: 1;
  overflow: hidden;
  overflow-x: auto;
  transition: opacity 0.4s ease, bottom 0.4s ease, transform 0.4s ease; /* Smooth transitions */
}

/* Initially hidden */
.app-notification.hide {
  opacity: 0;
  bottom: -100px; /* Move it off-screen when hidden */
  pointer-events: none; /* Prevent interaction when hidden */
}

/* Different types for different alert contexts */
.app-notification.success { background-color: #4CAF50; color: white; }
.app-notification.error   { background-color: #f44336; color: white; }
.app-notification.info    { background-color: #2196F3; color: white; }
.app-notification.warning { background-color: #ff9800; color: white; }

#notification-message {
  flex-grow: 1;
  font-size: 0.95em;
}

.notification-close-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.7;
}
.notification-close-btn:hover { opacity: 1; }

.notification-close-btn:focus { outline: none; } /* Remove focus outline */
.notification-close-btn:active { transform: scale(0.9); } /* Button press effect */