/* ==========================================================================
   AIRA PRESS CLUB - OFFICIAL ID CARD STYLESHEET
   100% Vector & High-Definition Digital Replica
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Noto+Sans+Devanagari:wght@400;600;700;800;900&display=swap');

.idcard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto;
  max-width: 620px;
  width: 100%;
}

.idcard-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   OFFICIAL CR80 CARD CONTAINER (590px x 365px) & RESPONSIVE SCALER
   ========================================================================== */
.idcard-scaler-box {
  width: 590px;
  height: 365px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  flex-shrink: 0;
  transition: width 0.15s ease, height 0.15s ease;
}

.aira-id-card {
  width: 590px !important;
  height: 365px !important;
  min-width: 590px !important;
  min-height: 365px !important;
  max-width: 590px !important;
  max-height: 365px !important;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  font-family: 'Noto Sans Devanagari', 'Montserrat', sans-serif;
  color: #111827;
  border: 1px solid #d4af37;
  display: flex;
  flex-direction: column;
  user-select: none;
  box-sizing: border-box;
  transform-origin: top center;
  flex-shrink: 0;
}



/* ==========================================================================
   TOP HEADER AREA (Rich Golden Yellow #ffd200)
   ========================================================================== */
/* ==========================================================================
   TOP HEADER AREA (Rich Golden Yellow #ffd200)
   ========================================================================== */
.idcard-header {
  position: relative;
  background: linear-gradient(180deg, #ffe000 0%, #ffd000 100%);
  padding: 4px 10px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #eab308;
  height: 124px;
  box-sizing: border-box;
  z-index: 2;
}

/* Left Logo: Official AIRA Association Winged Emblem (Seamlessly on yellow background) */
.idcard-header-left {
  width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idcard-logo-left-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.idcard-logo-left-svg {
  width: 94px;
  height: 82px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

/* Center Column: Official Slanted PRESS Ribbon & Enlarged Hindi Titles */
.idcard-header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
  overflow: hidden;
}

.idcard-press-banner-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
  width: 100%;
}

.idcard-press-ribbon {
  width: 350px;
  height: 28px;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.22));
}

.idcard-title-navy {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.64rem;
  font-weight: 900;
  color: #071f66;
  letter-spacing: 0.1px;
  line-height: 1.15;
  margin: 4px 0 0 0;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.idcard-title-red {
  font-family: 'Noto Sans Devanagari', 'Arial Black', sans-serif;
  font-size: 2.72rem;
  font-weight: 900;
  color: #e00000;
  line-height: 1.0;
  letter-spacing: 0.2px;
  margin: 5px 0 0 0;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Right Logo: Official Circular Crest Seal (Directly on yellow background) */
.idcard-header-right {
  width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idcard-logo-right-img {
  width: 86px;
  height: 86px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

/* ==========================================================================
   CARD BODY (Pure Crisp White Background #ffffff)
   3 Columns: Photo | Details Table | Barcode + Stamp Column
   ========================================================================== */
.idcard-body {
  position: relative;
  background-color: #ffffff;
  flex: 1;
  padding: 8px 14px 6px;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden;
}

/* Watermark: Highlighted & Visible behind Details */
.idcard-watermark {
  position: absolute;
  top: 50%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 165px;
  background-image: url('/images/card_watermark.png?v=no_ring');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* Column 1: Member Photo */
.idcard-photo-col {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idcard-photo-box {
  width: 125px;
  height: 155px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idcard-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Column 2: Details Column */
.idcard-details-col {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 2px 8px 2px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.idcard-detail-row {
  display: flex;
  align-items: center;
  min-height: 28px;
  line-height: 1.5;
  margin: 1px 0;
}

.idcard-lbl {
  width: 100px;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  color: #0c2461;
  flex-shrink: 0;
  line-height: 1.5;
}

.idcard-colon {
  width: 14px;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  color: #0c2461;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.5;
}

.idcard-val {
  flex: 1;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 800;
  font-size: 1.14rem;
  color: #111827;
  padding-left: 8px;
  line-height: 1.5;
  white-space: nowrap;
}

.idcard-val.idcard-aira-no {
  font-size: 1.32rem;
  font-weight: 900;
  color: #111827;
}

/* Column 3: Right Column - Verification QR Code & Official Circle Trust Stamp
   ========================================================================== */
.idcard-auth-col {
  position: relative;
  z-index: 1;
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 1px;
}

/* Square Barcode (QR Code) Section */
.idcard-qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.idcard-qr-box {
  width: 68px;
  height: 68px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.idcard-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Official Stamp and Auth Signatory Area */
.idcard-signatory-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.idcard-stamp-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(29, 78, 216, 0.22));
}

.idcard-auth-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0c2461;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  margin-top: 1px;
}

/* ==========================================================================
   BOTTOM FOOTER BAR (Emerald Green #008f39 with Sl. No. and Act Recognition)
   ========================================================================== */
.idcard-footer {
  position: relative;
  background-color: #008f39;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 2;
}

.idcard-sl-no {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-right: 14px;
  flex-shrink: 0;
}

.idcard-act-text {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE (SCALED CLEANLY FOR SMARTPHONES)
   ========================================================================== */
@media (max-width: 640px) {
  .idcard-wrapper {
    width: 100%;
    padding: 4px 0;
    overflow-x: hidden;
  }

  .idcard-actions {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    padding: 0 10px;
  }

  .idcard-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 12px;
  }
}

/* ==========================================================================
   PRINT MEDIA QUERY (FOR PHYSICAL PVC PRINTING)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  .idcard-wrapper, .idcard-wrapper * {
    visibility: visible;
  }
  .idcard-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    width: 590px;
  }
  .idcard-actions {
    display: none !important;
  }
  .aira-id-card {
    box-shadow: none !important;
    border: 1px solid #999 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
