/* Profile Page Redesign Styles */

/* Banner & Header */
.profile-banner-section {
  position: relative;
  margin-bottom: 100px;
  /* Space for overlapping card */
}

.profile-banner {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  width: 100%;
}

.profile-header-container {
  position: relative;
  margin-top: -80px;
  z-index: 10;
}

.profile-header-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .profile-header-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-end;
    padding: 2rem 3rem;
  }
}

/* Avatar */
.profile-avatar-container {
  position: relative;
  margin-top: -80px;
  /* Pull up above card */
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .profile-avatar-container {
    margin-top: -100px;
    margin-right: 2rem;
    margin-bottom: 0;
  }
}

.profile-avatar-main {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid var(--card-bg);
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .profile-avatar-main {
    width: 160px;
    height: 160px;
  }
}

.btn-edit-avatar {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit-avatar:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

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

.profile-name-main {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.badge-tier {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-email-main {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.profile-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .profile-stats-bar {
    justify-content: flex-start;
  }
}

.stat-separator {
  width: 1px;
  height: 15px;
  background-color: #ddd;
}

/* Actions */
.profile-actions-main {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .profile-actions-main {
    margin-top: 0;
    margin-left: 2rem;
    margin-bottom: 1rem;
  }
}

/* Cards */
.profile-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
}

.card-title {
  font-weight: 700;
  color: var(--text-color);
}

/* Impact Box */
.impact-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--background-light);
  border-radius: 12px;
}

.impact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bg-light-success {
  background-color: rgba(25, 135, 84, 0.1);
}

.bg-light-primary {
  background-color: rgba(13, 110, 253, 0.1);
}

.impact-data {
  flex: 1;
  padding-top: 0.15rem;
}

.impact-data h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.impact-data p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Sponsorships Grid */
.sponsorships-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .sponsorships-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

.sponsorship-card-mini {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sponsorship-card-mini:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sponsorship-img-wrapper {
  height: 140px;
  overflow: hidden;
  position: relative;
}

.sponsorship-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsorship-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.sponsorship-info-mini {
  padding: 1rem;
}

.sponsorship-info-mini h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.progress-mini {
  height: 6px;
  border-radius: 3px;
  background: #eee;
  margin: 0.75rem 0;
}

.progress-bar-mini {
  background: var(--primary-color);
  border-radius: 3px;
}

/* Theme Toggles */
.theme-toggle-group {
  display: flex;
  background: var(--background-light);
  padding: 4px;
  border-radius: 20px;
}

.btn-theme-toggle {
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-toggle.active {
  background: var(--card-bg);
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Accordion Custom */
.accordion-button {
  background-color: var(--card-bg);
  color: var(--text-color);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.05);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.1);
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] {
  --card-bg: #1e1e1e;
  --background-light: #2c2c2c;
  --text-color: #fff;
  --text-muted: #aaa;
  --border-color: #333;
}