/* Variáveis de Design Moderno */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent: #ec4899; /* Rosa moderno para o feed */
    --accent-hover: #db2777;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
}

.feed-body {
    position: relative;
    min-height: 100vh;
    background-color: transparent;
}

/* Vídeo de fundo */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Header do Feed */
.main-header {
    max-width: 600px;
    margin: 40px auto 20px auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.main-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.main-header h1 span {
    color: var(--accent);
}

.main-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Container do Feed */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-style: italic;
}

/* Cards de Post */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    animation: fadeIn 0.4s ease-out;
}

.post-card:hover {
    transform: translateY(-2px);
}

.post-content {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.like-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #9f1239;
    border: none;
    padding: 0;
    border-radius: 0;
    line-height: 0;
}

.like-btn:hover {
    color: #be123c;
}

.like-btn.liked {
    color: #e11d48;
}

.like-icon {
    width: 22px;
    height: 22px;
}

.like-icon path {
    fill: transparent;
}

.like-btn.liked .like-icon path {
    fill: currentColor;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Estilos do Painel de Moderação */
.admin-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.admin-container {
    width: 100%;
    max-width: 500px;
}

.admin-header {
    text-align: center;
    margin-bottom: 25px;
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.admin-header p {
    color: var(--text-secondary);
}

.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: var(--accent);
}

button {
    width: 100%;
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--accent);
}

/* Mensagens de feedback do painel */
.status-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-msg.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-msg.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hidden { display: none; }

/* Animação suave de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
