/* FelonsFriendly Listings Plugin — Public Styles */

.ffl-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.ffl-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.ffl-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.ffl-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
.ffl-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.ffl-card-body { padding: 16px; }

.ffl-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ffl-badge.ff { background: #e6f9f0; color: #0a7a4b; }

.ffl-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
}
.ffl-card-title a { text-decoration: none; color: inherit; }
.ffl-card-title a:hover { color: #2563eb; }

.ffl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}
.ffl-card-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 8px;
    color: #ccc;
}

.ffl-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.ffl-btn:hover { background: #1d4ed8; color: #fff; }

/* Match Form */
.ffl-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}
.ffl-form-wrap h2 { margin-top: 0; }

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

.ffl-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.ffl-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.ffl-field input,
.ffl-field select,
.ffl-field textarea {
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.ffl-field input:focus,
.ffl-field select:focus,
.ffl-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.ffl-submit-btn {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.ffl-submit-btn:hover { background: #1d4ed8; }
.ffl-submit-btn:disabled { background: #93c5fd; cursor: not-allowed; }

#ffl-form-message { padding: 12px 16px; border-radius: 6px; font-size: 14px; }
#ffl-form-message.success { background: #e6f9f0; color: #0a7a4b; border: 1px solid #6ee7b7; }
#ffl-form-message.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

.ffl-no-results { color: #777; font-style: italic; }

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