/* =========================================
   Rishta360 — Glass UI: Sizes & Alignment
   ========================================= */

/* Responsive page padding you can tweak in one place */
:root{
  --page-x-pad: clamp(16px, 3vw, 32px);
  --glass-pad: clamp(16px, 2.5vw, 28px);
  --glass-max: 1100px; /* default max width for glass blocks */
}

/* Centered page container (wrap your main content) */
.container,
.page-container{
  width: min(100% - var(--page-x-pad)*2, 1280px) !important;
  margin-inline: auto !important; /* centers the container */
}

/* Base glass style you can reuse anywhere */
.glass{
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  padding: var(--glass-pad) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  width: min(100%, var(--glass-max)) !important;
}

/* Alignment helpers for any glass block */
.glass--center{ margin: 24px auto !important; }          /* centered */
.glass--left  { margin: 24px auto 24px 0 !important; }   /* left-aligned in container */
.glass--right { margin: 24px 0 24px auto !important; }   /* right-aligned in container */

/* If you don't want to touch HTML, make #searchForm a glass box by default */
#searchForm{
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  padding: var(--glass-pad) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  width: min(100%, var(--glass-max)) !important;
  margin: 24px auto !important; /* center by default */
}

/* Want the search form left-aligned instead? Toggle this one line: */
/* #searchForm{ margin: 24px auto 24px 0 !important; } */

/* Social icon base (already styled earlier) stays the same,
   here are explicit size modifiers: */
.social-icon--xs { font-size: 14px !important; padding: 6px !important; }
.social-icon--sm { font-size: 18px !important; padding: 8px !important; }
.social-icon--md { font-size: 24px !important; padding: 10px !important; } /* default */
.social-icon--lg { font-size: 36px !important; padding: 12px !important; } /* 1.5× bigger */
.social-icon--xl { font-size: 48px !important; padding: 14px !important; }

/* Card upgrades to match the glass theme */
.profile-card,
.card{
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  border: 2px solid rgba(255,255,255,0.25) !important;
  padding: var(--glass-pad) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  width: 100% !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.profile-card:hover,
.card:hover{
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35) !important;
}

/* Optional: set different max widths per page section without editing CSS vars site-wide */
.glass--narrow { --glass-max: 760px; }
.glass--wide   { --glass-max: 1280px; }

/* =========================================
               Existing CSS
   ========================================= */


.hidden { display: none; }
.search-container { padding: 20px; }
.form-group { margin-bottom: 15px; }
.flex { display: flex; }
.space-x-2 { gap: 0.5rem; }

/* 🔹 Base box style */
.box {
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #000; /* keep text readable */
}

/* 🔹 Solid white box (like your old .container) */
.box--solid {
  background: #ffffff;
  margin: 2rem auto;
  max-width: 640px;
}

/* 🔹 Glass effect box (like your thank-box) */
.box--glass {
  background: rgba(255, 255, 255, 0.65); /* semi-transparent white */
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px); /* frosted glass effect */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  margin: 40px 0 40px 40px; /* left aligned */
  max-width: 600px;
}

/* 🔹 Responsive tweak: center on small screens */
@media (max-width: 768px) {
  .box--glass {
    margin: 20px auto; /* center on mobile */
  }
}

/* 🔹 Social Icons */
.social-icon {
  color: #fff;                 /* default white */
  transition: color 0.3s ease; /* smooth hover effect */
  margin: 0 0.5rem;            /* spacing */
}

/* 🔹 Sizes */
.social-icon--small  { font-size: 20px; }  /* compact */
.social-icon--medium { font-size: 28px; }  /* default */
.social-icon--large  { font-size: 36px; }  /* 1.5× bigger */

/* 🔹 Hover effect */
.social-icon:hover {
  color: #ffd700;        /* gold hover */
  transform: scale(1.1); /* subtle zoom */
}

/* =========================================
   Rishta360 Header Styles
   ========================================= */

/* Base nav link style */
.nav-link {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.3s ease, border-color 0.3s ease !important;
  padding-bottom: 4px !important;
  border-bottom: 2px solid transparent !important;
}

/* Hover state */
.nav-link:hover {
  color: #ffd700 !important; /* gold */
  border-bottom: 2px solid #ffd700 !important;
}

/* Active/current page state */
.nav-link.active {
  color: #ffd700 !important;
  border-bottom: 2px solid #ffd700 !important;
}
