/* =========================================
   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; }


/* 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;
}

/* =========================================================
   RISHTA360 – ULTRA LUXURY DARK ROYAL THEME
   ========================================================= */

/* ============================= */
/* GLOBAL PAGE */
/* ============================= */

body {
    background: radial-gradient(circle at top left, #111827, #0b1120 60%);
    color: #f8f8f8;
    font-family: 'Segoe UI', sans-serif;
}

/* ============================= */
/* SEARCH GRID */
/* ============================= */

#searchResults {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 900px) {
    #searchResults {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* ALLIANCE CARD */
/* ============================= */

.alliance-card {
    background: linear-gradient(145deg, #111827, #0f172a);
    border-radius: 22px;
    border: 1px solid rgba(212,175,55,0.2);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}
.alliance-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 70px rgba(0,0,0,0.8),
        0 0 25px rgba(212,175,55,0.35);
    border-color: rgba(212,175,55,0.6);
}

/* Gold Top Strip */
.alliance-card::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right,#d4af37,#f5d76e,#d4af37);
}

/* ============================= */
/* CARD IMAGE FINAL FIX */
/* ============================= */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.alliance-card:hover .card-image img {
    transform: scale(1.05);
}
/* ============================= */
/* CARD BODY */
/* ============================= */

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.view-profile-btn {
    margin-top: auto;
}
/* ============================= */
/* NAME */
/* ============================= */

.profile-name {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
    transition: 0.3s ease;
}

.profile-name:hover {
    color: #d4af37;
}

.profile-id {
    font-size: 12px;
    color: #d4af37;
    font-weight: 600;
    margin-left: 6px;
}

/* ============================= */
/* INFO GRID */
/* ============================= */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    font-size: 13px;
    margin: 15px 0 28px;
    color: #e5e7eb;
}

.info-grid b {
    color: #d4af37;
    font-weight: 600;
}

/* ============================= */
/* BUTTON */
/* ============================= */

.view-profile-btn {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #d4af37;                  /* Gold text */
    border: 2px solid #d4af37;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: linear-gradient(135deg,#d4af37,#f5d76e);
    color: #0b1120;
}

/* ============================= */
/* SECURE MODAL */
/* ============================= */

.secure-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-container {
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    width: 85%;
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
}

/* ============================= */
/* ANIMATION */
/* ============================= */

@keyframes royalFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}