/* منارة اللاذقية - لوحة إدارة الأنشطة */

.admin-page {
    padding: 130px 0 70px;
    background: var(--off-white);
    min-height: 70vh;
}

.admin-head {
    text-align: center;
    margin-bottom: 40px;
}

.admin-head h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.admin-head p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 28px;
    max-width: 900px;
    margin-inline: auto;
}

.admin-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-card-head h2 {
    margin-bottom: 0;
}

.admin-hint {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.ad-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ad-field {
    margin-bottom: 18px;
}

.ad-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ad-input,
.ad-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--primary-soft);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-dark);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.ad-textarea {
    resize: vertical;
    min-height: 120px;
}

.ad-input:focus,
.ad-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 90, 139, 0.12);
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.ad-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.ad-btn-ghost {
    background: transparent;
    border: 2px solid var(--primary-soft);
    color: var(--primary-dark);
    padding: 9px 18px;
    font-size: 0.88rem;
}

.ad-btn-ghost:hover {
    background: var(--primary-soft);
    transform: none;
}

.ad-btn-danger {
    background: #C0392B;
}

.ad-btn-danger:hover {
    background: #96271B;
}

.ad-status {
    margin-top: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.ad-status:empty {
    display: none;
}

.ad-status.is-error {
    color: #C0392B;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius);
    background: var(--off-white);
}

.post-item img {
    width: 78px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.post-item-info {
    flex: 1;
    min-width: 220px;
}

.post-item-info strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.post-item-info span {
    font-size: 0.83rem;
    color: var(--text-muted);
}

/* بطاقات الإحصائيات */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.stat-tile {
    background: var(--off-white);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* نافذة التقييمات */
.ad-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(45, 45, 45, 0.55);
    backdrop-filter: blur(3px);
}

.ad-modal[hidden] {
    display: none;
}

.ad-modal-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.ad-modal-body {
    padding: 28px;
}

.ad-modal-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.ad-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ad-close:hover {
    background: var(--primary);
    color: var(--white);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: var(--off-white);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.review-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.review-stars {
    color: #E0A800;
    letter-spacing: 1px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-comment {
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.8;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .ad-row {
        grid-template-columns: 1fr;
    }

    .admin-card {
        padding: 20px;
    }
}
