/* Profile Container */
.profile-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.profile-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-title {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-title h1 {
  font-size: 2.5rem;
  color: var(--dark);
  margin: 0;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
}

.rating-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.rating-count {
  font-size: 0.9rem;
  color: var(--gray);
}

.no-reviews {
  color: var(--gray);
  font-style: italic;
}

/* Profile Card */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.profile-image {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feedback-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.feedback-button:hover {
  background: var(--primary-dark);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
}

.feedback-button--disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.feedback-button--disabled:hover {
  background-color: #cccccc;
}

.feedback-button--disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.feedback-button--disabled:hover {
  background-color: #cccccc;
}

/* Login prompt styles */
.feedback-login-prompt {
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #fff3f3;
  border-left: 3px solid var(--warning);
  border-radius: 0 4px 4px 0;
}

.feedback-login-prompt a {
  color: var(--danger);
  text-decoration: underline;
}

.hidden {
  display: none;
}

.feedback-button svg {
  width: 16px;
  height: 16px;
}

/* Profile Details */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-section {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-section h3 {
  margin-bottom: 1.25rem;
  color: var(--dark);
  font-size: 1.25rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.detail-value {
  font-weight: 500;
  color: var(--dark);
}

.bio-text {
  line-height: 1.7;
  color: var(--dark);
}

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-chip {
  background: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.course-chip:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Teachers List */
.teachers-card {
  margin-bottom: 3rem;
}

.teachers-card h3 {
  margin-bottom: 1.5rem;
}

.teachers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.teacher-item {
  background: white;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.teacher-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.teacher-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.teacher-name {
  font-weight: 500;
  color: var(--dark);
}

.teacher-meta {
  font-size: 0.85rem;
  color: var(--gray);
}

.arrow-icon {
  color: var(--gray);
  transition: transform 0.2s ease;
}

.teacher-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.teacher-item:hover .arrow-icon {
  transform: translateX(3px);
  color: var(--primary);
}

/* University Styles */
.university-logo {
  margin-bottom: 2rem;
}

.logo-image {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.top-teachers {
  margin-top: 2rem;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.teacher-card {
  background: white;
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

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

.teacher-rating {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.teacher-name {
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.teacher-name:hover {
  color: var(--primary);
}

/* Admin Edit Form */
.admin-actions {
  margin: 2rem 0;
}

.edit-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-button:hover {
  background: var(--primary-dark);
}

.edit-button svg {
  width: 16px;
  height: 16px;
}

.edit-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row .form-group {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.save-button {
  background: var(--success);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.cancel-button {
  background: var(--light);
  color: var(--dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
  }
  
  .profile-image {
    align-items: center;
  }
  
  .profile-photo {
    max-width: 250px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .teachers-grid {
    grid-template-columns: 1fr;
  }
}