﻿.profile-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    align-items: stretch;
}

.owner-info {
    background-color: #1a1a1ae2;
    border-radius: 20px;
    padding: 2rem;
    color: #E6E6E6;
    display: flex;
    gap: 2rem;
    width: 32.7%;
    height: fit-content;
    position: sticky;
    border: 3px solid #6d8196bb;
    box-shadow: 0px 0px 36px #0d0d0d9f;
}

.owner-info .name {
    font-size: 2.0rem;
    font-weight: bold;
    color: #E6E6E6;
}

.owner-info .email {
    font-size: 1.2rem;
}

.owner-info .location {
    font-size: 1.2rem;
    color: #B8B8B8;
}

    .owner-info img.pfp {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 3px solid #6d8196bb;
        object-fit: cover;
    }

.profile-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #1a1a1a;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  width: fit-content;
}

.profile-card img {
  flex: 0 0 clamp(120px, 36%, 220px);
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px
}

.profile-card a img {
    cursor: zoom-in;
}

.car-details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  color: #E6E6E6;
  text-align: left;
}

.car-details .title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.car-details .model {
    text-align: right;
}

.details-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #B8B8B8;
  font-size: 1.2rem;
  align-items: flex-start;
}

.details-list li {
    white-space: normal; 
}

@media (max-width: 640px) {
  .profile-card {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-card img {
    flex: 0 0 auto;
    width: 100%;
  }
  .car-details {
    text-align: center; 

  }
  .details-list {
    align-items: center;
    text-align: center;
  }

  .owner-info {
      width: 100%
  }
}
