/* Accreditation Badge Styling - Inspired by WhatsApp Image 2026-10-12 at 2.07.06 PM (1).jpeg */

.badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    background: #e2e8f0;
    min-height: calc(100vh - 200px);
}

.accreditation-card {
    width: 420px;
    height: 620px;
    background: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25), 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    color: #1e293b;
    page-break-inside: avoid;
    background-image: radial-gradient(circle at 100% 0%, rgba(201, 28, 40, 0.04) 0%, transparent 60%);
}

/* Card Lanyard Hole (Punch hole representation at top) */
.badge-lanyard-slot {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 10px;
    background: #e2e8f0;
    border: 1px solid #94a3b8;
    border-radius: 10px;
    z-index: 10;
}

/* Header Section */
.card-header-banner {
    position: relative;
    background: linear-gradient(135deg, #0d1117 0%, #171d28 100%);
    padding: 22px 14px 14px 14px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c91c28;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-header-banner::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #c91c28 0%, #d97706 50%, #c91c28 100%);
}

.card-logo-box {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    border: 2px solid #c91c28;
    flex-shrink: 0;
}

.card-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-title-box {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.card-title-box h2 {
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-title-box .edition-pill {
    display: inline-block;
    background: #c91c28;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 2px 12px;
    border-radius: 12px;
    margin: 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-title-box .date-label {
    font-size: 0.78rem;
    color: #fcd34d;
    font-weight: 700;
    margin: 0;
}

/* Photo Section */
.card-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 6px 0;
    position: relative;
}

/* Wavy / Stamp-like Border as seen in WhatsApp Image 1 */
.stamp-photo-frame {
    width: 140px;
    height: 165px;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    position: relative;
    border: 3px dashed #c91c28;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.stamp-photo-frame::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1.5px solid #d97706;
    border-radius: 12px;
    pointer-events: none;
}

.stamp-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Information Box (Dark navy box with red top border) */
.card-info-box {
    background: linear-gradient(180deg, #121620 0%, #19202c 100%);
    margin: 6px 14px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #ffffff;
    border-top: 3px solid #c91c28;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.15);
}

.info-row {
    display: flex;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 70px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fca5a5;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-value.highlight-name {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
}

.info-value.highlight-role {
    color: #fbbf24;
    font-weight: 800;
}

/* Bottom Strip (Partner logos and QR) */
.card-bottom-strip {
    background: #ffffff;
    padding: 8px 14px 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.partners-strip-img {
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.badge-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #c91c28;
    padding: 4px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(201, 28, 40, 0.3);
}

.qr-code-canvas {
    width: 48px;
    height: 48px;
    background: #ffffff;
    padding: 2px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-canvas img, .qr-code-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

.scan-me-text {
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

/* Card Control Toolbar */
.card-toolbar {
    max-width: 420px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Print Specific Rules */
@media print {
    body {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .no-print, .site-navbar, .gov-header, .tournament-bar, .site-footer, .card-toolbar {
        display: none !important;
    }

    .badge-wrapper {
        background: transparent !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    .accreditation-card {
        box-shadow: none !important;
        border: 1px solid #94a3b8 !important;
        margin: 10mm auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
