/**
 * Arabdown Aggregator — Frontend Styles
 * Caption تحت featured image للمقالات المُعاد كتابتها بـ AI.
 */

.aggregator-image-caption {
    display: block;
    font-size: 13px;
    color: #5c6356;
    text-align: center;
    margin: 8px auto 16px;
    padding: 8px 16px;
    background: #f8f9f6;
    border-radius: 6px;
    line-height: 1.5;
    max-width: 100%;
}

.aggregator-image-caption a {
    color: #6e9f44;
    text-decoration: none;
    font-weight: 500;
}

.aggregator-image-caption a:hover,
.aggregator-image-caption a:focus {
    text-decoration: underline;
    color: #3d6420;
}

/* RTL */
[dir="rtl"] .aggregator-image-caption,
.rtl .aggregator-image-caption {
    text-align: center;
}

/* ─── Phase 4: AI Disclosure (top of post) ─── */
.aggregator-disclosure {
    background: #f0f7e8;
    border: 1px solid #c8e0a8;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 24px;
    font-size: 14px;
    color: #2d4a1e;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}
.aggregator-disclosure-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.aggregator-disclosure a {
    color: #6e9f44;
    font-weight: 600;
    text-decoration: none;
}
.aggregator-disclosure a:hover {
    text-decoration: underline;
    color: #3d6420;
}

/* ─── Phase 4: References / Attribution (end of post) ─── */
.aggregator-divider {
    margin: 32px 0 16px;
    border: none;
    border-top: 1px solid #e4e8de;
}
.aggregator-references {
    background: #f8f9f6;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
    margin: 0 0 24px;
}
.aggregator-references h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #2d4a1e;
    font-weight: 700;
}
.aggregator-references ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aggregator-references li {
    padding: 4px 0;
    color: #5c6356;
    line-height: 1.6;
}
.aggregator-references a {
    color: #3d6420;
    text-decoration: none;
    font-weight: 500;
}
.aggregator-references a:hover {
    text-decoration: underline;
}
.aggregator-references small {
    color: #8a8f80;
}

/* ─── Phase 4: Cookie Notice ─── */
.aggregator-cookie-notice {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 9999;
    background: #fff;
    border-top: 2px solid #6e9f44;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding: 14px 20px;
    animation: agg-slide-up 0.3s ease-out;
}
.aggregator-cookie-notice-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.aggregator-cookie-notice-text {
    margin: 0;
    color: #5c6356;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.aggregator-cookie-notice-text a {
    color: #6e9f44;
    text-decoration: underline;
}
.aggregator-cookie-notice-button {
    background: #6e9f44;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.aggregator-cookie-notice-button:hover,
.aggregator-cookie-notice-button:focus {
    background: #3d6420;
}
@keyframes agg-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ─── Phase 4: DMCA Form (frontend) ─── */
.aggregator-dmca-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.aggregator-dmca-form p {
    margin: 12px 0;
}
.aggregator-dmca-form label {
    display: block;
    font-weight: 600;
    color: #2d4a1e;
    margin-bottom: 4px;
}
.aggregator-dmca-form .required {
    color: #b32d2e;
}
.aggregator-dmca-form input[type="text"],
.aggregator-dmca-form input[type="email"],
.aggregator-dmca-form input[type="url"],
.aggregator-dmca-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d0bc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.aggregator-dmca-form input:focus,
.aggregator-dmca-form textarea:focus {
    outline: none;
    border-color: #6e9f44;
    box-shadow: 0 0 0 3px rgba(110,159,68,0.15);
}
.aggregator-dmca-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}
.aggregator-dmca-submit {
    background: #6e9f44;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.aggregator-dmca-submit:hover {
    background: #3d6420;
}
.aggregator-dmca-note {
    color: #8a8f80;
    font-size: 13px;
    margin-top: 8px;
}
.aggregator-dmca-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}
.aggregator-dmca-notice--success {
    background: #d4f0c4;
    border: 1px solid #6e9f44;
    color: #2d4a1e;
}
.aggregator-dmca-notice--error {
    background: #f8d7da;
    border: 1px solid #b32d2e;
    color: #842029;
}
