/* Kai's Box Reviews - Frontend Styles (Dark Glassy Theme) */

:root {
    --kb-primary: #6366f1;
    --kb-primary-hover: #4f46e5;
    --kb-bg-dark: rgba(15, 23, 42, 0.95);
    --kb-glass: rgba(30, 41, 59, 0.7);
    --kb-glass-light: rgba(51, 65, 85, 0.5);
    --kb-border: rgba(148, 163, 184, 0.2);
    --kb-text: #e2e8f0;
    --kb-text-muted: #94a3b8;
    --kb-success: #10b981;
    --kb-danger: #ef4444;
}

/* Product Hero Block */
.kaisbox-product-hero {
    background: var(--kb-glass);
    border: 1px solid var(--kb-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kaisbox-product-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 12px;
}

.kaisbox-product-info {
    flex: 1;
}

.kaisbox-product-info h2 {
    color: var(--kb-text);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.kaisbox-brand-name {
    color: var(--kb-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.kaisbox-overall-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.kaisbox-rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--kb-primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.kaisbox-rating-bar {
    flex: 1;
    height: 12px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.kaisbox-rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kb-primary), var(--kb-primary-hover));
    border-radius: 6px;
    transition: width 0.8s ease;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.kaisbox-cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--kb-primary), var(--kb-primary-hover));
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kaisbox-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* Rating Display Block */
.kaisbox-rating-display {
    background: var(--kb-glass);
    border: 1px solid var(--kb-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kaisbox-rating-display h3 {
    color: var(--kb-text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.kaisbox-ratings-list {
    display: grid;
    gap: 1.25rem;
}

.kaisbox-rating-item {
    display: grid;
    grid-template-columns: 180px 1fr 70px;
    align-items: center;
    gap: 1rem;
}

.kaisbox-rating-label {
    color: var(--kb-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.kaisbox-rating-item .kaisbox-rating-bar {
    height: 10px;
}

.kaisbox-rating-score {
    color: var(--kb-primary);
    font-weight: 700;
    text-align: right;
    font-size: 1.1rem;
}

/* Pros & Cons Block */
.kaisbox-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.kaisbox-pros,
.kaisbox-cons {
    background: var(--kb-glass);
    border: 1px solid var(--kb-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kaisbox-pros h3 {
    color: var(--kb-success);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.kaisbox-cons h3 {
    color: var(--kb-danger);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.kaisbox-pros ul,
.kaisbox-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kaisbox-pros ul li {
    padding: 0.75rem 0;
    color: var(--kb-text);
    position: relative;
    padding-left: 1.75rem;
    border-bottom: 1px solid var(--kb-border);
}

.kaisbox-pros ul li:last-child,
.kaisbox-cons ul li:last-child {
    border-bottom: none;
}

.kaisbox-pros ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--kb-success);
    font-weight: 700;
    font-size: 1.2rem;
}

.kaisbox-cons ul li {
    padding: 0.75rem 0;
    color: var(--kb-text);
    position: relative;
    padding-left: 1.75rem;
    border-bottom: 1px solid var(--kb-border);
}

.kaisbox-cons ul li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--kb-danger);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Pricing Table Block */
.kaisbox-pricing-table {
    background: var(--kb-glass);
    border: 1px solid var(--kb-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kaisbox-pricing-table h3 {
    color: var(--kb-text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.kaisbox-pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.kaisbox-pricing-plan {
    background: var(--kb-glass-light);
    border: 1px solid var(--kb-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.kaisbox-pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-color: var(--kb-primary);
}

.kaisbox-plan-name {
    color: var(--kb-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kaisbox-plan-price {
    color: var(--kb-text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.kaisbox-plan-billing {
    color: var(--kb-text-muted);
    font-size: 0.85rem;
}

/* Sticky Pricing Table */
.kaisbox-pricing-sticky {
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Comparison Table Block */
.kaisbox-comparison-table {
    background: var(--kb-glass);
    border: 1px solid var(--kb-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.kaisbox-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.kaisbox-comparison-table th,
.kaisbox-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--kb-border);
    color: var(--kb-text);
}

.kaisbox-comparison-table th {
    font-weight: 600;
    background: var(--kb-glass-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.kaisbox-comparison-table tr:hover {
    background: var(--kb-glass-light);
}

/* Affiliate Disclosure */
.kaisbox-affiliate-disclosure {
    background: var(--kb-glass);
    border: 1px solid var(--kb-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: var(--kb-text-muted);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kaisbox-product-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .kaisbox-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .kaisbox-rating-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .kaisbox-rating-label {
        margin-bottom: 0.25rem;
    }
    
    .kaisbox-rating-score {
        text-align: left;
    }
    
    .kaisbox-pricing-plans {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kaisbox-product-hero,
.kaisbox-rating-display,
.kaisbox-pros-cons > *,
.kaisbox-pricing-table {
    animation: fadeInUp 0.6s ease-out;
}
