/* Biodata Maker - Template Preview Styles */

/* Template picker */
.template-card[aria-checked="true"] {
    box-shadow: 0 8px 20px rgba(109, 20, 32, 0.12);
}

/* Live preview card */
.bio-card {
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--bio-border, #c9a86a);
}

.bio-body {
    padding: 28px 28px 20px;
}

/* Header variants */
.bio-header {
    flex: 1;
    min-width: 0;
}

.bio-header-band,
.bio-header-banner {
    padding: 18px 20px;
    border-radius: 12px;
}

.bio-header-centered,
.bio-header-minimal {
    padding: 6px 4px 0;
    text-align: center;
}

.bio-header-minimal {
    text-align: left;
}

.bio-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.bio-header-centered .bio-kicker,
.bio-header-minimal .bio-kicker {
    text-align: inherit;
}

.bio-name {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.bio-header-banner .bio-name {
    font-size: 36px;
    letter-spacing: 0.02em;
}

.bio-header-banner .bio-name::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    background: currentColor;
    opacity: 0.7;
    margin-top: 10px;
}

.bio-sub {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 8px;
}

/* Photo placement */
.bio-photo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.bio-toprow {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.bio-toprow .bio-header {
    padding-top: 6px;
}

.bio-siderow {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
}

.bio-siderow-reverse {
    flex-direction: row-reverse;
}

.bio-siderow .bio-header {
    padding-top: 8px;
}

/* Photo frames */
.bio-photo {
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-photo-round {
    border-radius: 50%;
}

.bio-photo-square {
    border-radius: 10px;
}

.bio-photo-arch {
    border-radius: 999px 999px 10px 10px;
}

.bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bio-muted, #8a6d4b);
    font-size: 34px;
    opacity: 0.6;
}

/* Sections */
.bio-section {
    margin-top: 22px;
}

.bio-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 6px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--bio-accent, #b98a2f);
}

.bio-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bio-rows-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 28px;
}

.bio-row {
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
}

.bio-label {
    font-weight: 600;
    color: var(--bio-muted, #8a6d4b);
}

.bio-value {
    font-weight: 500;
}

.bio-para {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    grid-column: 1 / -1;
    word-break: break-word;
}

.bio-partner-box {
    background: #fef3c7;
    border: 1px solid var(--bio-accent, #b45309);
    border-radius: 10px;
    padding: 12px 14px;
}

.bio-footer {
    margin-top: 26px;
    padding-top: 12px;
    border-top: 1px solid var(--bio-border, #c9a86a);
    text-align: center;
    font-size: 12px;
    color: var(--bio-muted, #8a6d4b);
    letter-spacing: 0.04em;
}

/* Per-template tweaks */
.bio-tpl-classic-cream {
    border-width: 3px;
    border-style: double;
}

.bio-tpl-modern-minimal .bio-section-title {
    border-bottom-width: 1px;
}

.bio-tpl-modern-minimal .bio-body {
    padding: 32px 34px 22px;
}

.bio-tpl-floral-pastel .bio-header-band {
    border-radius: 16px 16px 4px 4px;
}

.bio-tpl-punjabi .bio-header-banner {
    border-radius: 4px;
    border-bottom: 4px solid var(--bio-accent, #d4a017);
}

.bio-tpl-south-indian .bio-header-band {
    border-radius: 12px;
    border: 2px solid var(--bio-accent, #b45309);
}

.bio-tpl-nikah .bio-header-band {
    border-radius: 12px;
}

.bio-tpl-christian .bio-header-band {
    border-radius: 4px;
}

/* Print: only the biodata preview prints */
@media print {
    body * {
        visibility: hidden;
    }
    #biodataPreview,
    #biodataPreview * {
        visibility: visible;
    }
    #biodataPreview {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }
    .bio-card {
        border-width: 2px;
    }
}

/* Small screens: stack two-column rows */
@media (max-width: 640px) {
    .bio-rows-2col {
        grid-template-columns: 1fr;
    }
    .bio-siderow {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio-siderow .bio-header {
        text-align: center;
    }
    .bio-name {
        font-size: 26px;
    }
    .bio-body {
        padding: 20px 18px 16px;
    }
}
