/* Preso.org Monetization Suite CSS */

:root {
    --preso-primary: #4F46E5;
    --preso-primary-hover: #4338CA;
    --preso-accent: #10B981;
    --preso-dark: #0F172A;
    --preso-gray-100: #F1F5F9;
    --preso-gray-200: #E2E8F0;
    --preso-gray-500: #64748B;
    --preso-gray-800: #1E293B;
    --preso-radius: 12px;
    --preso-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Template Grid */
.preso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.preso-card {
    background: #ffffff;
    border: 1px solid var(--preso-gray-200);
    border-radius: var(--preso-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--preso-shadow);
    display: flex;
    flex-direction: column;
}

.preso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

.preso-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0B0F19;
    overflow: hidden;
}

.preso-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.preso-card:hover .preso-card-thumb img {
    transform: scale(1.03);
}

.preso-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94A3B8;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1E293B, #0F172A);
}

.preso-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--preso-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.preso-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.preso-formats-tag {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.preso-tag {
    background: var(--preso-gray-100);
    color: var(--preso-gray-800);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.preso-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.preso-card-title a {
    color: var(--preso-dark);
    text-decoration: none;
}

.preso-card-title a:hover {
    color: var(--preso-primary);
}

.preso-card-meta {
    font-size: 0.85rem;
    color: var(--preso-gray-500);
    margin: 0 0 20px 0;
}

.preso-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--preso-gray-100);
}

.preso-price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--preso-dark);
}

.preso-card-actions {
    display: flex;
    gap: 8px;
}

.preso-btn-outline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--preso-gray-800);
    border: 1px solid var(--preso-gray-200);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.preso-btn-outline:hover {
    background: var(--preso-gray-100);
}

.preso-btn-primary {
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--preso-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.preso-btn-primary:hover {
    background: var(--preso-primary-hover);
    color: #ffffff;
}

/* SaaS Affiliate Recommendation Box */
.preso-affiliate-box {
    background: #ffffff;
    border: 2px solid var(--preso-gray-200);
    border-radius: var(--preso-radius);
    padding: 24px;
    margin: 32px 0;
    box-shadow: var(--preso-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.preso-aff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.preso-aff-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.preso-aff-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--preso-dark);
}

.preso-aff-rating {
    text-align: right;
}

.preso-stars {
    color: #F59E0B;
    font-size: 1rem;
    display: block;
}

.preso-aff-desc {
    color: var(--preso-gray-500);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.preso-aff-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--preso-gray-100);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .preso-aff-specs {
        grid-template-columns: 1fr;
    }
}

.preso-aff-specs h5 {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preso-pros h5 { color: #065F46; }
.preso-cons h5 { color: #991B1B; }

.preso-aff-specs ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--preso-gray-800);
}

.preso-aff-specs li {
    margin-bottom: 4px;
}

.preso-aff-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preso-aff-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--preso-dark);
}

.preso-btn-affiliate {
    background: #10B981;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.preso-btn-affiliate:hover {
    background: #059669;
    color: #ffffff;
}

/* Agency Lead Capture Form */
.preso-lead-container {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #ffffff;
    padding: 36px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.preso-lead-intro h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 8px;
}

.preso-lead-intro p {
    color: #94A3B8;
    font-size: 1rem;
    margin-bottom: 24px;
}

.preso-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .preso-form-row {
        grid-template-columns: 1fr;
    }
}

.preso-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.preso-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.preso-form-group input,
.preso-form-group select,
.preso-form-group textarea {
    background: #334155;
    border: 1px solid #475569;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.preso-form-group input:focus,
.preso-form-group select:focus,
.preso-form-group textarea:focus {
    outline: none;
    border-color: var(--preso-primary);
    background: #1E293B;
}

.preso-lead-submit {
    background: var(--preso-primary);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.preso-lead-submit:hover {
    background: var(--preso-primary-hover);
}

.preso-lead-feedback {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.preso-lead-feedback.success {
    background: #064E3B;
    color: #A7F3D0;
    display: block !important;
}

.preso-lead-feedback.error {
    background: #7F1D1D;
    color: #FECACA;
    display: block !important;
}

/* Disclosure */
.preso-disclosure {
    background: #F8FAFC;
    border-left: 4px solid var(--preso-primary);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--preso-gray-500);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}
