/* ============================================
   BLOG PAGES - MOBILE-FIRST RESPONSIVE CSS
   ============================================ */

/* Override prism-menume.css dark background */
body {
    background: #ffffff !important;
}

body::before,
body::after {
    display: none !important;
}

/* ============================================
   Blog Container
   ============================================ */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 20px 60px;
    width: 100%;
}

.blog-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    word-wrap: break-word;
}

.blog-meta {
    color: #666;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 30px;
}

/* ============================================
   Blog Content
   ============================================ */

.blog-content {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #667eea;
    word-wrap: break-word;
}

.blog-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #764ba2;
    word-wrap: break-word;
}

.blog-content h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 25px;
    margin-left: 25px;
    padding-left: 15px;
}

.blog-content li {
    margin-bottom: 12px;
}

.blog-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.blog-content a {
    color: #667eea;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #764ba2;
}

/* ============================================
   Highlight Box
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.highlight-box h3 {
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: clamp(1.2rem, 3vw, 1.4rem) !important;
}

.highlight-box p {
    margin-bottom: 15px;
}

.highlight-box p:last-child,
.highlight-box ul:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin-left: 20px;
}

.highlight-box li {
    margin-bottom: 10px;
}

/* ============================================
   Info Box
   ============================================ */

.info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.info-box strong {
    color: #667eea;
}

/* ============================================
   Comparison Grid
   ============================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.comparison-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.comparison-card h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
    margin-top: 0 !important;
    color: #1a1a1a;
}

.comparison-card ul {
    margin-bottom: 0;
    margin-left: 20px;
}

.comparison-card li {
    margin-bottom: 10px;
}

.pros {
    border-color: #4caf50;
}

.cons {
    border-color: #f44336;
}

/* ============================================
   Tables
   ============================================ */

.price-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.price-table th,
.comparison-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.price-table td,
.comparison-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.price-table tr:last-child td,
.comparison-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover,
.comparison-table tr:hover {
    background: #f8f9fa;
}

.winner {
    background: #e8f5e9;
    font-weight: 600;
}

.loser {
    background: #ffebee;
}

/* ============================================
   Cost Box
   ============================================ */

.cost-box {
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.cost-box h4 {
    color: #667eea;
    margin-bottom: 15px;
    margin-top: 0 !important;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.cost-box ul {
    margin-bottom: 0;
    margin-left: 20px;
}

.cost-box li {
    margin-bottom: 12px;
}

/* ============================================
   Blog Index Grid
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.blog-card-meta {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    color: #999;
    margin-bottom: 15px;
}

.blog-card-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* ============================================
   CTA Button
   ============================================ */

.blog-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 15px;
}

.blog-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Tablet Breakpoint (768px+)
   ============================================ */

@media (min-width: 768px) {
    .blog-container {
        padding: 120px 30px 80px;
    }

    .blog-header {
        margin-bottom: 50px;
    }

    .blog-content h2 {
        margin-top: 60px;
        margin-bottom: 25px;
    }

    .blog-content h3 {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .blog-content ul,
    .blog-content ol {
        margin-left: 40px;
    }

    .blog-content li {
        margin-bottom: 15px;
    }

    .highlight-box {
        padding: 40px;
        margin: 40px 0;
    }

    .info-box {
        padding: 25px;
        margin: 30px 0;
    }

    .comparison-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin: 40px 0;
    }

    .comparison-card {
        padding: 30px;
    }

    .cost-box {
        padding: 30px;
        margin: 30px 0;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
        margin: 50px auto;
        padding: 0 30px;
    }

    .blog-card-image {
        height: 200px;
        font-size: 4rem;
    }

    .blog-card-content {
        padding: 25px;
    }

    .blog-cta-button {
        padding: 18px 40px;
    }
}

/* ============================================
   Desktop Breakpoint (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .blog-content ul,
    .blog-content ol {
        margin-left: 45px;
    }

    .price-table th,
    .comparison-table th {
        padding: 20px 15px;
    }

    .price-table td,
    .comparison-table td {
        padding: 20px 15px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 35px;
    }
}

/* ============================================
   Mobile Fixes - Prevent Horizontal Scroll
   ============================================ */

/* ============================================
   ADVANCED MOBILE OPTIMIZATION - QR Menu Pricing
   ============================================ */

@media (max-width: 768px) {
    /* Container adjustments */
    .blog-container {
        padding: 90px 15px 50px;
    }
    
    .blog-content ul, 
    .blog-content ol {
        margin-left: 20px;
        padding-left: 10px;
    }
    
    /* ========================================
       RESPONSIVE CARD-BASED TABLES
       Tables transform into cards on mobile
       ======================================== */
    
    .price-table,
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -15px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .price-table thead,
    .comparison-table thead {
        display: none;
    }
    
    .price-table tbody,
    .comparison-table tbody {
        display: block;
    }
    
    .price-table tr,
    .comparison-table tr {
        display: block;
        margin-bottom: 20px;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .price-table td,
    .comparison-table td {
        display: block;
        text-align: right;
        padding: 10px 0;
        border: none;
        position: relative;
        padding-left: 50%;
        min-height: 25px;
    }
    
    /* Data label - appears as left-side label */
    .price-table td:before,
    .comparison-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        color: #667eea;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .price-table tfoot tr,
    .comparison-table tfoot tr {
        background: #f0f4ff;
        padding: 20px;
        border: 2px solid #667eea;
    }
    
    .price-table tfoot td,
    .comparison-table tfoot td {
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    /* ========================================
       BOXES - MOBILE OPTIMIZATION
       ======================================== */
    
    .highlight-box {
        margin: 25px -10px;
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .info-box {
        margin: 20px -10px;
        padding: 15px;
    }
    
    .cost-box {
        padding: 18px;
        margin: 20px -10px;
    }
    
    .cta-box {
        margin: 30px -10px;
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .btn-cta {
        display: block;
        width: calc(100% - 40px);
        max-width: 350px;
        margin: 15px auto 0;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    /* Responsive images */
    .blog-content img {
        max-width: 100%;
        height: auto;
    }
    
    /* Comparison cards on mobile */
    .comparison-card {
        padding: 18px;
    }
    
    /* Blog grid on mobile */
    .blog-grid {
        padding: 0 15px;
        gap: 20px;
        margin: 30px auto;
    }
    
    .blog-card-image {
        height: 160px;
        font-size: 3rem;
    }
    
    .blog-card-content {
        padding: 18px;
    }
    
    /* CTA button full width on mobile */
    .blog-cta-button {
        display: block;
        width: calc(100% - 40px);
        max-width: 400px;
        margin: 20px auto;
        padding: 15px 25px;
    }
}

/* ============================================
   SMALL MOBILE PHONES (320px - 480px)
   ============================================ */

@media (max-width: 480px) {
    .blog-container {
        padding: 80px 12px 40px;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
    
    .blog-content ul, 
    .blog-content ol {
        margin-left: 15px;
        padding-left: 5px;
    }
    
    /* Extra compact tables */
    .price-table,
    .comparison-table {
        margin: 15px -12px;
    }
    
    .price-table tr,
    .comparison-table tr {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .price-table td,
    .comparison-table td {
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .price-table td:before,
    .comparison-table td:before {
        font-size: 0.85rem;
    }
    
    /* Compact boxes */
    .highlight-box, 
    .info-box, 
    .cta-box,
    .cost-box {
        margin-left: -12px;
        margin-right: -12px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background: white !important;
    }

    .header,
    .footer,
    .blog-cta-button {
        display: none;
    }

    .blog-container {
        max-width: 100%;
        padding: 0;
    }

    .blog-content {
        color: #000;
    }

    .highlight-box {
        border: 2px solid #667eea;
        color: #000;
        background: #f0f4ff;
    }

    .highlight-box h3 {
        color: #667eea !important;
    }
}

