/* Desktop layout */
.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

#profileImage {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

.username {
  margin: 0;
  padding: 0;
}

/* Mobile layout: stack image and name vertically */
@media (max-width: 768px) {
  .profile-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .username {
    margin-top: 5px;
  }
}

/* Mobile view: max-width 768px is a common breakpoint */
@media (max-width: 768px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* full width items */
  }

  .sidebar .table-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* spacing between rows */
  }

  .sidebar .table-cell {
    width: 100%;
    text-align: left; /* or center, depending on design */
    align-items: center;
  }

  .sidebar .table-cell label,
  .sidebar .table-cell a {
    display: block;
    margin-top: 5px;
  }

  #profileImage {
    max-width: 80px;
    margin: auto;
  }
}

/* Default styles (for desktop) */
body {
  font-size: 16px;
}

/* For tablets (max width 768px) */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }
}


/* For mobile devices (max width 480px) */
@media screen and (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .container {
    padding: 5px;
  }

  header {
    text-align: center;
  }
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
/*    font-family: Comfortaa, sans-serif;*/
    background-color: #f4f6f7;
    color: #333;
    font-size: 12px;
}

.container {
    width: 80%;
    margin: 0 auto;
}

header {
    font-family: Segoe UI, sans-serif;
    font-size: 12px;
    background-color: #C8102E;
    /*padding: 6px 12px;*/
    color: white;
}

/* Header content container */
header .container {
  display: flex;
  flex-wrap: nowrap;           /* Prevent wrapping */
  /*flex-wrap: wrap;           /* Allows wrapping on mobile */
  align-items: center;
  justify-content: space-between;
  gap: 1px;
}

/* Logo styling — align far left */
header .logo {
  margin-left: 0;          /* Ensure no unwanted left margin */
  padding-left: 0;         /* Ensure no unwanted left padding */
  flex: 0 0 auto; /* Do not grow/shrink */
  margin-right: auto; /* Pushes other items to the right */
}

/* Logo */
header .logo h1 {
  font-family: Comfortaa, sans-serif;
  font-size: 22px;
  margin: 0;
  white-space: nowrap;
}

/* Search bar */
header .search-bar {
  flex: 1 1 200px;
  min-width: 300px;
}

header .search-bar input {
    padding: 6px 10px;
    width: 300px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

header .nav-links ul {
    list-style: none;
    display: flex;
}

header .nav-links li {
    margin-left: 20px;
}

header .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

header .nav-links a:hover {
    text-decoration: underline;
}

.search-button {
  background-color: #012169;   /* Change this to your desired color */
  color: #C8102E;              /* Text color */
  border: 1px solid #C8102E;   /* Border color */
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: Segoe UI, sans-serif;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #C8102E;   /* Color on hover */
  color: #fff;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #C8102E;
  color: white;
  padding: 5px 10px;
  z-index: 1000; /* ensures it's on top */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-container {
    width: 100%;
    display: flex;
    margin-top: 50px;
    flex-wrap: wrap; /* allow items to wrap on small screens */
}

.sidebar {
    font-family: Segoe UI, sans-serif;
    width: 25%;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    flex-wrap: wrap; /* allow items to wrap on small screens */
    min-height: 85vh; /* Full viewport height */
}
    
.sidebar .profile {
    text-align: left;
}

.sidebar .profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.sidebar .table-row img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 0px;
}

.sidebar .links ul {
    list-style: none;
    margin-top: 10px;
}

.sidebar .links li {
    margin-bottom: 5px;
}

.sidebar .links a {
    text-decoration: none;
    color: #012169;
    font-size: 18px;
}

.sidebar .links a:hover {
    text-decoration: underline;
}

.sidebar .table-cell {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
}

.vertical-middle {
  display: flex;
  align-items: center; /* Vertically center */
}

.profile-link {
  font-family: 'Comfortaa', sans-serif;
  font-size: 18px;
  color: #012169;
  text-decoration: none;
  text-align: left; 
  justify-content: center;
  display: flex;
  align-items: center;
}
.profile-link:hover {
  text-decoration: underline;
}

.posts {
    width: 50%;
}

.post {
    font-family: Segoe UI, sans-serif;
    background-color: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-family: Segoe UI, sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
}

.post-date {
    font-size: 14px;
    color: #888;
}

.post-content {
    font-size: 16px;
    line-height: 1.6;
}

.post-content a {
    color: #4267B2;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-form textarea,    
.post-form input {
  border: 0px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
}

textarea {
  resize: none;
}

.post-form button:hover {
  background-color: #C8102E;
}

footer {
    font-family: Segoe UI, sans-serif;
    background-color: #C8102E;
/*    background-color: #012169;*/
/*    background-color: #4267B2;*/
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer ul {
    list-style: none;
    margin-top: 10px;
}

footer ul li {
    display: inline;
    margin-right: 20px;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.table th {
  background-color: #f2f2f2;
}

.like-icon {
  cursor: pointer;
  color: transparent;
  font-size: 24px;
  transition: color 0.2s ease;
}

.like-icon.liked {
  color: red;
}

.follow-icon {
  font-size: 24px;
  color: gray;
  cursor: pointer;
  transition: color 0.3s ease;
}

.follow-icon.followed {
  color: red;
}
    