/* CSS Unificado para Sistema Social - WebGata */
/* feed-social.css - Arquivo único para todas as páginas públicas */

/* ========================================
   1. RESET E BASE
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    background: #0d1117;
    color: #e6edf3;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* ========================================
   2. CONTAINERS E LAYOUT GLOBAL
   ======================================== */

.public-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ========================================
   3. HEADER PÚBLICO
   ======================================== */

.logo-link {
    color: #58a6ff !important;
    text-decoration: none !important;
}

.logo-link:hover {
    color: #79c0ff !important;
    text-decoration: none !important;
}

.header-public {
    text-align: center;
    padding: 2px 0 4px 0;
    border-bottom: 1px solid #30363d;
    margin-bottom: 10px;
}

.header-public h1 {
    color: #58a6ff;
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 600;
}

.header-public h1 a {
    color: #58a6ff;
    text-decoration: none;
}

.header-public h1 a:hover {
    text-decoration: underline;
}

.header-public p {
    color: #8b949e;
    margin: 0;
    font-size: 1.1em;
}

/* Estatísticas do Header */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.header-stats .stat-item {
    text-align: center;
    color: #8b949e;
    font-size: 0.9em;
}

.header-stats .stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    color: #58a6ff;
}

.header-stats .stat-item span:last-child {
    color: #8b949e;
    font-size: 0.9em;
}

/* ========================================
   4. AUTENTICAÇÃO E BANNERS
   ======================================== */

/* Filtros de publicações */
.feed-filters {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.feed-filters h3 {
    margin: 0 0 15px 0;
    color: #e6edf3;
    font-size: 1.1em;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: #30363d;
    color: #e6edf3;
}

.filter-btn.active {
    background: #58a6ff;
    border-color: #58a6ff;
    color: white;
}

.filter-btn.active:hover {
    background: #79c0ff;
    border-color: #79c0ff;
}

.auth-banner {
    background: radial-gradient(circle at 30% 107%,var(--dourado) 0%,var(--dourado) 5%,#fd5949 45%,#d6249f 60%,#81259D 90%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.auth-banner p {
    margin: 0 0 15px 0;
    color: white;
    font-weight: 500;
}

.auth-banner h3 {
    color: white;
    margin: 0 0 10px 0;
}

.auth-banner strong {
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-auth {
    background: white;
    color: #238636;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.95em;
}

.btn-auth:hover {
    background: #f0f0f0;
    color: #238636;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-login {
    background: white;
    color: #238636;
}

.btn-login:hover {
    background: #f6f8fa;
    color: #238636;
    text-decoration: none;
}

.btn-register {
    background: #1f2328;
    color: white;
    border: 1px solid #30363d;
}

.btn-register:hover {
    background: #30363d;
    color: white;
    text-decoration: none;
}

/* ========================================
   5. NAVEGAÇÃO E BREADCRUMBS
   ======================================== */

.back-nav {
    margin-bottom: 20px;
}

.back-nav a {
    color: #58a6ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-nav a:hover {
    text-decoration: underline;
    color: #79c0ff;
}

.btn-back {
    color: #58a6ff;
    background: none;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #79c0ff;
    text-decoration: none;
}

.btn-back:active {
    transform: translateY(1px);
}

.breadcrumb {
    color: #8b949e;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #58a6ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   6. POSTS E CARDS
   ======================================== */

/* Posts Públicos */
.post-public,
.post-detail {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.post-header i {
    font-size: .6em;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30363d;
    flex-shrink: 0;
}

.username {
    color: #e6edf3;
    font-size: 1.1em;
    margin: 0;
    flex-grow: 1;
}

.post-time {
    color: #8b949e;
    font-size: 0.9em;
    margin: 0;
    flex-shrink: 0;
}

.post-time a {
    color: #8b949e;
    text-decoration: none;
}

.post-time a:hover {
    color: #58a6ff;
    text-decoration: underline;
}

.username .user-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.username .user-type-badge.mulher {
    background: rgba(214, 36, 159, 0.2);
    color: #d6249f;
    border: 1px solid rgba(214, 36, 159, 0.3);
}

.username .user-type-badge.homem {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Post Author (específico para post.php) */
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
}

.post-author .post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30363d;
    flex-shrink: 0;
}

.post-author .author-info {
    flex-grow: 1;
}

.post-author .author-info h3 {
    margin: 0 0 5px 0;
    color: #e6edf3;
    font-size: 1.2em;
    font-weight: 600;
}

.post-author .author-info h3 a {
    color: #e6edf3;
    text-decoration: none;
}

.post-author .author-info h3 a:hover {
    color: #58a6ff;
    text-decoration: underline;
}

.post-author .author-info h3 .user-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.post-author .author-info h3 .user-type-badge.mulher {
    background: rgba(214, 36, 159, 0.2);
    color: #d6249f;
    border: 1px solid rgba(214, 36, 159, 0.3);
}

.post-author .author-info h3 .user-type-badge.homem {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.post-author .author-info .username {
    color: #8b949e;
    margin: 0;
    font-size: 0.95em;
}

/* Post time standalone (para uso fora do post-author) */
.post-time {
    color: #8b949e;
    font-size: 0.9em;
    margin: 10px 0 15px 0;
    display: block;
}

.post-time a {
    color: #8b949e;
    text-decoration: none;
}

.post-time a:hover {
    color: #58a6ff;
    text-decoration: underline;
}

.post-content {
    color: #e6edf3;
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: break-word;
}

.post-content.truncated {
    position: relative;
    max-height: 120px;
    overflow: hidden;
}

.post-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #161b22);
}

.read-more {
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Mídia do post */
.post-media {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
}

.post-media img,
.post-media video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.post-video-mov {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    outline: none;
}

.post-media img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.post-media video {
    outline: none;
}

.post-media video::-webkit-media-controls {
    display: flex !important;
}

.post-media video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.8);
}

/* Ocultar botão de download dos vídeos */
.post-media video::-webkit-media-controls-download-button {
    display: none !important;
}

.post-media video::-webkit-media-controls-overflow-button {
    display: none !important;
}

/* Desabilitar menu de contexto para prevenir downloads */
.post-media img,
.post-media video,
.post-image,
.post-video,
.post-video-mov {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

/* Prevenir drag and drop */
.post-media img,
.post-media video,
.post-image,
.post-video,
.post-video-mov {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Estilos para controle de áudio dos vídeos */
.video-mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 14px;
}

.video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-mute-btn i {
    pointer-events: none;
}

/* Estilos para vídeos */
.post-video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

.post-video-mov {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

.post-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.02);
}

/* Modal de imagem ampliada */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Estatísticas do post */
.post-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: #8b949e;
    font-size: 0.85em;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: center;
    color: #8b949e;
    font-size: 0.9em;
}

.stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    color: #58a6ff;
}

.stat-label {
    color: #8b949e;
    font-size: 0.9em;
}

/* Ações do post */
.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.btn-action:hover {
    background: #30363d;
    color: #e6edf3;
    text-decoration: none;
}

.btn-action.liked {
    color: #f85149;
    border-color: #f85149;
}

.btn-view-post {
    background: #238636;
    border-color: #238636;
    color: white;
}

.btn-view-post:hover {
    background: #2ea043;
    border-color: #2ea043;
    color: white;
}

/* Action Buttons específicos para post.php */
.action-btn {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
    justify-content: center;
}

.action-btn:hover {
    background: #30363d;
    color: #e6edf3;
    border-color: #58a6ff;
    transform: translateY(-1px);
}

.action-btn i {
    font-size: 1.1em;
}

.action-btn span {
    margin-left: 4px;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn[href] {
    text-decoration: none;
    color: #8b949e;
}

.action-btn[href]:hover {
    text-decoration: none;
    color: #e6edf3;
}

/* Cores específicas para cada ação */
.action-btn[onclick*="curtir"]:hover {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border-color: #f85149;
}

.action-btn[onclick*="comentar"]:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-color: #58a6ff;
}

.action-btn[onclick*="toggleCompartilhar"]:hover {
    background: rgba(35, 134, 54, 0.1);
    color: #238636;
    border-color: #238636;
}

.action-btn[onclick*="denunciar"]:hover {
    background: rgba(255, 212, 59, 0.1);
    color: #ffd43b;
    border-color: #ffd43b;
}

/* Opções de compartilhamento */
.share-options {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    display: none;
}

.share-options.show {
    display: block;
}

.share-options h4 {
    margin: 0 0 10px 0;
    color: #e6edf3;
    font-size: 1em;
}

.share-options .share-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-options .share-link {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-options .share-link:hover {
    background: #30363d;
    color: #e6edf3;
    text-decoration: none;
}

/* Opções de compartilhamento */
.share-options {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    display: none;
}

.share-options.show {
    display: block;
}

.share-options h4 {
    margin: 0 0 10px 0;
    color: #e6edf3;
    font-size: 1em;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.share-btn:hover {
    background: #30363d;
    color: #e6edf3;
    text-decoration: none;
}

.share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-color: #25d366;
}

.share-twitter:hover {
    background: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
    border-color: #1d9bf0;
}

.share-telegram:hover {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    border-color: #0088cc;
}

.copy-link {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.copy-link:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-color: #58a6ff;
}

/* Texto de descrição */
.description-text {
    color: #8b949e;
    margin-bottom: 15px;
}

/* Botão de carregar mais */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

/* ========================================
   7. FEED ESPECÍFICO
   ======================================== */

.feed-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Cards dos Posts no Feed */
.post-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.post-card:hover {
    border-color: #58a6ff;
}

.post-card .post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #30363d;
}

.post-card .author-info h4 {
    margin: 0 0 5px 0;
    color: #e6edf3;
    font-size: 1em;
}

.post-card .author-info .username {
    color: #8b949e;
    margin: 0;
    font-size: 0.85em;
}

.post-card .post-time {
    color: #8b949e;
    font-size: 0.85em;
    margin-bottom: 12px;
}

.post-card .post-content {
    color: #e6edf3;
    line-height: 1.5;
    margin-bottom: 15px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-media img,
.post-card .post-media video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-card .post-stats {
    display: flex;
    gap: 15px;
    color: #8b949e;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.post-card .post-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.post-card .action-btn {
    background: none;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    flex: 1;
    justify-content: center;
    text-decoration: none;
}

.post-card .action-btn:hover {
    background: #30363d;
    color: #e6edf3;
    text-decoration: none;
}

.post-card .btn-view-post {
    background: #238636;
    border-color: #238636;
    color: white;
}

.post-card .btn-view-post:hover {
    background: #2ea043;
    border-color: #2ea043;
    color: white;
}

/* ========================================
   8. PERFIS PÚBLICOS
   ======================================== */

.profile-header {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #30363d;
    margin: 0 auto 20px auto;
    display: block;
}

.profile-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #e6edf3;
    margin: 0 0 10px 0;
}

.profile-username {
    color: #8b949e;
    font-size: 1.1em;
    margin: 0 0 15px 0;
}

.user-type-badge {
    background: #f85149;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.user-type-badge.mulher {
    background: #d6249f;
}

.user-type-badge.homem {
    background: #6c757d;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge.mulher {
    background: rgba(214, 36, 159, 0.2);
    color: #d6249f;
    border: 1px solid rgba(214, 36, 159, 0.3);
}

.user-badge.homem {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.profile-bio {
    color: #e6edf3;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 1em;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.profile-actions {
    margin-top: 25px;
}

.btn-follow {
    background: #238636;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-follow:hover {
    background: #2ea043;
    text-decoration: none;
}

/* ========================================
   9. SISTEMA DE COMENTÁRIOS
   ======================================== */

.comentarios-section,
.comments-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.comentarios-section h3,
.comments-section h3,
.comments-title {
    margin: 0 0 20px 0;
    color: #e6edf3;
    font-size: 1.2em;
    padding-bottom: 15px;
    border-bottom: 1px solid #30363d;
}

.comentarios-lista {
    margin-top: 20px;
}

.comentario-item,
.comment-public,
.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #30363d;
}

.comment-public {
    padding-bottom: 20px;
}

.comment {
    padding: 15px 0;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #30363d;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
}

.comment-author a {
    color: #e6edf3;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-author-link {
    color: #e6edf3;
    text-decoration: none;
}

.comment-author-link:hover {
    color: #58a6ff;
    text-decoration: underline;
}

.comment-time {
    color: #8b949e;
    font-size: 0.85em;
}

.comment-text {
    margin: 0;
    color: #e6edf3;
    line-height: 1.5;
    word-break: break-word;
}

.comment-form {
    margin-bottom: 25px;
    padding: 20px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px;
    color: #e6edf3;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

.comment-form textarea::placeholder {
    color: #8b949e;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    color: #8b949e;
    font-size: 0.85em;
}

.btn-comment {
    background: #238636;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-comment:hover {
    background: #2ea043;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: #8b949e;
    font-style: italic;
}

/* ========================================
   10. MODAL DE AUTENTICAÇÃO
   ======================================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.auth-modal.active {
    display: flex;
}

.modal-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    color: #e6edf3;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.modal-content p {
    color: #8b949e;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-close {
    background: #6e7681;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

.btn-close:hover {
    background: #8b949e;
}

/* ========================================
   11. PAGINAÇÃO
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 12px 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: #30363d;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination .current {
    background: #58a6ff;
    border-color: #58a6ff;
    color: white;
}

.pagination .disabled {
    color: #6e7681;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   12. ESTADOS VAZIOS
   ======================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8b949e;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin: 40px 0;
}

.empty-state h3 {
    color: #e6edf3;
    margin: 0 0 15px 0;
}

.empty-state p {
    margin: 0;
    font-style: italic;
}

/* ========================================
   13. UTILITÁRIOS
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ========================================
   14. RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .public-container,
    .profile-container {
        padding: 15px;
    }
  
    .header-public h1 {
        font-size: 1.6em;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-auth {
        width: 200px;
        text-align: center;
    }
    
    .modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    /* Feed responsivo */
    .feed-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-card {
        padding: 15px;
    }
    
    .post-card .post-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    /* Posts responsivos */
    .post-detail-container {
        padding: 10px;
    }
    
    .post-public,
    .post-detail {
        padding: 20px;
    }
    
    .post-actions {
        flex-wrap: wrap;
    }
    
    .btn-action {
        flex: 1 1 45%;
    }
    
    /* Comentários responsivos */
    .comment-form {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .btn-comment {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .public-container,
    .profile-container {
        padding: 10px;
    }
    
    .header-public h1 {
        font-size: 1.4em;
    }
    
    .auth-banner {
        padding: 12px 15px;
    }
    
    .btn-auth {
        width: 100%;
        max-width: 280px;
    }
    
    .post-public,
    .post-detail {
        padding: 15px;
    }
    
    .post-actions {
        gap: 8px;
    }
    
    .btn-action {
        flex: none;
        width: 100%;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* ====== 15. MENÇÕES E HASHTAGS ====== */
.mention {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mention:hover {
    color: #4f94d4;
    text-decoration: underline;
}

.hashtag {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hashtag:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* Estilos específicos para hashtag page */
.hashtag-info {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.hashtag-header {
    text-align: center;
    margin-bottom: 20px;
}

.hashtag-title {
    font-size: 2em;
    color: #ffa657;
    margin-bottom: 10px;
    font-weight: 600;
}

.hashtag-stats {
    color: #8b949e;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hashtag-stats i {
    color: #ffa657;
}

/* Estilos para o botão do anúncio */
.anuncio-link {
    margin: 15px 0;
    text-align: center;
}

.btn-anuncio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: none;
    cursor: pointer;
}

.btn-anuncio:hover {
    background: linear-gradient(135deg, #ff5252, #ff7a7a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.btn-anuncio:active {
    transform: translateY(0);
}

.btn-anuncio i {
    font-size: 1.1em;
}

/* Responsividade */
@media (max-width: 768px) {
    .btn-anuncio {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .video-mute-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
    
    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }
    
    .image-modal img {
        max-width: 95vw;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .video-mute-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
        top: 5px;
        right: 5px;
    }
    
    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

/* Indicadores de conectividade */
.connection-indicator {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.connection-indicator.visible {
    opacity: 1;
}

.connection-indicator.fast {
    border-left: 3px solid #28a745;
}

.connection-indicator.medium {
    border-left: 3px solid #ffc107;
}

.connection-indicator.slow {
    border-left: 3px solid #dc3545;
}
