@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html, body {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: whitesmoke; /* Default background */
  color: #000000; /* Default text color */
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  
  /* 🔥 Smooth transition added */
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Hide scrollbar for Webkit browsers */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
  html, body {
    background: #121212; /* Dark background */
    color: #FFFFFF; /* Light text color */
  }

  .post-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    transition: background-color 0.4s ease, border-color 0.4s ease;
  }

  .post-username, .post-time, .dot-separator {
    color: #cccccc;
    transition: color 0.4s ease;
  }

  .dropdown-content a {
    background-color: #222;
    color: #f5f5f5;
    transition: background-color 0.4s ease, color 0.4s ease;
  }
}

/* Hide post options and modal by default */
.hidden {
  display: none !important;
}



/* Modal form textarea */
#text-content textarea {
  width: 100%;
  resize: none;
  font-size: 15px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #FF69B4;
  background: #111;
  color: white;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
  min-height: 80px;
  max-height: 200px;
}

#text-content textarea:focus {
  border-color: #FF69B4;
}

/* File input style */
#image-content input[type="file"],
#video-content input[type="file"] {
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px;
  border: 2px solid #FF69B4;
  background: #111;
  color: white;
  box-sizing: border-box;
}

/* Media preview box */
.media-preview {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #FF69B4;
  background: #222;
  object-fit: cover;
}

/* Submit button */
.submit-post {
  margin-top: 25px;
  width: 100%;
  background-color: #FF69B4;
  border: none;
  padding: 14px;
  color: white;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.7);
}

.submit-post:hover {
  background-color: #FF69B4;
  box-shadow: 0 6px 20px rgba(173, 20, 87, 0.9);
}






/* Post cards */
.post-card {
  width: 100%;            /* always fill feed width */
  max-width: 600px;       /* cap width for readability */
  margin: 1rem auto;      /* nicely centered */
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 12px;
}
.post-divider {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}


.post-user-info {
  display: flex;
  align-items: center;
  flex: 1;
  text-align: left;
}


.post-username {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
}
.post-time-below {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-left: 50px; /* aligns roughly with text after profile pic */
}

@media (max-width: 480px) {
  .post-time-below {
    font-size: 0.7rem;
    margin-left: 45px; /* slightly smaller on mobile */
  }
}

/* Media Styling */
.post-media-container {
  position: relative;
  margin: 1rem 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid #333;
  width: 100%;
}

.post-media-container:hover {
  transform: scale(0.98);
  border-color: #FF69B4;
}

.post-image,
.post-video {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: black;
}
.video-wrapper {
    position: relative;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #FF69B4; /* solid pink */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

.video-play-button.hidden {
    display: none;
}



/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  justify-content: space-between;
}

.post-header span {
  font-weight: bold;
  font-size: 1.1rem;
  color: inherit;
}

/* Post Content */
.post-content {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: left;
  padding: 0 1rem;
  margin: 1rem 0;
  line-height: 1.4;
}

/* Interaction Buttons */
.btn-section {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding: 0 1rem;
}

/* File Input Styling */
input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  cursor: pointer;
  text-align: center;
}

/* Post Header .profile-img */
.post-header .profile-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

/* Dark Mode & Light Mode for Body */
@media (prefers-color-scheme: dark) {
  body {
    background: #000;
    color: #e0e0e0;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background: #fff;
    color: black;
  }
}


/* Hidden utility */
.hidden {
  display: none;
}




/* Input Fields */
.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    color: black;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


/* Helper Links */
.helper-links {
    margin-top: 15px;
    font-size: 14px;
}

.helper-links a {
    color: #FF69B4;
    text-decoration: none;
    font-weight: bold;
}

.helper-links a:hover {
    text-decoration: underline;
}



.dot-separator {
    color: #999;
    font-weight: bold;
}
/* === POST DROPDOWN === */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

/* Button (three dots) */
.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: inherit; /* adapts to text color */
    padding: 6px;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 140px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;

    /* Light mode default */
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 14px;
    color: #000;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
}

/* Show dropdown when hovering (can switch to click via JS if needed) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
    .dropdown-content {
        background-color: #2a2a2a;
        box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.08);
    }

    .dropdown-content a {
        color: #f1f1f1;
    }

    .dropdown-content a:hover {
        background-color: #3a3a3a;
    }

    .dropbtn {
        color: #f1f1f1; /* ensure button visible */
    }
}/* ============================================================
   2. TOP POST ACTIONS (Like, Comment, Views)
   ============================================================ */
.btn-section {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.btn-section button, .btn-section .views {
    background: none;
    border: none;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-section button:hover, .btn-section .liked {
    color: var(--pink);
}

/* ===============================
   SYSTEM COLORS (PINK BASE)
================================ */
:root {
    --pink: #ff2f92;
    --pink-soft: rgba(255, 47, 146, 0.15);
    --bg: #ffffff;
    --text: #111;
    --muted: #777;
    --border: #e5e5e5;
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --text: #f1f1f1;
        --muted: #aaa;
        --border: #2a2a2a;
    }
}



.blue-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  width: 12px;   /* smaller white circle */
  height: 12px;

  padding: 0;
  margin: 0;
}

.blue-verified-badge i {
  color: #1DA1F2;
  font-size: 14px;   /* slightly smaller than parent */
  line-height: 1;
  border-radius: 50%;
  width: 12px;   /* smaller white circle */
  height: 12px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}








  /* Styling Links */
  .follow-item a {
    text-decoration: none;
    color: inherit;
  }

  .follow-item a:hover {
    opacity: 0.8;
  }

  .profile-details {
    margin-top: 20px;
    border-top: 1px solid #ddd;

  }

  /* Pink, Black, and White Color Scheme */
   h1, h3, h4 {
    color:#FF69B4; /* Pink */
  }


  
  .like-btn {
    pointer-events: auto; /* Ensure it's clickable */
  }
  
  
  


  /* Responsive Design */
  @media (max-width: 768px) {
    .follower-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .follower-item img {
      margin-bottom: 10px;
    }

    .action-buttons {
      flex-direction: column;
    }
  }
  /* Container for buttons */
.profile-actions {
  display: flex;
  flex-direction: row;     /* horizontal layout */
  align-items: center;     /* vertically center buttons */
  gap: 8px;                /* space between buttons */
}

/* Make form inline-block so flex works */
.follow-form {
  display: flex;           /* flex to allow equal width */
  flex: 1;                 /* allow it to take equal space */
}

/* Buttons styling */
.follow-form .follow-btn,
.message-btn {
  background-color: #FF1493;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  display: flex;           /* flex to center content */
  align-items: center;
  justify-content: center;
  flex: 1;                 /* make both buttons equal width */
  white-space: nowrap;     /* prevent text wrapping */
  padding: 8px 0;          /* vertical padding, horizontal handled by flex */
  transition: background-color 0.3s ease;
}

.follow-form .follow-btn:hover,
.message-btn:hover {
  background-color: #c1116d;
}

.unfollow-btn {
  background-color: #FF1493;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  padding: 8px 16px;
  transition: background-color 0.3s ease;
}

.unfollow-btn:hover {
  background-color: #c1116d;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .profile-actions {
    flex-direction: row;   /* keep horizontal */
  }

  .message-btn {
    order: 1;             /* left side */
  }

  .follow-form {
    order: 2;             /* right side */
  }

  /* Adjust padding/font for small screens */
  .follow-form .follow-btn,
  .message-btn {
    font-size: 14px;
    padding: 6px 0;
  }
}






/* --- Invite Card Sidebar Style --- */
.invite-card-sidebar {
  background: #ff69b4;        /* iOS pink style */
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 14px;
  text-align: center;
  transition: opacity 0.5s ease;
}

.invite-card-sidebar h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

.invite-card-sidebar p {
  margin: 0 0 8px 0;
}

.invite-card-sidebar strong {
  display: block;
  margin-bottom: 6px;
}

.invite-card-sidebar input {
  width: 100%;
  padding: 6px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  margin-bottom: 6px;
}

.invite-card-sidebar button {
  background: #fff;
  color: #ff69b4;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.invite-card-sidebar button:hover {
  background: #ffe6f0;
}


