/* 
 * Black Caspian Chicago - Print Styles
 * Optimized for printing menus, reservations, etc.
 */

/* ===== Print Reset ===== */
* {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.4;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== Hide Non-Essential Elements ===== */
.main-header,
.main-footer,
.social-links,
.cta-button,
.menu-categories,
.reservation-form .no-print,
.gallery,
.video-container,
.audio-container,
.ads,
.comments,
.share-buttons,
.back-to-top {
    display: none !important;
}

/* ===== Layout Adjustments ===== */
.container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.section {
    padding: 0.5in 0 !important;
    margin: 0 !important;
    page-break-inside: avoid;
}

/* ===== Typography for Print ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Helvetica, Arial, sans-serif;
    page-break-after: avoid;
}

h1 {
    font-size: 24pt;
    margin: 0.5in 0 0.25in !important;
}

h2 {
    font-size: 18pt;
    border-bottom: 2pt solid #000;
    padding-bottom: 0.1in;
    margin: 0.4in 0 0.2in !important;
}

h3 {
    font-size: 14pt;
    margin: 0.3in 0 0.15in !important;
}

p {
    margin: 0.15in 0 !important;
    orphans: 3;
    widows: 3;
}

/* ===== Links ===== */
a {
    text-decoration: underline !important;
}

a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    font-style: italic;
}

a[href^="#"]:after,
a[href^="/"]:after,
a[href^="mailto:"]:after {
    content: "";
}

/* ===== Images ===== */
img {
    max-width: 100% !important;
    page-break-inside: avoid;
}

.logo img {
    max-height: 1in !important;
    width: auto !important;
}

.about-image,
.gallery-item {
    page-break-inside: avoid;
    margin: 0.25in 0 !important;
}

/* ===== Menu Print Styles ===== */
.menu-section {
    page-break-inside: avoid;
    margin: 0.25in 0 !important;
}

.menu-item {
    border: 1pt solid #ccc !important;
    margin: 0.1in 0 !important;
    padding: 0.1in !important;
    page-break-inside: avoid;
}

.menu-item-header {
    border-bottom: 1pt dotted #ccc;
    padding-bottom: 0.05in;
    margin-bottom: 0.05in !important;
}

.menu-item-title {
    font-weight: bold;
    font-size: 12pt;
}

.menu-item-price {
    font-weight: bold;
    float: right;
}

.menu-item-description {
    font-size: 10pt;
    color: #666 !important;
}

/* ===== Contact Information ===== */
.contact-info {
    border: 2pt solid #000 !important;
    padding: 0.25in !important;
    margin: 0.25in 0 !important;
    page-break-inside: avoid;
}

.contact-item {
    margin: 0.1in 0 !important;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.25in 0 !important;
    page-break-inside: avoid;
}

th,
td {
    border: 1pt solid #000;
    padding: 0.1in;
    text-align: left;
}

th {
    background-color: #f0f0f0 !important;
    font-weight: bold;
}

/* ===== Lists ===== */
ul,
ol {
    margin: 0.15in 0 0.15in 0.5in !important;
}

li {
    margin: 0.05in 0 !important;
}

/* ===== Page Breaks ===== */
.page-break {
    page-break-before: always;
}

.no-break {
    page-break-inside: avoid;
}

/* ===== Header/Footer for Printed Pages ===== */
@page {
    margin: 0.75in;
    size: letter;

    @top-left {
        content: "Black Caspian Chicago";
        font-size: 10pt;
        font-style: italic;
    }

    @top-right {
        content: "Menu & Information";
        font-size: 10pt;
    }

    @bottom-center {
        content: counter(page);
        font-size: 10pt;
    }

    @bottom-left {
        content: "www.blackcaspianchicago.com";
        font-size: 9pt;
        color: #666;
    }

    @bottom-right {
        content: "Printed: " string(date);
        font-size: 9pt;
        color: #666;
    }
}

/* ===== First Page Special Styling ===== */
@page :first {
    @top-left {
        content: "";
    }

    @top-right {
        content: "";
    }

    margin-top: 1.5in;
}

/* ===== QR Code for Digital Version ===== */
.print-qr {
    text-align: center;
    margin: 0.5in 0 !important;
    padding: 0.25in !important;
    border: 1pt dashed #ccc !important;
}

.print-qr img {
    max-width: 1.5in !important;
    height: auto !important;
}

.print-qr p {
    font-size: 9pt;
    color: #666 !important;
    margin: 0.05in 0 !important;
}

/* ===== Color Printing ===== */
@media print and (color) {
    .text-primary {
        color: #8B0000 !important;
    }

    .text-secondary {
        color: #D4AF37 !important;
    }

    .logo-text span {
        color: #D4AF37 !important;
    }
}

/* ===== Avoid Breaking Inside Important Elements ===== */
blockquote,
pre,
code {
    page-break-inside: avoid;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    page-break-after: avoid;
}

/* ===== Utility Classes for Print ===== */
.print-only {
    display: block !important;
}

.screen-only {
    display: none !important;
}

.print-break {
    page-break-before: always;
}