/* Print Preview - TCG Card Layout */
/* Poker card: 2.5" x 3.5" = 5:7 aspect ratio */

.print-card {
    width: 100%;
    aspect-ratio: 5 / 7;
    max-width: 350px;
    margin: 0 auto;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

/* Black outer border */
.card-border {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Decorative frame - aged parchment look */
.card-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4b896 0%, #c9a876 50%, #d4b896 100%);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.6),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

/* Inner decorative border */
.card-frame::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 2px solid #8b7355;
    border-radius: 6px;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgba(139, 115, 85, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Background texture layer - sits behind all boxes */
.card-frame::after {
    content: '';
    position: absolute;
    inset: 12px;
    background:
        linear-gradient(to bottom,
            rgba(250, 245, 235, 0.8) 0%,
            rgba(245, 238, 220, 0.9) 50%,
            rgba(240, 230, 210, 0.8) 100%
        );
    border-radius: 4px;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 -1px 4px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 0;
}

/* Title bar with enhanced 3D bevel */
.card-header {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom,
        #f5e6d3 0%,
        #ead9bf 25%,
        #ddc9a8 50%,
        #d4b896 75%,
        #c9a876 100%
    );
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #2c2416;
    box-shadow:
        0 0 0 1px #8b7355,
        0 3px 1px rgba(0, 0, 0, 0.4),
        0 4px 2px rgba(0, 0, 0, 0.2),
        inset 0 2px 1px rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px rgba(0, 0, 0, 0.25),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4),
        inset -2px -2px 4px rgba(0, 0, 0, 0.15);
}

.card-name {
    font-size: 15px;
    font-weight: bold;
    color: #1a1a1a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    flex: 1;
}

.card-cost {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    color: #1a1a1a;
    font-size: 14px;
}

/* Art Frame with enhanced 3D blue border */
.card-art-frame {
    flex: 1;
    position: relative;
    z-index: 1;
    background: #4a90c8;
    border: 4px solid #2c5f8d;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px #6ba8d8,
        0 4px 2px rgba(0, 0, 0, 0.5),
        0 6px 4px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(120, 170, 220, 0.7),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        inset 3px 3px 8px rgba(150, 200, 240, 0.5),
        inset -3px -3px 8px rgba(0, 0, 0, 0.3);
}

/* Inner border for art frame */
.card-art-frame::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 2px solid rgba(44, 95, 141, 0.6);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

.card-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
}

.card-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #89b4d8 0%, #5a8bb8 100%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
}

/* Type line with enhanced 3D bevel */
.card-type-line {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom,
        #f5e6d3 0%,
        #ead9bf 25%,
        #ddc9a8 50%,
        #d4b896 75%,
        #c9a876 100%
    );
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #2c2416;
    box-shadow:
        0 0 0 1px #8b7355,
        0 3px 1px rgba(0, 0, 0, 0.4),
        0 4px 2px rgba(0, 0, 0, 0.2),
        inset 0 2px 1px rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px rgba(0, 0, 0, 0.25),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4),
        inset -2px -2px 4px rgba(0, 0, 0, 0.15);
}

.type-line-text {
    font-size: 12px;
    font-weight: bold;
    color: #1a1a1a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.type-line-icon {
    width: 20px;
    height: 20px;
    background: #8b7355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Text Box with enhanced inset 3D effect */
.card-text-box {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom,
        #fdfcf9 0%,
        #faf8f3 25%,
        #f5f0e8 75%,
        #f0ebe0 100%
    );
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow-y: auto;
    font-size: 10px;
    line-height: 1.5;
    min-height: 80px;
    border: 3px solid #2c2416;
    box-shadow:
        0 0 0 1px #8b7355,
        0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 3px 6px rgba(0, 0, 0, 0.25),
        inset 0 -2px 4px rgba(255, 255, 255, 0.9),
        inset 3px 3px 8px rgba(0, 0, 0, 0.15),
        inset -2px -2px 6px rgba(255, 255, 255, 0.6);
}

/* Inner border for text box */
.card-text-box::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(44, 36, 22, 0.2);
    border-radius: 3px;
    pointer-events: none;
}

.ability-section {
    margin-bottom: 8px;
}

.ability-keyword {
    font-weight: bold;
    color: #1a1a1a;
}

.ability-text {
    color: #2c2416;
}

.flavor-text {
    font-style: italic;
    color: #5a4a3a;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #d4b896;
    font-size: 9px;
}

.no-text {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Footer with enhanced 3D bevel */
.card-footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom,
        #f5e6d3 0%,
        #ead9bf 25%,
        #ddc9a8 50%,
        #d4b896 75%,
        #c9a876 100%
    );
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    color: #2c2416;
    border: 2px solid #2c2416;
    box-shadow:
        0 0 0 1px #8b7355,
        0 2px 1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        inset 1px 1px 3px rgba(255, 255, 255, 0.4),
        inset -1px -1px 3px rgba(0, 0, 0, 0.15);
    margin-top: auto;
}

.card-set-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.card-number {
    background: linear-gradient(to bottom, #fdfcf9 0%, #faf8f3 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #2c2416;
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.25),
        inset 0 -1px 1px rgba(255, 255, 255, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Responsive scaling */
@media (max-width: 400px) {
    .print-card {
        max-width: 100%;
    }

    .card-name {
        font-size: 13px;
    }

    .card-text-box {
        font-size: 9px;
    }

    .type-line-text {
        font-size: 11px;
    }
}
