/* ==========================================================================
   User Profile Styles
   ========================================================================== */

/* General form styling */
.user-profile {
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Center the form */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--color-background-light);
}

/* Form headings */
.user-profile h2 {
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-size: 1.5em;
}

.user-profile label {
    font-size: 1.5em;
}

.user-profile input, textarea {
    width: 100%;
}

/* Form elements */
.user-profile .form-control {
    width: 100%; /* Make text fields take up the full width */
    padding: 10px; /* Add padding inside the text fields */
    margin-bottom: 15px; /* Space between fields */
    border-radius: 4px; /* Rounded corners */
    border: 1px solid #ccc; /* Light border color */
}

/* Add hover effect for the button */
.user-profile .btn-primary:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.user-profile-details {
    padding-bottom: 10em;
    padding-top: 2em;
}

.user-profile-details > div > div > div h1 {
    padding-top: 2em;
    padding-bottom: 1em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2mm;
}

.user-profile-details > div > div > div > p {
    font-size: 1.5em;
    text-align: center;
    padding-top: 1em;
}




/* Base Styling */
.user-profile-details {
  color: #333;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Headings */
.user-profile-details h1.italiana-regular {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.user-profile-details h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Description List Layout */
.user-profile-details dl {
  margin-bottom: 2rem;
}

.user-profile-details dt {
  font-weight: 600;
  padding-bottom: 0.25rem;
  text-align: right;
}

.user-profile-details dd {
  margin-left: 0;
  padding-bottom: 0.5rem;
}

/* Buttons */
.user-profile-details .btn-dark {
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.user-profile-details .btn-dark:hover {
  background-color: #1a1a1a;
}

.user-profile-details .btn-outline-danger {
  font-size: 1rem;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  border: 2px solid #dc3545;
  color: #dc3545;
  transition: all 0.3s ease-in-out;
}

.user-profile-details .btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

/* Profile Card Spacing and Styling */
.user-profile-details .profile-card {
  padding: 2rem;
  margin: 2rem 1.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .user-profile-details .profile-card {
    margin: 2rem 3rem;
    padding: 3rem;
  }
}

@media (min-width: 1200px) {
  .user-profile-details .profile-card {
    margin: 3rem 5rem;
    padding: 4rem;
  }
}

/* Delete Page Form */
.delete-account-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.delete-account-container p {
  color: #555;
  margin-bottom: 2rem;
}

/* Spacing Between Sections */
.user-profile-details .user-details > h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive Typography & Layout
   ========================================================================== */

/* Typography Scaling: Tablets */
@media (min-width: 576px) {
  .user-profile-details h1.italiana-regular {
    font-size: 2.5rem;
  }

  .user-profile-details h2 {
    font-size: 1.75rem;
  }

  .user-profile-details dt,
  .user-profile-details dd {
    font-size: 1.1rem;
  }
}

/* Typography Scaling: Desktops */
@media (min-width: 992px) {
  .user-profile-details h1.italiana-regular {
    font-size: 3rem;
  }

  .user-profile-details h2 {
    font-size: 2rem;
  }

  .user-profile-details dt,
  .user-profile-details dd {
    font-size: 1.2rem;
  }
}

/* Responsive Layout for Description Lists */
@media (max-width: 575.98px) {
  .user-profile-details dl.row {
    display: block;
  }

  .user-profile-details dt,
  .user-profile-details dd {
    display: block;
    text-align: left !important;
    width: 100% !important;
    font-size: 1rem;
    padding: 0.4rem 0;
  }

  .user-profile-details dt {
    font-weight: 700;
  }
}

@media (min-width: 576px) {
  .user-profile-details dl.row {
    display: flex;
    flex-wrap: wrap;
  }

  .user-profile-details dt {
    width: 40%;
    text-align: right;
    padding-right: 1rem;
  }

  .user-profile-details dd {
    width: 60%;
  }
}

/* ==========================================================================
   Edit Profile Styles
   ========================================================================== */

.user-profile {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.user-profile h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.user-profile button {
  width: 100%;
  max-width: 200px;
  padding: 0.5rem 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .user-profile {
    padding: 0 0.5rem;
    font-size: 1rem;
  }

  .user-profile button {
    font-size: 1rem;
  }
}

/* ========================================================================== 
   Delete Account & General Styles
   ========================================================================== */

/* Container widths and padding for responsive layout */
.container,
.delete-account-container {
  max-width: 900px;
  padding: 3em 1em;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container,
  .delete-account-container {
    max-width: 1100px;
    padding: 5em 2em;
  }
}

@media (min-width: 1200px) {
  .container,
  .delete-account-container {
    max-width: 1300px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Responsive Headings */
h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem; /* added margin consistent with content spacing */
}

/* Responsive paragraph text */
p.text-muted {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  line-height: 1.5;
  margin-bottom: 1.5rem; /* consistent spacing */
}

/* Buttons styling */
.btn-danger,
.btn-outline-secondary {
  font-size: clamp(1rem, 1.5vw + 0.3rem, 1.15rem);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effects */
.btn-danger:hover {
  background-color: #b02a37; /* Darker red on hover */
}

.btn-outline-secondary:hover {
  background-color: #e2e6ea;
  color: #343a40;
}

/* Space between adjacent buttons */
.btn + .btn {
  margin-left: 1rem;
}

/* Hero Section Styles */
.hero-text-md h2, 
.hero-text-md h3 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Color overlay - optional for better contrast */
.color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Ensure text in hero sits above overlay */
.hero-text-md {
  position: relative;
  z-index: 2;
}
