/*
 * MNM QR Codes Page Styles
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.controls {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.controls label {
    font-weight: 600;
    font-size: 0.95rem;
}

.controls select {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
}

.btn-print {
    margin-left: auto;
    padding: 10px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-print:hover {
    opacity: 0.9;
}

.section-title {
    max-width: 1200px;
    margin: 32px auto 16px;
    padding: 0 20px;
    font-size: 1.3rem;
    color: #444;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    page-break-inside: avoid;
    break-inside: avoid;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card .logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: block;
}

.card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.card .card-channel {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .qr-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 14px;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
}

.card .url-text {
    font-size: 0.8rem;
    color: #667eea;
    word-break: break-all;
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
}

.card .scan-cta {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #666;
    font-style: italic;
}

/* Distribution Plan Section */
.plan-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.plan-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 24px;
    border-left: 4px solid #667eea;
}

.plan-card h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.plan-card .channel-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
}

.plan-card ul li {
    font-size: 0.9rem;
    color: #555;
    padding: 4px 0 4px 18px;
    position: relative;
}

.plan-card ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    header {
        background: none !important;
        color: #333;
        box-shadow: none;
        padding: 16px 0;
        border-bottom: 2px solid #333;
    }

    .controls, footer, .plan-section, .section-title.plan-heading, .no-print {
        display: none !important;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        padding: 20px 16px;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .card .qr-img {
        width: 150px;
        height: 150px;
    }

    .section-title {
        margin-top: 12px;
    }
}
