/* Print Stylesheet for Horoscope Pages */

@media print {
    /* Hide non-essential elements */
    nav,
    header,
    footer,
    .navbar,
    .breadcrumb,
    button:not(.print-keep),
    .btn-primary,
    .btn-secondary,
    .social-share,
    .newsletter-signup,
    [x-data*="open"],
    .dropdown,
    .modal,
    .fixed,
    .sticky,
    aside,
    .sidebar,
    .advertisement,
    [class*="social"],
    [class*="share"],
    [class*="subscribe"],
    .print-hidden {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        margin: 2cm;
        size: A4;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }
    
    /* Typography */
    h1 {
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 12pt;
        page-break-after: avoid;
    }
    
    h2 {
        font-size: 18pt;
        font-weight: bold;
        margin-top: 12pt;
        margin-bottom: 8pt;
        page-break-after: avoid;
    }
    
    h3 {
        font-size: 14pt;
        font-weight: bold;
        margin-top: 8pt;
        margin-bottom: 6pt;
        page-break-after: avoid;
    }
    
    p {
        margin-bottom: 8pt;
        orphans: 3;
        widows: 3;
    }
    
    /* Links */
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #666;
    }
    
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Horoscope specific */
    .horoscope-card,
    .sign-details,
    .horoscope-content {
        page-break-inside: avoid;
        margin-bottom: 16pt;
        padding: 12pt;
        border: 1pt solid #ddd;
        border-radius: 4pt;
    }
    
    .zodiac-symbol,
    .sign-icon {
        width: 48pt;
        height: 48pt;
        margin: 0 auto 8pt;
    }
    
    /* Scores and Progress Bars */
    .progress-bar {
        border: 1pt solid #ddd;
        height: 8pt;
        position: relative;
        background: #f5f5f5;
    }
    
    .progress-bar-fill {
        background: #333 !important;
        height: 100%;
    }
    
    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 16pt;
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    th, td {
        padding: 8pt;
        border: 1pt solid #ddd;
        text-align: left;
    }
    
    th {
        font-weight: bold;
        background: #f5f5f5;
    }
    
    /* Lists */
    ul, ol {
        margin-bottom: 12pt;
        padding-left: 20pt;
    }
    
    li {
        margin-bottom: 4pt;
    }
    
    /* Badges and Tags */
    .badge,
    .tag,
    [class*="badge"],
    [class*="tag"] {
        border: 1pt solid #ddd;
        padding: 2pt 6pt;
        border-radius: 2pt;
        display: inline-block;
        margin-right: 4pt;
        font-size: 10pt;
    }
    
    /* Grids */
    .grid {
        display: block !important;
    }
    
    .grid > * {
        margin-bottom: 12pt;
        page-break-inside: avoid;
    }
    
    /* Shadows and gradients */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        background-image: none !important;
    }
    
    /* Header for print */
    .print-header {
        text-align: center;
        margin-bottom: 16pt;
        padding-bottom: 12pt;
        border-bottom: 2pt solid #333;
    }
    
    .print-header h1 {
        font-size: 28pt;
        margin-bottom: 4pt;
    }
    
    .print-header .date {
        font-size: 11pt;
        color: #666;
    }
    
    /* Footer for print */
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9pt;
        color: #666;
        padding-top: 8pt;
        border-top: 1pt solid #ddd;
    }
    
    /* Page breaks */
    .page-break {
        page-break-after: always;
    }
    
    .page-break-before {
        page-break-before: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
    
    /* Dark mode overrides for print */
    .dark {
        background: #fff !important;
        color: #000 !important;
    }
    
    .dark * {
        background: transparent !important;
        color: #000 !important;
        border-color: #ddd !important;
    }
}
