body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #fbfef9;
  color: #000004;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.hero {
  background: linear-gradient(120deg, #a63446 0%, #0c6291 100%);
  color: #fff;
  padding: 60px 0 40px 0;
  text-align: center;
}
.hero .hero-content {
  max-width: 600px;
  margin: 0 auto;
}
.hero .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5em;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbfef9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.hero .hero-content p {
  font-size: 1.3rem;
  margin-bottom: 1.5em;
  color: white;
}
.hero .hero-content .cta-btn {
  display: inline-block;
  background: #7e1946;
  color: #fbfef9;
  padding: 0.9em 2.2em;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(166, 52, 70, 0.15);
  transition: background 0.2s, transform 0.2s;
}
.hero .hero-content .cta-btn:hover {
  background: rgb(83.4437086093, 16.5562913907, 46.357615894);
  color: #fbfef9;
  transform: translateY(-2px) scale(1.04);
}

.alert-message {
  background: #a63446;
  color: #fbfef9;
  text-align: center;
  padding: 1em 2em;
  border-radius: 12px;
  margin: 24px auto 0 auto;
  max-width: 420px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(166, 52, 70, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0 2vw 40px 2vw;
}

.hoverToBig {
  display: inline-block;
  transition: font-size 1s ease;
  white-space: pre-wrap;
}

.hoverToBig:hover {
  transform: scale(1.6);
  transition: font-size 1s ease;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(12, 98, 145, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(12, 98, 145, 0.13);
  transform: translateY(-6px) scale(1.025);
}
.card .card__image-link {
  display: block;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: box-shadow 0.2s;
}
.card .card__image-link:focus-visible {
  outline: 2px solid #0c6291;
  outline-offset: 2px;
}
.card .card__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #7e1946;
  border-bottom: 4px solid #0c6291;
  transition: transform 0.25s;
}
.card .card__image-link:hover .card__image,
.card .card__image-link:focus .card__image {
  transform: scale(1.04);
}
.card .card__title-box {
  padding: 1.2em 1.5em 0.2em 1.5em;
  background: none;
}
.card .card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #a63446;
  margin: 0 0 0.2em 0;
  letter-spacing: 0.5px;
}
.card .card__desc {
  padding: 0 1.5em 1.2em 1.5em;
  color: #0c6291;
  font-size: 1.05em;
  min-height: 48px;
}
.card .card__link {
  margin: 0 1.5em 1.5em 1.5em;
  background: #0c6291;
  color: #fbfef9;
  text-decoration: none;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(12, 98, 145, 0.08);
}
.card .card__link:hover {
  background: #7e1946;
  color: #fbfef9;
}

.main-header {
  background: linear-gradient(90deg, #a63446 0%, #0c6291 100%);
  box-shadow: 0 2px 12px rgba(12, 98, 145, 0.07);
  position: sticky;
}
.main-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8em 2vw;
}
.main-header .navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.5em;
  font-weight: 800;
  color: #fbfef9;
  text-decoration: none;
}
.main-header .navbar .logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.main-header .navbar .logo span {
  letter-spacing: 1px;
}
.main-header .navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}
.main-header .navbar .nav-links li a {
  color: #fbfef9;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08em;
  padding: 0.4em 1em;
  border-radius: 6px;
  transition: background 0.18s;
}
.main-header .navbar .nav-links li a:hover {
  background: rgba(166, 52, 70, 0.13);
}
.main-header .navbar .nav-links li .nav-btn {
  background: #a63446;
  color: #fbfef9;
  font-weight: 600;
  border-radius: 18px;
  padding: 0.4em 1.2em;
  margin-left: 0.5em;
  transition: background 0.18s, color 0.18s;
}
.main-header .navbar .nav-links li .nav-btn:hover {
  background: #fbfef9;
  color: #a63446;
}
.main-header .navbar .nav-links li .signup {
  background: #fbfef9;
  color: #7e1946;
  margin-left: 0.5em;
}
.main-header .navbar .nav-links li .signup:hover {
  background: #7e1946;
  color: #fbfef9;
}

footer {
  background: #a63446;
  color: #fbfef9;
  padding: 2em 0 1em 0;
  text-align: center;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 12px rgba(12, 98, 145, 0.07);
}
footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  font-size: 1.1em;
}
footer .footer-content .footer-nav {
  margin-top: 0.5em;
}
footer .footer-content .footer-nav a {
  color: #fbfef9;
  margin: 0 0.7em;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.18s;
}
footer .footer-content .footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.form-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(12, 98, 145, 0.08);
  max-width: 420px;
  margin: 48px auto 64px auto;
  padding: 2.5em 2em 2em 2em;
  text-align: center;
}
.form-section h2 {
  color: #a63446;
  margin-bottom: 1.2em;
  font-size: 2em;
  font-weight: 700;
}
.form-section .form-footer {
  margin-top: 1.5em;
  font-size: 1em;
  color: #0c6291;
}
.form-section .form-footer .form-link {
  color: #7e1946;
  margin-left: 0.5em;
  text-decoration: underline;
  font-weight: 600;
}
.form-section .form-footer .form-link:hover {
  color: #a63446;
}

.post-form,
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin-top: 4em;
  margin-bottom: 4em;
}

input[type=text],
input[type=email],
input[type=password],
textarea,
.post-title,
.post-input,
.post-image-input {
  font-family: inherit;
  font-size: 1.08em;
  padding: 0.85em 1.1em;
  border: 1.5px solid #0c6291;
  border-radius: 10px;
  background: #fbfef9;
  color: #000004;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(12, 98, 145, 0.04);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
textarea:focus,
.post-title:focus,
.post-input:focus,
.post-image-input:focus {
  border-color: #a63446;
  box-shadow: 0 2px 12px rgba(166, 52, 70, 0.1);
  background: white;
}

textarea {
  resize: vertical;
  min-height: 90px;
  max-height: 320px;
}

.post-btn,
button,
input[type=submit] {
  background: #a63446;
  color: #fbfef9;
  font-size: 1.1em;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.8em 2em;
  margin-top: 0.5em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(166, 52, 70, 0.08);
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.post-btn:hover, .post-btn:focus,
button:hover,
button:focus,
input[type=submit]:hover,
input[type=submit]:focus {
  background: rgb(127.1651376147, 39.8348623853, 53.623853211);
  color: #fbfef9;
  transform: translateY(-2px) scale(1.03);
}

.desc-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}

#desc-input {
  width: 480px;
  max-width: 90vw;
  min-width: 320px;
  min-height: 160px;
  font-size: 1.15em;
  margin-bottom: 1em;
  border: 2px solid #0c6291;
  border-radius: 12px;
  background: #fbfef9;
  color: #000004;
  box-shadow: 0 2px 12px rgba(12, 98, 145, 0.06);
  transition: border 0.18s, box-shadow 0.18s;
  resize: vertical;
  display: block;
}
#desc-input:focus {
  border-color: #a63446;
  box-shadow: 0 4px 18px rgba(166, 52, 70, 0.13);
  background: white;
}

#desc-form {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}
#desc-form.open {
  max-height: 400px;
  opacity: 1;
  overflow: visible;
}

.product-title {
  font-size: 2.2em;
  font-weight: 800;
  color: #a63446;
  text-align: center;
  margin: 2.5rem 0 1.2rem 0;
  letter-spacing: 1px;
}

.product-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  flex-wrap: wrap;
}

.product-image-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(12, 98, 145, 0.08);
  padding: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 600px;
  min-height: 260px;
}

.product-image-box img {
  max-width: 600px;
  max-height: 320px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(12, 98, 145, 0.1);
  background: #7e1946;
}

.ad-space {
  flex: 1 1 200px;
  min-height: 120px;
  background: linear-gradient(90deg, #fbfef9 60%, #0c6291 100%);
  border-radius: 14px;
  margin: 1em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c6291;
  font-size: 1.1em;
  opacity: 0.7;
}

.product-description-row {
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(12, 98, 145, 0.08);
  padding: 2em 2em 1.5em 2em;
  font-size: 1.15em;
  color: #000004;
  line-height: 1.7;
  position: relative;
}

.author-actions {
  display: flex;
  gap: 1em;
  margin: 1.5em 0 0.5em 0;
}

.author-link {
  display: inline-block;
  padding: 0.5em 1.3em;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.18s, color 0.18s;
}

.edit-link {
  background: #0c6291;
  color: #fbfef9;
}
.edit-link:hover {
  background: rgb(8.101910828, 66.1656050955, 97.898089172);
}

.delete-link {
  background: #7e1946;
  color: #fbfef9;
}
.delete-link:hover {
  background: rgb(83.4437086093, 16.5562913907, 46.357615894);
}

.comment-section {
  margin-top: 2.5em;
  padding-top: 2em;
  border-top: 1.5px solid #0c6291;
}

.comment-section h2 {
  color: #a63446;
  font-size: 1.4em;
  margin-bottom: 1em;
  font-weight: 700;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}

.comments-list {
  margin-top: 1.5em;
}

.comment {
  background: #fbfef9;
  border-left: 4px solid #a63446;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 1.2em;
  box-shadow: 0 1px 6px rgba(12, 98, 145, 0.06);
}

.comment h4 {
  margin: 0 0 0.3em 0;
  color: #0c6291;
  font-size: 1.08em;
  font-weight: 700;
}

.comment p {
  margin: 0;
  color: #000004;
  font-size: 1em;
}

.no-comments {
  color: #7e1946;
  font-style: italic;
  text-align: center;
  margin-top: 1em;
}

.user-profile-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  padding: 8em 0;
  background: linear-gradient(120deg, #a63446 0%, #0c6291 100%, #fbfef9 100%);
}

.user-card {
  background: #fff;
  border: solid 2px #7e1946;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(12, 98, 145, 0.1);
  padding: 2.5em 2.5em 2em 2.5em;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.2em;
  border: 4px solid #0c6291;
  background: #fbfef9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info h2 {
  margin: 0 0 0.3em 0;
  font-size: 1.7em;
  color: #a63446;
  font-weight: 800;
  text-align: center;
}

.user-info .user-email {
  color: #0c6291;
  font-size: 1.08em;
  margin-bottom: 0.6em;
  text-align: center;
}

.user-info .user-joined {
  color: #7e1946;
  font-size: 0.98em;
  text-align: center;
}

.user-description {
  margin-top: 1.2em;
  color: #000004;
  font-size: 1.08em;
  text-align: center;
  position: relative;
}
.user-description .edit-desc-link {
  margin-left: 0.5em;
  color: #0c6291;
  font-size: 1em;
  vertical-align: middle;
  transition: color 0.18s;
}
.user-description .edit-desc-link:hover {
  color: #7e1946;
  text-decoration: none;
}

@media (max-width: 900px) {
  .product-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .product-image-box img {
    max-width: 90vw;
    max-height: 240px;
  }
  .product-description-row {
    padding: 1.2em 0.7em 1em 0.7em;
  }
}
@media (max-width: 700px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .card__image {
    height: 140px;
  }
  .card-grid {
    gap: 1.2rem;
    padding: 0 0.5rem 2rem 0.5rem;
  }
  .user-card {
    max-width: 90%;
    padding: 1.5em 1em 1em 1em;
    margin: 0 auto;
  }
  #desc-input {
    min-width: 280px;
    width: 100%;
  }
  .product-image-box {
    min-width: auto;
    width: 90%;
  }
  .form-section {
    max-width: 90%;
    padding: 2em 1em 1.5em 1em;
  }
}
@media (max-width: 480px) {
  .user-profile-section {
    padding: 4em 1em;
  }
  .user-card {
    padding: 1.2em 0.8em;
  }
  .navbar {
    flex-direction: column;
    gap: 1em;
    padding: 1em;
  }
  .navbar .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
  }
}

/*# sourceMappingURL=style.css.map */
