/* Review Pros Cons Widget Styles */
/* Optimized for speed and Google Core Web Vitals */

/* Critical CSS for above-the-fold content */
.rpc-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    contain: layout style paint;
}

.rpc-container * {
    box-sizing: border-box;
}

/* Header Styles */
.rpc-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    will-change: transform;
}

.rpc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    will-change: left;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rpc-header-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.rpc-highlight-orange {
    color: #ff8c00;
    font-weight: 600;
}

.highlight-orange {
    color: #ff8c00;
    font-weight: 600;
}

.highlight-pink {
    color: #e91e63;
    font-weight: 600;
}

.highlight-purple {
    color: #9c27b0;
    font-weight: 600;
}

/* Rainbow Divider */
.rpc-rainbow-divider {
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #ff8c94);
    margin: 20px 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.rpc-rainbow-divider::after {
    display: none;
}

/* Content Section */
.rpc-content-section {
    padding: 30px 0;
}

.rpc-review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    padding: 25px 15px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: #f8f9fa;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: justify;
    overflow: hidden;
}



.rpc-paragraph {
    margin-bottom: 20px;
    position: relative;
}

.rpc-paragraph:last-child {
    margin-bottom: 0;
}

/* Diamond Separator */
.rpc-diamond-separator {
    text-align: center;
    margin: 12px 0;
}

.rpc-diamond {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffd700, #ffb347, #ffa500);
    transform: rotate(45deg);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.rpc-diamond::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.3));
    border-radius: 2px;
    opacity: 0.6;
}



/* Pros and Cons Container */
.rpc-pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 0;
}

.rpc-pros-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    padding: 25px;
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.rpc-cons-section {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 15px;
    padding: 25px;
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.rpc-pros-section::before, 
.rpc-cons-section::before {
    display: none;
}



.rpc-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rpc-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.rpc-pros-list, 
.rpc-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rpc-pros-item, 
.rpc-cons-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    will-change: transform, background;
}

.rpc-pros-item:hover, 
.rpc-cons-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rpc-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.rpc-item-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    flex: 1;
}

/* Animation Classes */
.rpc-animated .rpc-header::before {
    animation-play-state: running;
}

.rpc-container:not(.rpc-animated) .rpc-header::before {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rpc-header {
        padding: 25px 20px;
    }

    .rpc-header-title {
        font-size: 2rem;
    }

    .rpc-content-section {
        padding: 20px 0;
    }

    .rpc-pros-cons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rpc-pros-section, 
    .rpc-cons-section {
        padding: 20px;
    }

    .rpc-section-title {
        font-size: 1.5rem;
    }

    .rpc-review-text {
        font-size: 1rem;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .rpc-header-title {
        font-size: 1.8rem;
    }

    .rpc-section-title {
        font-size: 1.3rem;
    }

    .rpc-pros-item, 
    .rpc-cons-item {
        padding: 12px;
    }

    .rpc-item-text {
        font-size: 0.9rem;
    }

    .rpc-review-text {
        padding: 15px 10px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .rpc-container * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU Acceleration for smooth animations */
.rpc-header::before,
.rpc-pros-item,
.rpc-cons-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Loading states */
.rpc-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.rpc-container.loaded {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
} 