/* Human Boost Library Styles */

/* ============ Library Page ============ */

.boosts-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-bottom: 2rem;
}

.boosts-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.boosts-hero h1 i {
    color: #017C92;
    margin-right: 0.5rem;
}

.boosts-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-group {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
}

.section-header.designer { border-color: #AD1457; }
.section-header.builder { border-color: #2E7D32; }
.section-header.advocate { border-color: #1565C0; }

.section-header i {
    font-size: 1.75rem;
}

.section-header.designer i { color: #AD1457; }
.section-header.builder i { color: #2E7D32; }
.section-header.advocate i { color: #1565C0; }

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

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

.boost-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 2px dashed transparent;
}

.boost-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.boost-card-header {
    padding: 1.25rem 1.5rem;
    color: white;
    position: relative;
}

/* QR Code Button */
.qr-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
    z-index: 2;
}

.qr-btn:hover {
    background: rgba(255,255,255,0.35);
}

.qr-btn i {
    font-size: 1rem;
}

.boost-card.designer .boost-card-header { background: #AD1457; }
.boost-card.builder .boost-card-header { background: #2E7D32; }
.boost-card.advocate .boost-card-header { background: #1565C0; }

.boost-card-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.boost-card-type i {
    margin-right: 0.25rem;
}

.boost-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.boost-card-header p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

.boost-card-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.boost-card-body .description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.boost-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.boost-card-meta span {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.boost-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.boost-card.designer .boost-card-link { color: #AD1457; }
.boost-card.builder .boost-card-link { color: #2E7D32; }
.boost-card.advocate .boost-card-link { color: #1565C0; }

.boost-card-link i {
    transition: transform 0.2s ease;
}

.boost-card:hover .boost-card-link i {
    transform: translateX(4px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #333;
}

.instructions-box {
    background: linear-gradient(135deg, rgba(1, 124, 146, 0.05) 0%, rgba(107, 83, 147, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid #017C92;
}

.instructions-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

.instructions-box p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ Boost Detail Page ============ */

.boost-detail-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 2rem 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.boost-detail-wrapper {
    width: 100%;
    max-width: 750px;
}

.boost-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.boost-back-link:hover {
    color: #333;
}

.boost-detail-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.boost-detail-card .card-header {
    color: white;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem 2rem;
}

.boost-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.badge-section {
    background: rgba(255,255,255,0.2);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.boost-detail-card .card-body {
    padding: 2rem;
}

/* Meta row */
.boost-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
}

.boost-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 150px;
}

.boost-meta-item > i {
    font-size: 1.25rem;
    color: #017C92;
    margin-top: 0.125rem;
}

.boost-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 0.125rem;
}

.boost-meta-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Steps */
.boost-steps-section {
    margin-bottom: 2rem;
}

.boost-steps-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boost-steps-section h4 i {
    color: #017C92;
}

.boost-steps {
    padding-left: 1.5rem;
    margin: 0;
}

.boost-steps li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    padding-left: 0.5rem;
}

.boost-steps li::marker {
    color: #017C92;
    font-weight: 700;
}

/* Info sections */
.boost-info-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
}

.boost-info-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boost-info-section p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.how-it-works-section {
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
}

.how-it-works-section h4 {
    color: #017C92;
}

.how-it-works-section h4 i {
    color: #017C92;
}

.why-human-section {
    background: #fdf2f8;
    border: 1px solid #fce7f3;
}

.why-human-section h4 {
    color: #AD1457;
}

.why-human-section h4 i {
    color: #AD1457;
}

/* Facilitator tip */
.boost-tip {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.boost-tip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #92400e;
    font-size: 0.95rem;
}

.boost-tip-header i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.boost-tip p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #78350f;
}

.boost-footer-text {
    color: #999;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    text-align: center;
}

.boost-footer-text a {
    color: #666;
}

/* ============ Footer ============ */

.footer {
    text-align: center;
}

.help-text {
    color: #666;
    font-size: 0.95rem;
}

.help-text a {
    color: #017C92;
    font-weight: 500;
}

.copyright {
    color: #999;
    font-size: 0.85rem;
}

.sal-link {
    color: #999;
}

/* ============ QR Modal ============ */

.qr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.qr-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.qr-modal-backdrop.active .qr-modal {
    transform: scale(1);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.qr-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

.qr-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #333;
}

.qr-code-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.qr-code-container canvas,
.qr-code-container img {
    border-radius: 8px;
}

#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-url-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.qr-url-box i {
    color: #999;
    flex-shrink: 0;
}

.qr-url-box span {
    font-size: 0.85rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.url-copy-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.url-copy-btn:hover {
    background: #e9ecef;
    color: #333;
}

.url-copy-btn.copied {
    color: #2e7d32;
}

.qr-actions {
    display: flex;
    gap: 0.75rem;
}

.qr-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-action-btn.copy,
.qr-action-btn.download {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #333;
}

.qr-action-btn.copy:hover,
.qr-action-btn.download:hover {
    background: #e9ecef;
}

.qr-action-btn.copied {
    background: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

/* ============ Responsive ============ */

@media (max-width: 768px) {
    .boosts-hero h1 {
        font-size: 1.75rem;
    }

    .boosts-grid {
        grid-template-columns: 1fr;
    }

    .boost-detail-card .card-body {
        padding: 1.5rem;
    }

    .boost-meta-row {
        flex-direction: column;
        gap: 1rem;
    }

    .boost-meta-item {
        min-width: auto;
    }
}
