/**
 * Trust Blocks CSS
 * Styling for credibility and trust elements
 * 
 * @package Mass Pages by Backlink Hut
 * @version 3.0
 */

/* ============================================
   TRUST BADGES
   ============================================ */

.apc-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.apc-trust-badges-vertical {
    flex-direction: column;
}

.apc-trust-badges-horizontal {
    flex-direction: row;
    justify-content: space-around;
}

.apc-trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
}

.trust-badge-icon {
    font-size: 28px;
    color: #2271b1;
    margin-bottom: 8px;
}

.trust-badge-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.trust-badge-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

/* ============================================
   CASE STUDIES
   ============================================ */

.apc-case-study {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.case-study-title {
    font-size: 20px;
    color: #1d2327;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

.case-study-content {
    display: grid;
    gap: 20px;
}

.case-study-section {
    padding: 15px;
    background: #f6f7f7;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.case-study-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-section p {
    margin: 0;
    color: #3c434a;
    line-height: 1.6;
}

/* ============================================
   STATISTICS
   ============================================ */

.apc-statistics {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.apc-statistics h4 {
    font-size: 18px;
    margin: 0 0 15px;
    color: #fff;
}

.statistics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.statistics-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.statistics-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: bold;
}

.statistics-disclaimer {
    margin: 15px 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.statistics-disclaimer small {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   NAP WIDGET
   ============================================ */

.apc-nap-widget {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.apc-nap-widget h4 {
    font-size: 18px;
    margin: 0 0 15px;
    color: #1d2327;
}

.apc-nap-widget > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.apc-nap-widget i {
    color: #2271b1;
    width: 20px;
    text-align: center;
    margin-top: 3px;
}

.apc-nap-widget a {
    color: #2271b1;
    text-decoration: none;
}

.apc-nap-widget a:hover {
    text-decoration: underline;
}

/* Card Style */
.apc-nap-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Compact Style */
.apc-nap-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
}

.apc-nap-compact h4 {
    width: 100%;
    margin-bottom: 10px;
}

.apc-nap-compact > div {
    margin-bottom: 0;
}

/* ============================================
   CITATIONS
   ============================================ */

.apc-citation {
    display: block;
    font-size: 13px;
    color: #646970;
    font-style: italic;
    padding: 10px 15px;
    background: #f6f7f7;
    border-left: 3px solid #dba617;
    margin: 15px 0;
}

/* ============================================
   AUTHOR BIO
   ============================================ */

.apc-author-bio {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 25px 0;
}

.apc-author-bio .author-photo {
    flex-shrink: 0;
}

.apc-author-bio .author-photo img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.apc-author-bio .author-info {
    flex: 1;
}

.apc-author-bio .author-name {
    font-size: 18px;
    margin: 0 0 5px;
    color: #1d2327;
}

.apc-author-bio .author-credentials {
    font-size: 14px;
    color: #2271b1;
    margin: 0 0 10px;
}

.apc-author-bio .author-expertise {
    font-size: 13px;
    color: #3c434a;
    margin: 0 0 10px;
}

.apc-author-bio .author-bio {
    font-size: 14px;
    color: #3c434a;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   EXPERT VERIFICATION
   ============================================ */

.apc-expert-verification {
    background: #edfaef;
    border: 1px solid #00a32a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.apc-expert-verification h4 {
    color: #00a32a;
    margin: 0 0 10px;
    font-size: 16px;
}

.apc-expert-verification h4 i {
    margin-right: 8px;
}

.apc-expert-verification .expert-info {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.apc-expert-verification .review-date {
    margin: 10px 0 0;
    color: #646970;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .apc-trust-badges-horizontal {
        flex-direction: column;
    }
    
    .trust-badge {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .trust-badge-icon {
        margin-bottom: 0;
    }
    
    .apc-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .apc-author-bio .author-photo {
        margin: 0 auto;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    .apc-trust-badges,
    .apc-case-study,
    .apc-nap-widget,
    .apc-author-bio,
    .apc-expert-verification .expert-info {
        background: #1d2327;
        border-color: #3c434a;
    }
    
    .trust-badge {
        background: #2c3338;
    }
    
    .trust-badge-value,
    .case-study-title,
    .apc-nap-widget h4,
    .apc-author-bio .author-name {
        color: #f0f0f1;
    }
    
    .case-study-section {
        background: #2c3338;
    }
    
    .case-study-section p,
    .trust-badge-label {
        color: #c3c4c7;
    }
}