/**
 * CSS Unificado - Design Minimalista e Moderno
 * Sem efeitos hover, responsivo, clean
 */

/* Google Fonts - Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* === VARIÁVEIS CSS === */
:root {
    /* Dark Mode - Tema Padrão (Preto/Cinza com Dourado) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-muted: #707070;
    --border-color: #2a2a2a;
    --accent-color: #d4af37;
    --accent-hover: #f0c952;
    --accent-light: #2a2416;
    --success-color: #d4af37;
    --danger-color: #dc3545;
    --warning-color: #d4af37;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === HEADER === */
.main-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: none;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f0c952 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

/* Pesquisa Mobile - escondida no desktop */
.mobile-search {
    display: none;
}

/* === HANDLES DE USUÁRIO === */
/* Aplicar fonte comum aos handles com @ */
.author-handle,
.comment-username,
.profile-username {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
}

/* === NOMES DE AUTORES === */
/* Todos os nomes de autores em branco */
.author-link,
.comment-author-link,
h3,
h4,
.profile-name {
    color: white !important;
}

/* === CLASSES PARA SUBSTITUIR ESTILOS INLINE === */
/* Links de autores em cards */
.story-author-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
}

/* Links de categorias no sidebar da home */
.sidebar-category-link {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

/* Números de ranking */
.ranking-number {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Ícones de modal */
.modal-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Botões de modal */
.modal-btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Botões de exclusão */
.delete-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-width: 80px;
}

/* Links de voltar */
.back-link {
    color: var(--accent-color);
    text-decoration: none;
}

/* Ícones de estrela */
.star-icon {
    color: var(--accent-color);
}

/* Ícones de envelope */
.envelope-icon {
    color: var(--accent-color);
}

/* Ícones de alerta */
.alert-icon {
    color: var(--accent-color);
}

/* Botão de excluir comentário */
.btn-delete-comment {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-delete-comment:hover {
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
}

.btn-delete-comment i {
    font-size: 0.8rem;
}

/* Botão Ver Perfil no conto.php */
.btn-view-profile {
    background: var(--accent-color) !important;
    color: var(--button-text-color) !important;
    border: 2px solid var(--accent-color) !important;
}

.btn-view-profile:hover {
    background: var(--accent-color) !important;
    color: var(--button-text-color) !important;
    opacity: 0.9;
}

/* Fonte para números e estatísticas */
.stat-number,
.story-count,
.followers-count,
.following-count,
.rating-number,
.ranking-number,
.comment-count,
.story-views,
.story-rating,
.total-ratings,
.date-time,
.created-date,
.updated-date,
.publication-date {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
    font-weight: 600;
}

/* Fonte para datas em formato específico */
.date-display,
.time-display,
.story-date,
.comment-date {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
    font-weight: 500;
}

/* Títulos de erro 404 */
.error-title {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Ícone de erro 404 */
.error-icon {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* === EDITORES DE TEXTO === */
/* Aplicar fonte Raleway aos campos de digitação */
#content-editor,
textarea[name="content"],
#comment-text {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1rem;
    line-height: 1.6;
}

/* === CATEGORIAS === */
/* Links da navegação rápida - usar cor do botão */
.index-letter {
    color: var(--button-text-color) !important;
}

/* Letra da seção e linha - cor de destaque */
.category-letter {
    color: var(--accent-color) !important;
}

.category-letter-header {
    border-bottom: 1px solid var(--accent-color) !important;
}

/* Lista de categorias - texto simples */
.category-list {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 1rem;
}

.category-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    margin-right: 0.7rem;
}

.category-link:hover {
    text-decoration: underline;
}

.category-separator {
    color: white !important;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 50px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* === MENU MOBILE === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #2a2a2a;
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f0c952 100%);
    color: #000;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* === CARDS === */
.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === GRID === */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-2 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* === STORY CARD === */
.story-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.story-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.story-title:hover {
    text-decoration: none;
}

.story-title:hover {
    color: var(--accent-hover);
}

.story-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: auto;
    flex-grow: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    font-weight: normal;
    display: block;
}

.story-excerpt:hover {
    text-decoration: none;
}

.story-excerpt:hover {
    color: var(--text-primary);
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* === BADGES === */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: #000;
}

.badge-primary {
    background-color: var(--accent-color);
    color: white;
}

/* === ALERTS === */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #3a1f1f;
    color: #ff6b6b;
    border: 1px solid #5a2f2f;
}

.alert-success {
    background-color: var(--accent-light);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.alert-info {
    background-color: var(--accent-light);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

select.form-control {
    cursor: pointer;
}

/* === FOOTER === */
.main-footer {
    border-top: none;
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-secondary);
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);font-size: 0.85rem;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1rem !important;
        text-align: center;
        flex: 1;
    }
    
    .desktop-search {
        display: none !important;
    }
    
    .mobile-search {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Mostrar botão hamburguer */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Menu lateral em mobile */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        border-right: 1px solid #2a2a2a;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
        padding-top: 1rem;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #2a2a2a;
    }
    
    .nav-menu li a,
    .nav-menu li button {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-link {
        color: var(--text-primary);
    }
    
    /* User menu vira accordion no mobile */
    .nav-menu li > div {
        position: static !important;
    }
    
    #user-menu {
        position: static !important;
        display: block !important;
        margin-top: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--bg-secondary) !important;
    }
    
    #user-menu a {
        padding: 0.75rem 2rem !important;
        border-bottom: 1px solid #2a2a2a !important;
    }
    
    #user-menu a:last-child {
        border-bottom: none !important;
    }
    
    .grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .container,
    .container-narrow {
        padding: 1rem;
    }
}

/* === SISTEMA DE AVALIAÇÃO === */
.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
    justify-content: center;
    align-items: center;
}

.star {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.star.active {
    color: var(--accent-color);
}

/* === CONTROLES DE FONTE === */
.font-controls-bar {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 90px;
    z-index: 100;
}

/* Ajuste de top no mobile */
@media (max-width: 768px) {
    .font-controls-bar {
        top: 80px;
    }
}

.font-controls-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* === CAIXAS DE COMENTÁRIO === */
.comment-box {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

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

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* === MODAL DE SEGURANÇA === */
.security-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.security-modal .modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.security-modal .modal-title {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-modal .modal-body {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.security-modal .modal-footer {
    display: flex;
    justify-content: center;
}

.security-modal .btn-modal {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.security-modal .btn-modal-primary {
    background: var(--accent-color);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.security-modal .btn-modal-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.security-modal .btn-modal-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.security-modal .btn-modal-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.security-modal .violation-list {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.security-modal .violation-item {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-modal .violation-item:last-child {
    margin-bottom: 0;
}

/* === MODAL DE SUCESSO === */
.success-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #28a745;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.success-modal .modal-title {
    color: #28a745;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-modal .btn-modal {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.success-modal .btn-modal-primary {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.success-modal .btn-modal-primary:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === WIDGETS DE PUBLICIDADE === */
.story-ad-widget {
    margin: 0.25rem 0 2rem 0;
    text-align: center;
    padding: 1rem;
}

.story-ad-widget .ad-banner {
    width: 100%;
    max-width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.story-ad-widget .ad-content {
    text-align: center;
    color: var(--text-muted);
}

.story-ad-widget .ad-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.story-ad-widget .ad-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.story-ad-widget .ad-content small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* === WIDGETS DE PUBLICIDADE === */
.ad-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.ad-widget .card-text {
    padding: 0.5rem;
    text-align: center;
}

.ad-widget .banner-container {
    width: 300px;
    height: 250px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* === SIDEBAR CONTO - MOBILE === */
@media (max-width: 768px) {
    .story-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .story-layout > div:first-child {
        order: 1;
    }
    
    .story-layout aside {
        order: 2;
    }
}

/* === BOTÕES DE AÇÃO - MOBILE === */
@media (max-width: 768px) {
    .story-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .story-actions button {
        width: 100% !important;
        margin: 0 !important;
        margin-right: 0 !important;
    }
}

/* === LAYOUT HOME === */
/* Grid específico para categorias */
.grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    column-gap: 0.5rem !important;
    row-gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forçar espaçamento uniforme */
.grid-3 > * {
    margin: 0 !important;
}

/* Regra específica para garantir espaçamento uniforme */
section .grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    column-gap: 0.5rem !important;
    row-gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reduzir padding das categorias */
.grid-3 .card {
    padding: 0.5rem !important;
    border: 1px solid var(--border-color) !important;
}

.grid-3 .card-title {
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

@media (max-width: 768px) {
    .container > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
        row-gap: 0.25rem !important;
    }
    
    /* Reduzir ainda mais o padding no mobile */
    .grid-3 .card {
        padding: 0.25rem !important;
    }
    
    .grid-3 .card-title {
        padding: 0.15rem 0.25rem !important;
        font-size: 0.85rem !important;
    }
}



/* === CLASSES UTILITÁRIAS === */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

/* === TAGS DE CATEGORIA === */
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    background: var(--bg-primary);
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.category-tag:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.category-tag.active {
    background: var(--accent-color);
    color: #1a1a1a;
    border-color: var(--accent-color);
    font-weight: 600;
}

.category-tag input[type="checkbox"] {
    display: none;
}

/* === CARD DE PERFIL DO USUÁRIO === */
.profile-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-card .card-text {
    color: var(--text-primary);
}

.profile-card h1 {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-card .text-muted {
    color: var(--text-secondary);
}

.profile-card .stats-section {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 0;
    margin-top: 1rem;
    margin-bottom: 0;
}

.profile-card .stats-section .d-flex {
    margin-bottom: 1rem;
}

.profile-card .stats-section .d-flex {
    align-items: center;
    justify-content: center;
}

.profile-card .stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-card .stat-item strong {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.25rem;
}

.profile-card .stat-item small {
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-card .btn-primary,
.profile-card .btn-outline {
    background: var(--accent-color);
    color: var(--button-text-color);
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.profile-card .btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Espaçamento do botão na seção de estatísticas */
.profile-card .stats-section button {
    margin-top: 1rem;
}

/* Responsividade para o botão de seguir */
@media (max-width: 768px) {
    .profile-card .stats-section button {
        margin-top: 1.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Aviso Global */
.global-notice {
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 0.75rem 0;
}

.global-notice .notice-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.global-notice i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* === RESPONSIVIDADE ADICIONAL === */
@media (max-width: 768px) {
    /* Grid de conto.php com sidebar em mobile */
    .story-layout {
        grid-template-columns: 1fr !important;
    }
    
    .profile-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-card .stat-item strong {
        font-size: 1.2rem;
    }
}

/* === ESTILOS ESPECÍFICOS DO CONTO.PHP === */

/* Conteúdo da história */
.story-content {
    line-height: 1.6;
    font-size: 1.1rem;
}

.story-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    padding: 0;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.story-content p + p {
    margin-top: 0;
}

/* Widget de publicidade */
.story-ad-widget {
    margin: 0.25rem 0 2rem 0;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Conteúdo do widget */
.story-ad-widget .widget-content {
    margin: 0;
}

/* Widgets da sidebar */
.sidebar-widget {
    margin-bottom: 20px;
}

.sidebar-widget .card-header h6 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-widget .card-text {
    padding: 15px;
}

/* Seção de Parceiros */
.partners-section {
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.partners-content {
    text-align: center;
}

.partners-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.partner-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.partner-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

/* Responsividade da seção de parceiros */
@media (max-width: 768px) {
    .partners-section {
        padding: 1rem 0;
    }
    
    .partners-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ========================================
   FOOTER STYLES - CONSOLIDATED
   ======================================== */

/* Footer Base */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid #2a2a2a;
    padding: 3rem 0 2rem;
    margin-top: 0;
    color: var(--text-primary);
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-footer .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.main-footer .col-lg-4,
.main-footer .col-lg-2 {
    padding: 0 15px;
    margin-bottom: 2rem;
}

.main-footer .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Footer - Colunas iguais sem linhas */
.main-footer .row > div {
    padding: 0 20px;
}

/* Títulos */
.main-footer h5,
.main-footer h6 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.main-footer h5 {
    font-size: 1.25rem;
}

.main-footer h6 {
    font-size: 1rem;
}

/* Listas */
.main-footer .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Espaçamento entre links */
.main-footer .list-unstyled li {
    margin-bottom: 8px;
}

.main-footer .list-unstyled a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
    display: block;
}

/* Links hover */
.main-footer .list-unstyled a:hover {
    color: #ffffff !important;
}

/* Subcolunas dentro da última coluna */
.main-footer .row .row {
    margin-left: 0;
    margin-right: 0;
}

.main-footer .row .row > div {
    padding: 0 10px;
}

/* Centralizar título da última coluna */
.main-footer .row > div:last-child h6 {
    text-align: center !important;
    display: block;
    width: 100%;
}

/* Alinhamento das subcolunas */
.main-footer .row .row > div:first-child .list-unstyled {
    text-align: right;
}

.main-footer .row .row > div:last-child .list-unstyled {
    text-align: left;
}

/* Ajustar links para manter alinhamento */
.main-footer .row .row .list-unstyled a {
    justify-content: flex-end; /* Para subcoluna esquerda */
}

.main-footer .row .row > div:last-child .list-unstyled a {
    justify-content: flex-start; /* Para subcoluna direita */
}

/* Social Links */
.main-footer .social-links {
    margin-top: 1rem;
}

.main-footer .social-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.main-footer .social-links a:hover {
    color: var(--accent-color) !important;
}

/* Copyright */
.footer-copyright {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

.main-footer .text-muted {
    color: var(--text-muted) !important;
}

.main-footer .small {
    font-size: 0.875rem;
}

/* ========================================
   MOBILE STYLES
   ======================================== */
@media (max-width: 991px) {
    /* Forçar colunas a ficarem empilhadas no mobile */
    .main-footer .row > div[class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
        padding: 0 15px;
        text-align: center; /* Centralizar todo conteúdo no mobile */
        display: block !important;
        float: none !important;
    }
    
    .main-footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Centralizar títulos no mobile */
    .main-footer h5,
    .main-footer h6 {
        text-align: center !important;
    }
    
    /* Centralizar listas no mobile */
    .main-footer .list-unstyled {
        text-align: center !important;
    }
    
    /* Centralizar links no mobile */
    .main-footer .list-unstyled a {
        justify-content: center !important;
    }
    
    /* Subcolunas no mobile - centralizadas e empilhadas */
    .main-footer .row .row > div[class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        margin-bottom: 15px;
        display: block !important;
        float: none !important;
    }
    
    .main-footer .row .row > div:first-child .list-unstyled {
        text-align: center !important;
    }
    
    .main-footer .row .row > div:last-child .list-unstyled {
        text-align: center !important;
    }
    
    .main-footer .row .row .list-unstyled a {
        justify-content: center !important;
    }
    
    .main-footer .row .row > div:last-child .list-unstyled a {
        justify-content: center !important;
    }
    
    /* Resetar flexbox para forçar empilhamento */
    .main-footer .row {
        display: block !important;
    }
    
    .main-footer .row > div {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Forçar subcolunas a ficarem empilhadas também */
    .main-footer .row .row {
        display: block !important;
    }
    
    .main-footer .row .row > div {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ========================================
   SMALL MOBILE STYLES
   ======================================== */
@media (max-width: 576px) {
    .main-footer {
        padding: 2rem 0 1rem;
    }
    
    /* Reduzir padding no mobile pequeno */
    .main-footer .row > div[class*="col-"] {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    /* Reduzir tamanho dos ícones no mobile pequeno */
    .main-footer .list-unstyled a i {
        font-size: 11px !important;
        width: 12px !important;
    }
    
    /* Reduzir tamanho do texto no mobile pequeno */
    .main-footer .list-unstyled a span {
        font-size: 12px !important;
    }
}
    
    .main-footer .col-lg-4,
    .main-footer .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Avatar do autor */
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Bio do autor */
.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Estatísticas do autor */
.author-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.stat-item small {
    font-size: 0.75rem;
}

/* Botão de largura total */
.btn-full {
    width: 100%;
    text-align: center;
}

/* Botões com margem */
.btn-margin {
    margin-right: 1rem;
}

/* Botão de perigo */
.btn-danger {
    background: var(--danger-color);
    color: white;
    border: 1px solid var(--danger-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: auto;
    flex: 1;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Links de comentários */
.comment-author-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
}

.comment-username {
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: normal;
}

/* === MODAIS GERAIS === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

/* Modal de limpeza de texto */
.clear-modal {
    max-width: 320px;
    width: 85%;
    padding: 0.125rem;
}

.clear-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.clear-modal .modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.clear-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-modal .modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.clear-modal .modal-body {
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.clear-modal .modal-body p {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.clear-modal .modal-body .text-muted {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.clear-modal .modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.75rem 1rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
}

.clear-modal .btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-modal .btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.clear-modal .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* === SISTEMA DE PAGINAÇÃO === */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    height: 2.5rem;
}

.pagination-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--accent-color);
    color: white !important;
    border-color: var(--accent-color);
    font-weight: 600;
}

.pagination-btn.active:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Responsividade da paginação */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 2rem;
        height: 2rem;
    }
    
    .pagination-info {
        font-size: 0.9rem;
    }
}

/* === CATEGORIAS POR LETRAS === */
.category-section {
    margin-bottom: 3rem;
}

/* Índice de navegação */
.category-index {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.index-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.index-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent-color);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.index-letter:hover {
    background: var(--accent-color);
    color: var(--button-text-color);
    transform: none;
    text-decoration: none;
}

.index-letter.active {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.category-letter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.category-letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
    text-transform: uppercase;
}


.category-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

/* Responsividade para categorias */
@media (max-width: 768px) {
    .category-letter {
        font-size: 2rem;
    }
    
    .category-letter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .index-letters {
        gap: 0.25rem;
    }
    
    .index-letter {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
        font-size: 0.8rem;
    }
    
    .category-index {
        padding: 1rem;
    }
    
    /* Centralizar verticalmente categorias de uma linha no mobile */
    .grid-3 .card {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px;
    }
    
    .grid-3 .card .card-title {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .grid-3 .card .card-title h3 {
        margin: 0;
        line-height: 1.2;
        text-align: center;
    }
    
    /* Garantir que categorias de uma linha fiquem centralizadas */
    .grid-3 .card .card-title h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 60px;
    }
    
    /* Ajustar altura mínima dos cards no mobile */
    .grid-3 .card {
        min-height: 80px;
        height: auto;
    }
}

/* Botão Ver Todas as Categorias */
.btn-categories {
    background: var(--accent-color);
    border: none;
    color: var(--button-text-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}


/* === PERFIL PÚBLICO MODERNO === */
.modern-profile-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-info-section {
    padding: 2rem;
    background: #191919;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #444;
    color: #999;
    font-size: 3rem;
}

.profile-details {
    flex: 1;
    color: white;
}

.profile-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: white;
}

.profile-username {
    font-size: 1.1rem;
    color: #999;
    margin: 0 0 1rem 0;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
    margin: 0 0 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-link {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    background: #555;
    color: #ccc;
}

.social-link.instagram {
    background: #555;
    color: #ccc;
}

.social-link.twitter {
    background: #555;
    color: #ccc;
}

.social-link.custom {
    background: #555;
    color: #ccc;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: #666;
    color: white;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 2rem;
    background: #222;
    border-top: 1px solid #333;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.25rem;
}

.follow-section {
    padding: 1.5rem 2rem;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.follow-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.follow-btn.not-following {
    background: var(--accent-color);
    color: #000;
}

.follow-btn.following {
    background: #333;
    color: white;
    border: 1px solid #555;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.follow-btn.not-following:hover {
    background: var(--accent-hover);
}

.follow-btn.following:hover {
    background: #444;
}

/* Layout do conto */
.story-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Desktop: sidebar à direita */
@media (min-width: 768px) {
    .story-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* Garantir que o sidebar seja responsivo */
.story-layout aside {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .story-layout aside {
        margin-top: 2rem;
    }
}

/* Meta informações do conto */
.story-meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* Botão de limpar no editor */
.btn-clear {
    color: #dc3545 !important;
}

.btn-clear:hover {
    background: #dc3545 !important;
    color: white !important;
}

/* Link do autor */
.author-link {
    color: white !important;
    font-weight: 700;
    text-decoration: none;
}

/* Ícone de categoria */
.category-icon {
    color: var(--accent-color);
}


/* Estrela de avaliação */
.rating-star {
    color: #ffc107;
}

/* Ações do conto */
.story-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Botões de ação */
.action-btn {
    margin-right: 1rem;
}


/* Regra consolidada para todos os botões usarem a fonte padrão */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.btn-primary,
.btn-outline,
.btn-danger,
.btn-sm,
.action-btn,
.follow-btn,
.favorite-btn-main,
.follow-btn-main {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
}

/* Botão de submit */
.submit-btn {
    flex: 1;
}

/* Ícone para contos vazios */
.empty-stories-icon {
    font-size: 3rem;
    color: var(--text-muted);
}

/* Responsivo para perfil */
@media (max-width: 768px) {
    .profile-info-section {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .avatar-container {
        width: 80px;
        height: 80px;
    }
    
    .profile-details {
        flex: 1;
        min-width: 0;
    }
    
    .profile-name {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .profile-username {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-bio {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .profile-stats {
        flex-direction: row;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }
    
    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1rem;
        font-weight: bold;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
}

/* === PÁGINA DE ERRO AMIGÁVEL === */
.user-not-found-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.user-not-found-content {
    text-align: center;
    max-width: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
}

.user-not-found-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.user-not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.user-not-found-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.user-not-found-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.user-not-found-actions .btn-primary,
.user-not-found-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.user-not-found-actions .btn-primary {
    background: var(--accent-color);
    color: var(--button-text-color);
    border: none;
}

.user-not-found-actions .btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}


/* Responsivo para página de erro */
@media (max-width: 768px) {
    .user-not-found-container {
        padding: 1rem;
    }
    
    .user-not-found-content {
        padding: 2rem 1.5rem;
    }
    
    .user-not-found-icon {
        font-size: 3rem;
    }
    
    .user-not-found-title {
        font-size: 1.5rem;
    }
    
    .user-not-found-description {
        font-size: 1rem;
    }
    
    .user-not-found-actions {
        gap: 0.75rem;
    }
    
    .user-not-found-actions .btn-primary,
    .user-not-found-actions .btn-outline {
        min-width: 180px;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Badge System Styles */
.user-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: inherit;
    margin-left: 0.25rem;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    position: relative;
}

.user-badge-icon:hover {
    transform: scale(1.2);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Badge variations */
.badge-verified {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.badge-enthusiast {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.badge-custom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Username with badge container */
.username-container {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.username-container .username {
    display: inline;
}

/* Responsive badge adjustments */
@media (max-width: 768px) {
    .user-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Texto de continuação da publicidade */
.ad-continuation-text {
    text-align: center;
    margin: 0.5rem 0 0.25rem 0;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ad-continuation-text:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.ad-continuation-text small {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ad-continuation-text i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Tema escuro */
[data-theme="dark"] .ad-continuation-text {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ad-continuation-text:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .ad-continuation-text small {
    color: #adb5bd;
}

/* Responsivo */
@media (max-width: 768px) {
    .ad-continuation-text {
        margin: 0.25rem 0 0.125rem 0;
        padding: 0.375rem;
    }
    
    .ad-continuation-text small {
        font-size: 0.75rem;
    }
}

/* === FONTE RALEWAY PARA CONTO === */
.story-content {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
}

#story-content-rest {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
}

/* === RESPONSIVIDADE ESPECÍFICA DO CONTO === */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .story-layout {
        display: block !important;
    }
    
    .story-layout > div:first-child {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .story-layout > div:last-child {
        width: 100% !important;
        margin-top: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .card-title h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* CORREÇÃO: Meta informações do conto em mobile */
    .story-meta-info {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0.5rem;
    }
    
    .story-meta-info > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0 !important;
        flex-wrap: wrap !important;
    }
    
    .story-meta-info > div > span {
        display: inline-block !important;
        text-align: center !important;
        margin-bottom: 0 !important;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Autor em destaque */
    .story-meta-info .author-link {
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        color: white !important;
        text-decoration: none !important;
        display: inline-block;
        margin: 0.25rem 0;
    }
    
    /* Data centralizada */
    .story-meta-info .publication-date {
        font-weight: 600;
        color: var(--text-secondary);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
    }
    
    /* Separadores visuais - esconder bullets */
    .story-meta-info > div > span:nth-child(2),
    .story-meta-info > div > span:nth-child(4),
    .story-meta-info > div > span:nth-child(6) {
        display: none !important;
    }
    
    /* Botão editar responsivo */
    .story-meta-info .btn-outline {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
        margin-top: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.375rem !important;
        background: var(--accent-color) !important;
        color: var(--bg-primary) !important;
        border: 2px solid var(--accent-color) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
    }
    
    .story-meta-info .btn-outline:hover {
        background: var(--accent-hover) !important;
        border-color: var(--accent-hover) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }
    
    /* Avaliações centralizadas */
    .story-meta-info .rating-star {
        color: var(--accent-color) !important;
    }
    
    .story-meta-info .rating-number {
        color: var(--accent-color) !important;
        font-weight: 700 !important;
    }
    
    .story-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .font-controls-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .font-controls-bar .btn-outline {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .story-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .story-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .comment-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .comment-avatar {
        width: 32px !important;
        height: 32px !important;
        margin-right: 0.5rem !important;
    }
    
    .comment-avatar i {
        font-size: 1rem !important;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-container {
        width: 95% !important;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .btn-outline {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.25rem;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .card-title h1 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .story-content {
        font-size: 0.95rem;
    }
    
    /* Meta informações em telas muito pequenas */
    .story-meta-info {
        padding: 0.25rem;
        margin-bottom: 1rem;
    }
    
    .story-meta-info > div > span {
        font-size: 0.8rem;
        margin-bottom: 0 !important;
    }
    
    .story-meta-info .author-link {
        font-size: 0.95rem !important;
    }
    
    .story-meta-info .btn-outline {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        margin-top: 0 !important;
    }
    
    .font-controls-bar {
        justify-content: center;
        gap: 0.375rem;
    }
    
    .font-controls-bar .btn-outline {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 98% !important;
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .modal-container {
        width: 98% !important;
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* === EDITOR DE TEXTO SIMPLES === */
.simple-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-editor {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-editor:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.simple-editor textarea {
    border: none;
    border-radius: 0;
    resize: vertical;
    min-height: 300px;
    display: none;
}

.simple-editor textarea:focus {
    box-shadow: none;
    border: none;
}

/* Editor com preview em tempo real */
.editor-preview-container {
    position: relative;
    min-height: 300px;
}

#content-preview {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 300px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    border: none;
}

#content-preview strong {
    font-weight: 700;
    color: var(--accent-color);
}

#content-preview em {
    font-style: italic;
    color: var(--text-primary);
}

/* Destacar marcadores markdown */
#content-preview .markdown-marker {
    color: var(--text-muted);
    opacity: 0.5;
    font-weight: normal;
}

/* === FORMULÁRIOS DE PUBLICAÇÃO E EDIÇÃO === */
.form-title {
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.form-actions .btn-primary {
    flex: 1;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.category-checkbox {
    display: none;
}

.form-label-small {
    color: var(--text-secondary);
}

.violation-list {
    display: none;
}

.violation-list.show {
    display: block;
}

.violation-list ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.success-actions {
    margin-top: 1rem;
    text-align: center;
}

.error-details {
    margin-top: 1rem;
}

.error-details strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* === PÁGINAS ESTÁTICAS === */
.page-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-body h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.page-body h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body ul, .page-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body strong {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-body {
        font-size: 1rem;
    }
}

