/* Core Card Styles */
.phatfirm-story-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 1.5em;
    padding: 1.5em 1.5em 1em 1.5em;
    transition: box-shadow .18s;
    display: block;
}

.phatfirm-story-card:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
}

.phatfirm-story-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.23em;
    line-height: 1.24;
}

.phatfirm-story-card .meta {
    font-size: 90%;
    color: #858a92;
    margin-bottom: 0.6em;
}

.phatfirm-story-card .excerpt {
    font-size: 1em;
    color: #383838;
    margin-top: 0.7em;
}

/* Filter Form */
.phatfirm-filters-form {
    background: #f7f7fa;
    padding: 1em 1.2em;
    border-radius: 9px;
    box-shadow: 0 1px 7px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7em;
}

.phatfirm-filters-form select,
.phatfirm-filters-form input[type="text"],
.phatfirm-filters-form input[type="date"] {
    border: 1px solid #dedede;
    background: #fff;
    border-radius: 5px;
    padding: 0.42em 0.95em;
    font-size: 1em;
    outline: none;
    transition: border .14s;
    min-width: 125px;
}

.phatfirm-filters-form select:focus,
.phatfirm-filters-form input[type="text"]:focus,
.phatfirm-filters-form input[type="date"]:focus {
    border-color: #0a9acd;
}

.phatfirm-filters-form button[type="submit"] {
    background: #0a9acd;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1.25em;
    font-size: 1em;
    cursor: pointer;
    transition: background .14s;
    font-weight: 600;
}
.phatfirm-filters-form button[type="submit"]:hover {
    background: #0b709c;
}

/* Loading Spinner */
.phatfirm-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid #e3e3e3;
    border-radius: 50%;
    border-top-color: #0a9acd;
    animation: phatfirm-spin 0.85s linear infinite;
    margin: 32px auto;
}
@keyframes phatfirm-spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.phatfirm-empty-state {
    background: #f7faff;
    color: #41729f;
    border: 1.5px dashed #aad4ff;
    text-align: center;
    padding: 2.1em 1em 2em 1em;
    border-radius: 12px;
    font-size: 1.11em;
    margin-top: 1.5em;
}

/* Responsive */
@media (max-width: 900px) {
    .phatfirm-story-card { padding: 1.1em; }
    .phatfirm-filters-form { gap: 0.5em; }
}
@media (max-width: 600px) {
    .phatfirm-story-card {
        padding: 0.95em;
    }
    .phatfirm-filters-form {
        flex-direction: column;
        gap: 0.6em;
    }
}
