/* =========================
   CORE CARD STYLES
   ========================= */
.ps-card-wrapper {
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    color: #333; /* Force dark text inside cards */
}
.ps-card-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Badges */
.ps-badge {
    position: absolute;
    top: 15px;
    left: 0;
    padding: 6px 18px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-radius: 0 20px 20px 0;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.ps-badge.best-budget { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); }
.ps-badge.premium { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }
.ps-badge.popular { background: linear-gradient(135deg, #d35400 0%, #e67e22 100%); }

/* Grid Layout */
.ps-card-grid { display: flex; flex-wrap: wrap; }
.ps-col-img {
    width: 35%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-width: 250px;
}
.ps-col-img img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s;
}
.ps-card-wrapper:hover .ps-col-img img { transform: scale(1.05); }

.ps-col-content {
    width: 65%;
    padding: 25px 30px;
    box-sizing: border-box;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.ps-title a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.ps-title a:hover { color: #d32f2f; }

.ps-ai-desc { color: #555; margin-top: 15px; line-height: 1.6; font-size: 1rem; }
.ps-pros { margin-top: 15px; background: #f0fff4; padding: 12px; border-radius: 6px; font-size: 0.95em; color: #276749; border-left: 4px solid #2ecc71; }
.ps-cons { margin-top: 10px; background: #fff5f5; padding: 12px; border-radius: 6px; font-size: 0.95em; color: #c0392b; border-left: 4px solid #e74c3c; }

/* Footer & Price */
.ps-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.ps-price-tag {
    font-size: 1.6em;
    font-weight: 800;
    color: #2c3e50;
}
.ps-price-tag::after { content: ' Lei'; font-size: 0.6em; font-weight: normal; color: #7f8c8d; }

.ps-btn {
    background: linear-gradient(135deg, #d32f2f 0%, #c0392b 100%);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ps-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4); }

/* =========================
   TABLE & FAQ
   ========================= */
.ps-comparison-table-wrap { margin: 40px 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.ps-comparison-table-wrap h3 { background: #f8f9fa; margin: 0; padding: 15px; font-size: 1.2rem; border-bottom: 1px solid #eee; color: #333; }
.ps-table-scroll { overflow-x: auto; }
.ps-comparison-table-wrap table { width: 100%; border-collapse: collapse; min-width: 600px; }
.ps-comparison-table-wrap th, .ps-comparison-table-wrap td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.95rem; color: #333; }
.ps-comparison-table-wrap th { background: #fff; font-weight: 700; color: #555; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.ps-comparison-table-wrap tr:last-child td { border-bottom: none; }
.ps-comparison-table-wrap tr:hover { background: #fafafa; }

.ps-faq-section { margin: 40px 0; }
.ps-faq-item { border: 1px solid #e0e0e0; margin-bottom: 10px; border-radius: 6px; background: #fff; color: #333; }
.ps-faq-item summary { padding: 15px; cursor: pointer; font-weight: 600; list-style: none; position: relative; color: #333; }
.ps-faq-item summary::-webkit-details-marker { display: none; }
.ps-faq-item summary::after { content: '+'; position: absolute; right: 20px; font-weight: bold; font-size: 1.2em; }
.ps-faq-item[open] summary::after { content: '-'; }
.ps-faq-answer { padding: 0 15px 15px 15px; color: #666; line-height: 1.6; }

.ps-btn-sm {
    background: #d32f2f;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}
hr.ps-divider { border: 0; height: 1px; background: #ccc; margin: 40px 0; }

/* =========================
   FORCE LIGHT MODE FIX
   ========================= 
   Use this if your theme is stuck in dark mode and you want white cards/tables.
*/
.ps-card-wrapper, 
.ps-comparison-table-wrap, 
.ps-faq-item {
    background-color: #ffffff !important;
    color: #333333 !important;
}
.ps-col-img {
    background-color: #ffffff !important;
}