/**
 * Print Stylesheet
 * Optimized styling for printed pages
 *
 * @package Sports_Legacy
 */

@media print {
    /* ========================================
       GENERAL RESET
       ======================================== */
    
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 20px;
    }
    
    /* ========================================
       HIDE ELEMENTS
       ======================================== */
    
    /* Navigation & Interactive Elements */
    .site-header,
    .main-nav,
    .mobile-nav-toggle,
    .sub-menu,
    .skip-to-content,
    .back-to-top,
    .edit-section-btn,
    .search-form,
    .search-again-form,
    .error-search-form {
        display: none !important;
    }
    
    /* Footer Elements */
    .site-footer,
    .footer-main,
    .footer-bottom {
        display: none !important;
    }
    
    /* Sidebars & Widgets */
    .sidebar,
    .widget-area,
    aside {
        display: none !important;
    }
    
    /* Comments & Forms */
    .comments-area,
    .comment-respond,
    .contact-form,
    form {
        display: none !important;
    }
    
    /* Buttons & CTAs */
    .btn,
    .button,
    .cta-section,
    .about-cta-section,
    .newsletter-section {
        display: none !important;
    }
    
    /* Carousels & Sliders */
    .hero-slider,
    .testimonials-carousel,
    .testimonial-nav,
    .carousel-nav {
        display: none !important;
    }
    
    /* Social & Sharing */
    .social-links,
    .share-buttons,
    .social-sharing {
        display: none !important;
    }
    
    /* Animations */
    .animate-on-scroll,
    [class*="animate-"] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* ========================================
       PAGE STRUCTURE
       ======================================== */
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    main,
    .site-main,
    article {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* ========================================
       TYPOGRAPHY
       ======================================== */
    
    h1 {
        font-size: 24pt;
        margin-bottom: 12pt;
    }
    
    h2 {
        font-size: 18pt;
        margin-bottom: 10pt;
        margin-top: 20pt;
    }
    
    h3 {
        font-size: 14pt;
        margin-bottom: 8pt;
    }
    
    h4, h5, h6 {
        font-size: 12pt;
        margin-bottom: 6pt;
    }
    
    p {
        margin-bottom: 10pt;
        orphans: 3;
        widows: 3;
    }
    
    /* ========================================
       LINKS
       ======================================== */
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-weight: normal;
    }
    
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    
    /* ========================================
       IMAGES
       ======================================== */
    
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    figure {
        margin: 10pt 0;
        page-break-inside: avoid;
    }
    
    figcaption {
        font-size: 9pt;
        font-style: italic;
        text-align: center;
    }
    
    /* ========================================
       TABLES
       ======================================== */
    
    table {
        border-collapse: collapse;
        width: 100%;
        margin: 15pt 0;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 6pt;
        text-align: left;
    }
    
    th {
        font-weight: bold;
        background: #eee !important;
    }
    
    /* ========================================
       LISTS
       ======================================== */
    
    ul, ol {
        margin: 10pt 0;
        padding-left: 20pt;
    }
    
    li {
        margin-bottom: 5pt;
    }
    
    /* ========================================
       BLOCKQUOTES
       ======================================== */
    
    blockquote {
        margin: 15pt 0;
        padding-left: 15pt;
        border-left: 3pt solid #000;
        font-style: italic;
    }
    
    /* ========================================
       CODE
       ======================================== */
    
    pre, code {
        font-family: "Courier New", Courier, monospace;
        font-size: 10pt;
    }
    
    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        border: 1px solid #ccc;
        padding: 10pt;
        margin: 10pt 0;
    }
    
    /* ========================================
       PAGE BREAKS
       ======================================== */
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    article,
    section {
        page-break-before: auto;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    /* ========================================
       ARTICLE & POST SPECIFIC
       ======================================== */
    
    .entry-header {
        margin-bottom: 20pt;
        border-bottom: 1pt solid #000;
        padding-bottom: 10pt;
    }
    
    .entry-title {
        font-size: 24pt;
        margin-bottom: 10pt;
    }
    
    .entry-meta {
        font-size: 10pt;
        color: #666 !important;
    }
    
    .entry-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    /* ========================================
       WOOCOMMERCE PRINT
       ======================================== */
    
    .woocommerce-page .woocommerce-breadcrumb {
        display: block !important;
        margin-bottom: 15pt;
    }
    
    .woocommerce-page .product_title {
        font-size: 20pt;
    }
    
    .woocommerce-page .price {
        font-size: 14pt;
        font-weight: bold;
    }
    
    .woocommerce-page .add_to_cart_button,
    .woocommerce-page .single_add_to_cart_button {
        display: none !important;
    }
    
    /* Order Details */
    .woocommerce-order-details {
        page-break-inside: avoid;
    }
    
    /* ========================================
       PRINT HEADER (Optional)
       ======================================== */
    
    @page {
        margin: 2cm;
    }
    
    @page :first {
        margin-top: 3cm;
    }
}
