
/* --- The Book Structure --- */
.passport-book-cover {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 3/2; /* Typical passport aspect ratio when open */
    background-color: #2c241b; /* Dark Brown Leather */
    border-radius: 15px;
    padding: 12px; /* Leather trim visible around pages */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.passport-book-inner {
    background: #fdfbf7;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1); /* Inner shadow for depth */
}

/* --- Pages --- */
.passport-page {
    background-color: #fffefb;
    /* Subtle paper noise */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.page-left {
    background-color: #f4f1ea; /* Slightly darker/warmer ID page */
    border-right: 1px solid #e0dcd0;
}

/* Shadows for the book fold */
.book-fold-gradient-left {
    position: absolute; top:0; bottom:0; right:0; width: 60px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15));
    pointer-events: none; z-index: 10;
}
.book-fold-gradient-right {
    position: absolute; top:0; bottom:0; left:0; width: 60px;
    background: linear-gradient(to left, transparent, rgba(0,0,0,0.15));
    pointer-events: none; z-index: 10;
}

/* --- Typography & Styling --- */
.passport-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 4px;
    color: #bfa15f; /* Gold-ish */
    text-shadow: 0px 1px 1px rgba(0,0,0,0.3); /* Embossed look */
    margin-bottom: 5px;
}
.passport-subtitle {
    font-family: 'Courier Prime', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #555;
}
.gold-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(to right, transparent, #bfa15f, transparent);
}

/* --- Photo Area --- */
.passport-photo-container {
    width: 130px;
    height: 160px;
    background: #fff;
    padding: 5px;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
    transform: rotate(-2deg); /* Glued on crooked */
}
.passport-photo, .passport-photo-placeholder {
    width: 100%; height: 100%;
    object-fit: cover;
    background: #eee;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel'; font-size: 3rem; color: #ccc;
    filter: grayscale(100%) contrast(110%); /* ID photos are usually dull */
}

/* --- Data Fields --- */
.data-group { margin-bottom: 12px; font-family: 'Courier Prime', monospace; }
.data-group label {
    display: block; font-size: 0.6rem; color: #999; text-transform: uppercase; margin-bottom: 2px;
}
.data-group .data-value {
    font-size: 1rem; font-weight: 700; color: #222; border-bottom: 1px dotted #ccc; width: 100%;
}

.signature-line {
    border-bottom: 1px solid #444; width: 80%; margin: 0 auto 5px auto;
}
.handwritten-signature {
    font-family: 'Dancing Script', cursive; font-size: 2rem; color: #1a1a1a;
}

/* --- STAMPS --- */
.stamp-container {
    transition: transform 0.2s ease;
}
.stamp-container:hover {
    transform: scale(1.1) !important;
    z-index: 50;
    cursor: pointer;
}

.stamp-ink {
    display: flex; align-items: center; justify-content: center;
    mix-blend-mode: multiply; /* Looks like ink soaked into paper */
    opacity: 0.85;
    font-family: 'Special Elite', cursive;
    text-align: center;
}

.stamp-blue { color: #1e3a8a; } /* Ink Blue */
.stamp-red { color: #991b1b; } /* Ink Red */
.stamp-faded { color: #a1a1aa; opacity: 0.5; }

.stamp-border-double {
    border: 3px double currentColor;
    width: 100%; height: 100%;
    border-radius: 50%;
    padding: 5px;
    display: flex; align-items: center; justify-content: center;
}

.stamp-border-rect {
    border: 3px solid currentColor;
    width: 100%; height: 80px; /* Rectangular for missions */
    border-radius: 4px;
    padding: 5px;
    display: flex; flex-direction: column; justify-content: center;
}

.stamp-shop-name { font-weight: bold; font-size: 0.8rem; line-height: 1.1; margin-bottom: 4px; }
.stamp-date { font-size: 0.7rem; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; margin: 2px 0; font-family: 'Courier Prime'; }
.stamp-loc { font-size: 0.6rem; letter-spacing: 1px; }

/* Mobile Responsive */
@media (max-width: 991px) {
    .passport-book-cover { aspect-ratio: auto; border-radius: 0; padding: 0; max-width: 100%; }
    .page-left { border-right: none; border-bottom: 10px solid #2c241b; }
    .book-fold-gradient-left, .book-fold-gradient-right { display: none; }
}
