/* Roundup & Pillar Article Styles */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-dark);
    min-width: 600px;
}

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

.comparison-table th {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.product-card {
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-image-placeholder {
    width: 100%; 
    height: 300px; 
    background: rgba(255,255,255,0.03); 
    border: 2px dashed var(--card-border); 
    border-radius: 8px; 
    margin: 1.5rem 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-muted); 
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-card li {
    margin-bottom: 0.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-review {
    display: inline-block; 
    padding: 0.8rem 1.5rem; 
    background: var(--primary); 
    color: white; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-review:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* Voting System Styles */
.btn-upvote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upvote:hover:not(:disabled) {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary);
}

.btn-upvote.voted {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    cursor: default;
}

.btn-upvote:disabled {
    opacity: 0.8;
}

.vote-count {
    font-size: 0.9rem;
    opacity: 0.9;
}
