/**
 * PDF Tools Hub - Trust Features Styles
 * 
 * Styles for:
 * - 100% Offline badges
 * - Privacy banner
 * - Why Us section
 * - Social proof testimonials
 * - File size indicators
 * - Preview modal
 * 
 * @package PDF_Tools_Hub
 * @version 1.0.0
 */

/* ===== OFFLINE BADGE ON TOOL CARDS ===== */
.offline-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    z-index: 2;
    cursor: help;
    transition: var(--transition);
}

.offline-badge:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    transform: scale(1.05);
}

.offline-badge i {
    font-size: 0.65rem;
}

/* Make tool cards relative for badge positioning */
.tool-card {
    position: relative;
}

/* ===== PRIVACY BANNER ===== */
.privacy-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem 0;
}

.privacy-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.privacy-banner-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.25rem;
}

.privacy-banner-text {
    flex: 1;
    min-width: 200px;
}

.privacy-banner-text strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.privacy-banner-text span {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.privacy-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2rem;
    color: #10b981;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.privacy-learn-more:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateX(3px);
}

/* ===== WHY US SECTION ===== */
.why-us-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
}

.why-us-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.why-us-section .section-subtitle {
    text-align: center;
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.why-us-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.why-us-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.why-us-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.why-us-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.why-us-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.why-us-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.why-us-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.why-us-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.why-us-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: #10b981;
}

.why-us-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.why-us-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.why-us-btn:not(.secondary) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.why-us-btn:not(.secondary):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.why-us-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-light);
}

.why-us-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== MINI TESTIMONIALS ===== */
.mini-testimonials {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    padding: 2rem 0;
    margin: 2rem 0;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-item {
    text-align: center;
    max-width: 350px;
}

.testimonial-item p {
    font-style: italic;
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.testimonial-item p::before {
    content: '"';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-item span {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== FILE SIZE DISPLAY ===== */
.file-size-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.file-size-display i {
    color: var(--primary);
}

.file-size-display .size-warning {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f59e0b;
    font-size: 0.85rem;
}

/* ===== PREVIEW MODAL ===== */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10007;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.preview-modal-content {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--white);
}

.preview-header h3 i {
    color: var(--primary);
}

.preview-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.preview-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.preview-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-filename {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.preview-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.preview-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .privacy-banner-content {
        text-align: center;
    }

    .privacy-banner-text {
        text-align: center;
    }

    .why-us-section .section-title {
        font-size: 1.5rem;
    }

    .testimonial-slider {
        flex-direction: column;
        align-items: center;
    }

    .preview-modal {
        padding: 1rem;
    }

    .preview-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .offline-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .offline-badge span {
        display: none;
    }

    .offline-badge i {
        font-size: 0.8rem;
    }
}

/* ===== LIGHT MODE ===== */
body.light-mode .privacy-banner,
[data-theme="light"] .privacy-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
}

body.light-mode .why-us-card,
[data-theme="light"] .why-us-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .why-us-card h3,
body.light-mode .privacy-banner-text strong,
[data-theme="light"] .why-us-card h3,
[data-theme="light"] .privacy-banner-text strong {
    color: #0f172a;
}

body.light-mode .mini-testimonials,
[data-theme="light"] .mini-testimonials {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
}