/* General Profile Container */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  
}



/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border: black;
  border-radius: 5px;
}

/* Profile Picture */
.profile-picture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

/* Profile Informationen */
.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-size: 2rem;
  color: #000000;
  margin: 0;
}

.profile-info h2:hover {
  font-weight: 700;  
  color: #000000c4;
  font-size: 2rem;  
  transition: color 0.3s ease;
}

.profile-stats {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  color: #777;
}

.profile-stats span {
  font-size: 1rem;
}

/* Bio Sektion */
.profile-bio {
  margin-top: 15px;
}

.profile-bio p {
  font-size: 1.1rem;
  color: #555;
  margin: 5px 0;
}

/* Edit Profile Knopf */
.profile-edit-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ff7e5f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.profile-edit-button:hover {
  background-color: #feb47b;
}

/* Profile Posts Section */
.profile-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Single Post */
.profile-post {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.profile-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-post:hover .profile-post-overlay {
  opacity: 1;
}

.profile-post-stats {
  font-size: 1rem;
  display: flex;
  gap: 15px;
}

.profile-post-stats span {
  color: #fff;
}

.no-posts {
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
  text-align: center;
  margin-top: 50px;
  background: #f1ecf1;
  border-radius: 5px;

  
}

/* Spinner & Ladeanzeige */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.2rem;
  color: #444;
  margin-top: 2rem;
}

.spinner {
  border: 8px solid #f3f3f3; 
  border-top: 8px solid #3498db; 
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

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