/*
 * Recanto de Férias — style.css
 * Complemento ao Tailwind CDN.
 * Contém apenas estilos que o Tailwind padrão não cobre.
 */

/* ---- Prose (blog body) ---- */
.prose h2        { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; font-family: 'Playfair Display', Georgia, serif; }
.prose h3        { font-size: 1.2rem; font-weight: 600; margin: 1.75rem 0 .6rem; }
.prose p         { margin-bottom: 1.25rem; line-height: 1.8; }
.prose ul,
.prose ol        { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li        { margin-bottom: .35rem; }
.prose img       { border-radius: 12px; margin: 1.5rem 0; width: 100%; }
.prose blockquote{ border-left: 4px solid #2d6a4f; padding-left: 1rem; color: #6b7280; font-style: italic; margin: 1.5rem 0; }
.prose a         { color: #2d6a4f; text-decoration: underline; }

/* ---- line-clamp (fallback para navegadores antigos) ---- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Admin panel ---- */
.admin-body      { display: flex; min-height: 100vh; background: #f3f4f6; font-family: 'Inter', system-ui, sans-serif; margin: 0; }
.admin-sidebar   { width: 240px; background: #1b4332; color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; }
.sidebar-brand   { padding: 1.5rem; font-size: 1rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav     { flex: 1; display: flex; flex-direction: column; padding: 1rem 0; }
.sidebar-link    { display: block; padding: .75rem 1.5rem; color: rgba(255,255,255,.75); font-size: .9rem; transition: background .15s, color .15s; text-decoration: none; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link--danger { color: #fca5a5; }
.sidebar-link--danger:hover { background: rgba(220,38,38,.2); color: #fff; }
.sidebar-user    { padding: 1rem 1.5rem; font-size: .8rem; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.1); word-break: break-all; }
.admin-main      { margin-left: 240px; flex: 1; padding: 2rem; max-width: calc(100vw - 240px); overflow-x: auto; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-page-header h1 { font-size: 1.6rem; font-weight: 700; }
.admin-filters   { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-table-wrap{ background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow-x: auto; }
.admin-table     { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th  { background: #f9fafb; padding: .75rem 1rem; text-align: left; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.admin-table td  { padding: .85rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9fafb; }
.status-select   { border: 1.5px solid; border-radius: 6px; padding: .25rem .5rem; font-size: .85rem; cursor: pointer; background: #fff; }
.status-badge        { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.status-badge--green { background: #d1fae5; color: #065f46; }
.status-badge--gray  { background: #f3f4f6; color: #6b7280; }
.admin-form      { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; }
.admin-form-wrap { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 2rem; max-width: 720px; }
.form-tabs       { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-tab-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #374151; }
.form-row        { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.form-textarea   { min-height: 260px; }
.pagination      { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-link       { border: 1px solid #e5e7eb; border-radius: 8px; padding: .4rem .8rem; font-size: .9rem; color: #1a1a1a; text-decoration: none; }
.page-link.active{ background: #2d6a4f; color: #fff; border-color: #2d6a4f; }
.page-link:hover { border-color: #2d6a4f; color: #2d6a4f; }
.alert           { border-radius: 8px; padding: .85rem 1.25rem; font-size: .95rem; margin-bottom: 1rem; }
.alert-success   { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error     { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- Responsive admin ---- */
@media (max-width: 768px) {
    .admin-sidebar   { display: none; }
    .admin-main      { margin-left: 0; max-width: 100vw; padding: 1rem; }
    .form-tabs       { grid-template-columns: 1fr; }
}
