/* ------------------------------------------------------------------------- *
 * 1. GLOBAL & VARS
 * ------------------------------------------------------------------------- */
:root {
    --pt-primary: #0096D6;
    --pt-accent: #2D3436;
    --pt-bg-light: #f7fafc;
    --pt-border: #e2e8f0;
    --pt-text: #4a5568;
}

/* ------------------------------------------------------------------------- *
 * 2. CARD DESIGN (Google-Grade)
 * ------------------------------------------------------------------------- */
.pickthis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pickthis-card {
    background: #fff;
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.pickthis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

/* Header/Image Area */
.pt-card-header {
    height: 160px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pt-card-header img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 8px; /* Rounded logos */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pt-logo-placeholder {
    width: 80px;
    height: 80px;
    background: #fff;
    color: var(--pt-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Body */
.pt-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pt-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.pt-cat-badge {
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pt-verified-icon {
    color: #38a169;
    font-size: 0.9rem;
}

.pickthis-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pickthis-card h3 a {
    text-decoration: none;
    color: var(--pt-accent);
}

.pt-card-footer {
    padding: 1rem 1.5rem;
    background: #fff;
    border-top: 1px solid #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.pt-price-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pt-primary);
    background: rgba(0, 150, 214, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.pt-arrow-link {
    font-size: 1.2rem;
    line-height: 1;
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s;
}
.pickthis-card:hover .pt-arrow-link { color: var(--pt-primary); }

/* ------------------------------------------------------------------------- *
 * 3. SINGLE TOOL VIEW (The Layout)
 * ------------------------------------------------------------------------- */
.pt-single-wrapper {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .pt-single-wrapper {
        grid-template-columns: 300px 1fr;
        align-items: start;
    }
    
    .pt-single-sidebar {
        position: sticky;
        top: 100px; /* Below header */
    }
}

/* Single Sidebar */
.pt-single-sidebar {
    background: #fff;
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.pt-single-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.pt-single-logo img, .pt-single-logo .pt-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: contain;
    background: #f7fafc;
}

.pt-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--pt-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background 0.2s;
}
.pt-btn-block:hover { background: #007bb0; color: #fff; }

.pt-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pt-border);
    font-size: 0.95rem;
}
.pt-stat-row:last-child { border-bottom: none; }
.pt-stat-label { color: #718096; }
.pt-stat-value { font-weight: 600; color: var(--pt-accent); }

/* Single Content */
.pt-single-header-text h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pt-verified-badge { color: #38a169; font-size: 1.5rem; }

.pt-tagline {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.pt-use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pt-chip {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}
.pt-chip:hover { background: #e2e8f0; color: #2d3748; }

.pt-description-box {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.pt-disclaimer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pt-border);
    color: #a0aec0;
}

/* Dark Mode Overrides (If theme supports it) */
[data-theme="dark"] .pickthis-card,
[data-theme="dark"] .pt-single-sidebar,
[data-theme="dark"] .pt-chip {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}
[data-theme="dark"] .pt-card-header,
[data-theme="dark"] .pt-single-logo img, 
[data-theme="dark"] .pt-logo-placeholder {
    background: #4a5568;
}
[data-theme="dark"] .pt-description-box { color: #e2e8f0; }
[data-theme="dark"] .pt-stat-label { color: #a0aec0; }
[data-theme="dark"] .pt-stat-value { color: #fff; }