/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Brand Colors */
    --primary: hsl(243, 75%, 59%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(258, 90%, 66%);
    --secondary-foreground: hsl(0, 0%, 100%);
    
    /* Dark Mode Colors */
    --background: hsl(222, 47%, 11%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 14%);
    --card-foreground: hsl(210, 40%, 98%);
    --muted: hsl(217, 33%, 17%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(217, 91%, 60%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 63%, 31%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(217, 33%, 17%);
    --input: hsl(217, 33%, 17%);
    --ring: hsl(243, 75%, 59%);
    --radius: 0.5rem;
    
    --gradient-primary: linear-gradient(135deg, hsl(243, 75%, 59%), hsl(258, 90%, 66%));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-image {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item:hover {
    color: var(--foreground);
    background: var(--muted);
}

.nav-item:hover svg {
    opacity: 1;
}

.nav-item.active {
    color: var(--primary);
    background: hsla(221, 83%, 53%, 0.1);
}

.nav-item.active svg {
    opacity: 1;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: hsl(221, 83%, 48%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(221, 83%, 53%, 0.3);
}

.nav-cta svg {
    opacity: 1;
}

.nav-admin {
    opacity: 0.5;
    padding: 0.5rem;
}

.nav-admin:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 4rem);
}

.main-content:not(:has(.hero-section)) {
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(258, 90%, 66%) 50%, hsl(243, 75%, 59%) 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 3s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Grid pattern overlay */
.hero-section .hero-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 4rem 4rem;
    z-index: 0;
}

/* Central orb - removed for cleaner look */

.hero-overlay {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(17, 24, 39, 0.5) 50%, rgba(17, 24, 39, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.clear-search {
    position: absolute;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.hero-actions .btn-primary {
    background: white;
    color: hsl(243, 75%, 59%);
    border: none;
    font-weight: 600;
}

.hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: hsl(243, 75%, 59%);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Post - Versão compacta para páginas de post */
.hero-post {
    padding: 3rem 0 2rem;
}

.back-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.back-button svg {
    transition: transform 0.2s;
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.hero-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.hero-breadcrumb a:hover {
    opacity: 0.8;
}

.hero-breadcrumb span {
    opacity: 0.6;
}

/* Categories Section */
.categories-section {
    padding: 2rem 0;
    background: hsl(222, 47%, 13%);
    border-bottom: 1px solid var(--border);
}

.categories-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid hsl(217, 33%, 25%);
    background: hsl(222, 47%, 16%);
    color: hsl(215, 20%, 75%);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-chip:hover {
    border-color: var(--primary);
    color: white;
    background: hsl(243, 75%, 59%, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(243, 75%, 59%, 0.2);
}

.category-chip.active {
    background: linear-gradient(135deg, hsl(243, 75%, 59%), hsl(258, 90%, 66%));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px hsl(243, 75%, 59%, 0.3);
}

.category-chip svg {
    flex-shrink: 0;
}

/* Posts Section */
.posts-section {
    padding: 4rem 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--muted);
    padding: 0.25rem;
    border-radius: var(--radius);
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all 0.2s;
}

.view-btn:hover {
    color: var(--foreground);
}

.view-btn.active {
    background: var(--background);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.posts-grid.list-view {
    grid-template-columns: 1fr;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

.no-posts svg {
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.no-posts p {
    font-size: 1rem;
}

/* Post Card */
.post-card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    background: var(--card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, hsla(var(--primary) / 0.03));
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px hsl(243, 75%, 59%, 0.3);
    border-color: hsl(243, 75%, 59%, 0.5);
}

.posts-grid.list-view .post-card {
    flex-direction: row;
    height: auto;
}

.posts-grid.list-view .post-image {
    width: 300px;
    flex-shrink: 0;
}

.posts-grid.list-view .post-content {
    flex: 1;
}

.post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.post-card:hover .post-title {
    color: var(--primary);
}

.post-excerpt {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Post Article */
.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.post-article h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.post-article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
}

.post-article-content p {
    margin-bottom: 1.5rem;
}

.post-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.post-article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.post-article-content ul,
.post-article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.post-article-content li {
    margin-bottom: 0.5rem;
}

.post-article-content code {
    background: var(--muted);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875em;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 2rem auto;
    max-width: 800px;
}

.share-dropdown {
    position: relative;
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 150px;
}

.share-item {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.share-item:hover {
    background: var(--accent);
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 2rem auto;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--card);
}

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

.comment-author {
    font-weight: 600;
}

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

.comment-content {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
}

.empty-comments {
    text-align: center;
    padding: 2rem;
    color: var(--muted-foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--input);
    background: var(--background);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--accent);
}

.btn-destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-destructive:hover {
    opacity: 0.9;
}

.btn-full {
    width: 100%;
}

.btn.liked {
    color: var(--destructive);
    border-color: var(--destructive);
}

.btn.liked svg {
    fill: currentColor;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.input,
.textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(var(--ring) / 0.2);
}

.textarea {
    resize: vertical;
}

/* Footer */
.footer {
    border-top: 1px solid hsla(var(--border) / 0.4);
    background: var(--dark-bg);
    color: white;
    margin-top: 5rem;
}

.footer .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

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

.social-links a {
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid hsla(var(--border) / 0.4);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Admin Styles */
.admin-body {
    background: linear-gradient(135deg, hsl(221, 83%, 95%), hsl(262, 83%, 95%));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.login-form {
    margin-bottom: 1.5rem;
}

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

.login-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.login-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

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

/* Dashboard */
.admin-main {
    background: var(--background);
}

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

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
}

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

.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--card);
}

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

.stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.stat-icon {
    color: var(--muted-foreground);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Table */
.table-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table thead {
    background: var(--muted);
}

.posts-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.posts-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
}

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

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

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--muted-foreground);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--foreground);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 1.5rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--foreground);
    color: var(--background);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    z-index: 200;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid.list-view .post-card {
        flex-direction: column;
    }
    
    .posts-grid.list-view .post-image {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* =====
======================================= */
/* Mobile Menu Styles - Integração Callov     */
/* ============================================ */

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 40;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    transition: background 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--muted);
    color: var(--primary);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--foreground);
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* Ajustes para o header integrado */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: hsl(221, 83%, 48%);
}

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

.btn-outline:hover {
    background: var(--muted);
}


/* Blog Content Links - Better visibility on dark background */
.blog-content a,
.post-article-content a {
    color: #60a5fa; /* Blue-400 - visible on dark background */
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.4);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.blog-content a:hover,
.post-article-content a:hover {
    color: #93c5fd; /* Blue-300 - lighter on hover */
    text-decoration-color: rgba(147, 197, 253, 0.8);
}

.blog-content a:visited,
.post-article-content a:visited {
    color: #a78bfa; /* Purple-400 - still visible */
}

.blog-content a:visited:hover,
.post-article-content a:visited:hover {
    color: #c4b5fd; /* Purple-300 - lighter on hover */
}
