/* Feed Aggregator – Frontend Styles */

.fa-feed-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 0;
}

.fa-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.fa-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }

/* Header */
.fa-item-header {
    padding: 18px 22px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.fa-item-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.4;
}
.fa-item-title a {
    text-decoration: none;
    color: #1a1a2e;
}
.fa-item-title a:hover { color: #0073aa; }

.fa-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #6b7280;
}
.fa-item-meta a { color: inherit; text-decoration: none; }
.fa-item-meta a:hover { color: #0073aa; }

.fa-item-cats {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fa-cat {
    background: #f0f4ff;
    color: #3b5bdb;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
}

/* Body */
.fa-item-body {
    padding: 18px 22px;
}

.fa-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}
.fa-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}
.fa-content a { color: #0073aa; }
.fa-content h1,.fa-content h2,.fa-content h3 { margin-top:1.2em; }
.fa-content pre { background:#f5f5f5; padding:12px; overflow-x:auto; border-radius:4px; font-size:.85em; }
.fa-content blockquote { border-left:4px solid #ddd; margin:0; padding:4px 16px; color:#555; }

.fa-excerpt {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 12px;
}
.fa-read-more {
    font-size: 0.88rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}
.fa-read-more:hover { text-decoration: underline; }

/* Footer */
.fa-item-footer {
    padding: 10px 22px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}
.fa-external-link {
    font-size: 0.82rem;
    color: #0073aa;
    text-decoration: none;
}
.fa-external-link:hover { text-decoration: underline; }

/* States */
.fa-error, .fa-empty {
    padding: 16px;
    border-radius: 6px;
    font-size: .9rem;
}
.fa-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.fa-empty { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

@media (max-width: 600px) {
    .fa-item-header, .fa-item-body, .fa-item-footer { padding-left: 14px; padding-right: 14px; }
    .fa-item-title { font-size: 1rem; }
}

/* ---- Manuel çekme toolbar ---- */
.fa-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.fa-fetch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.fa-fetch-btn:hover:not(:disabled) { background: #005a87; }
.fa-fetch-btn:active { transform: scale(.97); }
.fa-fetch-btn:disabled { opacity: .65; cursor: not-allowed; }

.fa-btn-icon { font-size: 1.1em; }

.fa-status {
    font-size: 0.85rem;
}
.fa-status-ok  { color: #2e7d32; }
.fa-status-err { color: #b71c1c; }

/* Loading spinner */
.fa-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    color: #6b7280;
    font-size: 0.93rem;
}

.fa-spinner {
    width: 22px; height: 22px;
    border: 3px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: fa-spin .7s linear infinite;
}

@keyframes fa-spin { to { transform: rotate(360deg); } }
