/* =============================================
   PREMIUM TRUST BADGES - HOME PAGE
   Golden Luxury Theme Matching Product Detail
   ============================================= */

.trust-badges-home-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%,
        rgba(139, 115, 85, 0.03) 50%,
        rgba(192, 192, 192, 0.05) 100%
    );
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

/* Animated Background Shimmer */
.trust-badges-home-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.08) 50%,
        transparent 70%
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Trust Badges Grid */
.trust-badges-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* Individual Trust Badge */
.trust-badge-home {
    position: relative;
    text-align: center;
    padding: 1rem 0.75rem;
    background: white;
    border-radius: 0.875rem;
    border: 2px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: default;
}

/* Golden Border on Hover */
.trust-badge-home::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.875rem;
    padding: 2px;
    background: linear-gradient(135deg, 
        #D4AF37 0%, 
        #8B7355 50%, 
        #C0C0C0 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trust-badge-home:hover::before {
    opacity: 1;
}

.trust-badge-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
    border-color: transparent;
}

/* Icon Container */
.trust-badge-home-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    background: linear-gradient(135deg, #D4AF37 0%, #8B7355 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
}

/* Icon Glow Effect */
.trust-badge-home-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #D4AF37 0%, #8B7355 100%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.trust-badge-home:hover .trust-badge-home-glow {
    opacity: 0.6;
}

.trust-badge-home:hover .trust-badge-home-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* SVG Icon Styling */
.trust-badge-home-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Badge Content */
.trust-badge-home-content {
    position: relative;
    z-index: 1;
}

.trust-badge-home-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.trust-badge-home-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Badge Variants (Optional - Different colors for each) */
.trust-badge-home.authentic .trust-badge-home-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.trust-badge-home.authentic:hover .trust-badge-home-icon {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.trust-badge-home.authentic:hover .trust-badge-home-glow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.trust-badge-home.free-shipping .trust-badge-home-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.trust-badge-home.free-shipping:hover .trust-badge-home-icon {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.trust-badge-home.free-shipping:hover .trust-badge-home-glow {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.trust-badge-home.easy-returns .trust-badge-home-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.trust-badge-home.easy-returns:hover .trust-badge-home-icon {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.trust-badge-home.easy-returns:hover .trust-badge-home-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.trust-badge-home.secure-payment .trust-badge-home-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.trust-badge-home.secure-payment:hover .trust-badge-home-icon {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.trust-badge-home.secure-payment:hover .trust-badge-home-glow {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

/* Alternative: All Golden Theme (Uncomment to use) */
/*
.trust-badge-home.authentic .trust-badge-home-icon,
.trust-badge-home.free-shipping .trust-badge-home-icon,
.trust-badge-home.easy-returns .trust-badge-home-icon,
.trust-badge-home.secure-payment .trust-badge-home-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #8B7355 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.trust-badge-home:hover .trust-badge-home-icon {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.trust-badge-home:hover .trust-badge-home-glow {
    background: linear-gradient(135deg, #D4AF37 0%, #8B7355 100%);
}
*/

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .trust-badges-home-section {
        padding: 1.75rem 0;
    }
    
    .trust-badges-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trust-badge-home {
        padding: 1rem 0.75rem;
    }
    
    .trust-badge-home-icon {
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .trust-badge-home-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .trust-badge-home-title {
        font-size: 0.875rem;
    }
    
    .trust-badge-home-desc {
        font-size: 0.75rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .trust-badges-home-section {
        padding: 1.5rem 0;
    }
    
    .trust-badges-home {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .trust-badge-home {
        padding: 0.875rem 0.75rem;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
    }
    
    .trust-badge-home-icon {
        width: 2rem;
        height: 2rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .trust-badge-home-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    .trust-badge-home-title {
        font-size: 0.8125rem;
        margin-bottom: 0.125rem;
    }
    
    .trust-badge-home-desc {
        font-size: 0.75rem;
    }
    
    /* Always show hover effects on mobile */
    .trust-badge-home:active {
        transform: translateY(-2px);
    }
}

/* Small Mobile - Compact */
@media (max-width: 480px) {
    .trust-badge-home {
        padding: 0.75rem 0.625rem;
    }
    
    .trust-badge-home-icon {
        width: 1.875rem;
        height: 1.875rem;
    }
    
    .trust-badge-home-icon svg {
        width: 0.9375rem;
        height: 0.9375rem;
    }
    
    .trust-badge-home-title {
        font-size: 0.75rem;
    }
    
    .trust-badge-home-desc {
        font-size: 0.6875rem;
    }
}

/* =============================================
   ANIMATIONS & EFFECTS
   ============================================= */

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.trust-badge-home:hover .trust-badge-home-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Fade In Animation on Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-badge-home {
    animation: fadeInUp 0.6s ease backwards;
}

.trust-badge-home:nth-child(1) {
    animation-delay: 0.1s;
}

.trust-badge-home:nth-child(2) {
    animation-delay: 0.2s;
}

.trust-badge-home:nth-child(3) {
    animation-delay: 0.3s;
}

.trust-badge-home:nth-child(4) {
    animation-delay: 0.4s;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    .trust-badge-home,
    .trust-badge-home-icon,
    .trust-badges-home-section::before {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.trust-badge-home:focus-within {
    outline: 2px solid #D4AF37;
    outline-offset: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .trust-badge-home {
        border-width: 3px;
    }
    
    .trust-badge-home-title {
        font-weight: 800;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .trust-badges-home-section {
        background: none;
        border: none;
        padding: 1rem 0;
    }
    
    .trust-badges-home {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .trust-badge-home {
        border: 1px solid #e5e7eb;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .trust-badge-home::before,
    .trust-badge-home-glow,
    .trust-badges-home-section::before {
        display: none;
    }
}

/* =============================================
   DARK MODE SUPPORT (Optional)
   ============================================= */

@media (prefers-color-scheme: dark) {
    .trust-badges-home-section {
        background: linear-gradient(135deg, 
            rgba(31, 41, 55, 1) 0%,
            rgba(17, 24, 39, 1) 100%
        );
    }
    
    .trust-badge-home {
        background: #1f2937;
        border-color: #374151;
    }
    
    .trust-badge-home-title {
        color: #f9fafb;
    }
    
    .trust-badge-home-desc {
        color: #9ca3af;
    }
}