/* ========================================
   CHRISTMAS CARD 2025 - FESTIVE STYLES
   Larger, more readable fonts
   ======================================== */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

/* Print layout: 4 panels on letter-size landscape */
@media print {
    body {
        padding: 0;
        background: white;
    }
    
    .print-instructions {
        display: none !important;
    }
}

/* Card container - letter size landscape */
body {
    width: 11in;
    height: 8.5in;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5.5in 5.5in;
    grid-template-rows: 4.25in 4.25in;
    gap: 0;
}

/* Individual panels */
.panel {
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5in;
    background: white;
    page-break-inside: avoid;
    position: relative;
    overflow: hidden;
}

@media print {
    .panel {
        border: none;
    }
}

/* ========================================
   FRONT PANEL - Christmas Theme
   ======================================== */

.front {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 50%, #660000 100%);
    color: white;
    position: relative;
}

.front-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.ornament {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.front h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
    font-style: italic;
}

.front .year {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.tree {
    font-size: 3.5rem;
    margin-top: 0.3in;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========================================
   BACK PANEL - QR Code
   ======================================== */

.back {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    position: relative;
}

.qr-container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.qr-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 0.6rem;
    font-family: Georgia, serif;
}

.qr-code {
    width: 2.5in;
    height: 2.5in;
    border: 10px solid white;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    border-radius: 15px;
    background: white;
}

.qr-caption {
    margin-top: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f7e3e;
}

.holly {
    position: absolute;
    bottom: 0.4in;
    font-size: 2rem;
    z-index: 2;
}

/* ========================================
   INSIDE PANELS - Parameter Layouts
   ======================================== */

.inside-left,
.inside-right {
    background: linear-gradient(to bottom, #ffffff 0%, #fffef8 100%);
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.3in 0.25in;
}

.inside-header {
    text-align: center;
    margin-bottom: 0.2in;
}

.name-ornament {
    font-size: 2.5rem;
    margin-bottom: 0.1in;
}

.inside-left h2,
.inside-right h2 {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 0.12in;
    font-style: italic;
}

.name-underline {
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #c41e3a, #ffd700, #0f7e3e);
    margin: 0 auto;
    border-radius: 3px;
}

/* Parameters layout - MUCH BIGGER FONTS */
.parameters {
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.6;
}

.param-section {
    margin-bottom: 0.13in;
    padding: 0.08in;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.param-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #c41e3a;
    letter-spacing: 0.03em;
    margin-bottom: 0.06in;
}

.param-values {
    font-weight: 400;
    font-size: 0.85rem;
    color: #2c2c2c;
    line-height: 1.7;
    word-wrap: break-word;
}

.inside-footer {
    text-align: center;
    margin-top: 0.15in;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f7e3e;
}

/* ========================================
   PRINT INSTRUCTIONS
   ======================================== */

.print-instructions {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff8dc 0%, #ffe4b5 100%);
    border: 4px solid #c41e3a;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25);
}

@media print {
    .print-instructions {
        display: none;
    }
}

.print-instructions h3 {
    font-family: Georgia, serif;
    color: #c41e3a;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.print-instructions ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.print-instructions li {
    margin-bottom: 0.6rem;
    color: #2c2c2c;
    line-height: 1.7;
}

.print-instructions p {
    color: #2c2c2c;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.print-instructions strong {
    color: #c41e3a;
}

.print-instructions .tip {
    background: rgba(15, 126, 62, 0.15);
    padding: 1rem;
    border-radius: 10px;
    border-left: 5px solid #0f7e3e;
    margin-top: 1rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media screen and (max-width: 11in) {
    body {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .panel {
        width: 100%;
        min-height: 500px;
        margin-bottom: 1rem;
    }
    
    .front h1 {
        font-size: 3.5rem;
    }
    
    .inside-left h2,
    .inside-right h2 {
        font-size: 2rem;
    }
    
    .param-label {
        font-size: 0.85rem;
    }
    
    .param-values {
        font-size: 0.8rem;
    }
}
