/* Review System Styles */

/* Meta Box Styles */
.techbuy-meta-box {
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
}

.techbuy-meta-box p {
    margin-bottom: 20px;
}

.techbuy-meta-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.techbuy-meta-box input[type="text"],
.techbuy-meta-box input[type="url"],
.techbuy-meta-box select,
.techbuy-meta-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--background-white);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.techbuy-meta-box input[type="text"]:focus,
.techbuy-meta-box input[type="url"]:focus,
.techbuy-meta-box select:focus,
.techbuy-meta-box textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color-alpha);
    outline: none;
}

/* Rating Display */
.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.review-rating .stars {
    display: flex;
    gap: 2px;
}

.review-rating .stars i {
    color: var(--star-color, #FFD700);
    font-size: 20px;
    transition: transform 0.2s ease;
}

.review-rating .stars i:hover {
    transform: scale(1.1);
}

.review-rating .rating-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

/* Pros and Cons */
.review-pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.review-pros-cons .pros,
.review-pros-cons .cons {
    padding: 20px;
    border-radius: 8px;
    background: var(--background-light);
}

.review-pros-cons h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-pros-cons .pros h3::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color, #28a745);
}

.review-pros-cons .cons h3::before {
    content: '\f057';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--danger-color, #dc3545);
}

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

.review-pros-cons li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.review-pros-cons .pros li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color, #28a745);
    position: absolute;
    left: 0;
}

.review-pros-cons .cons li::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--danger-color, #dc3545);
    position: absolute;
    left: 0;
}

/* Specifications Table */
.review-specs {
    margin: 30px 0;
}

.review-specs h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-primary);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--background-dark);
    color: var(--text-white);
    font-weight: 600;
    width: 30%;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: var(--background-hover);
}

/* Affiliate Button */
.affiliate-button-wrap {
    margin: 30px 0;
    text-align: center;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.affiliate-link:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.affiliate-link i {
    font-size: 18px;
}

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

.review-rating,
.review-pros-cons,
.review-specs,
.affiliate-button-wrap {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-pros-cons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .specs-table th {
        width: 40%;
    }
    
    .affiliate-link {
        width: 100%;
        justify-content: center;
    }
} 