:root {
    /* --- Colors: Cyber/Creator Dark Mode --- */
    --bg-body: #09090b;       /* Zinc 950 */
    --bg-card: #18181b;       /* Zinc 900 */
    --bg-hover: #27272a;      /* Zinc 800 */
    
    --border: #3f3f46;        /* Zinc 700 */
    
    /* Brand Colors per Platform */
    --primary: #8b5cf6;       /* Global Purple */
    --tiktok: #ff0050;        /* TikTok Red */
    --notion: #ffffff;        /* Notion White */
    --insta: #d62976;         /* Insta Gradient start */
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    
    /* --- Spacing & UI --- */
    --radius: 12px;
    --container: 1000px;
    --font-main: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* Layout */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 40px;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tool-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-hover);
    color: var(--text-main);
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border);
}

.btn-link:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

/* Specific Platform Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.badge-notion { background: rgba(255,255,255,0.1); color: var(--notion); }
.badge-social { background: rgba(255, 0, 80, 0.1); color: var(--tiktok); }
.badge-obsidian { background: rgba(139, 92, 246, 0.1); color: var(--primary); }

/* Content Article for AdSense */
.seo-article {
    max-width: 800px;
    margin: 0 auto 80px auto;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.seo-article h2 { margin-bottom: 20px; font-size: 2rem; }
.seo-article p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
}

/* Fix para tabelas em celular */
#table-editor {
    display: grid;
    overflow-x: auto; /* Permite scroll lateral apenas na tabela */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Espaço para a barra de scroll */
}

/* Ajuste de inputs em telas pequenas */
input[type="color"] {
    min-width: 50px;
}

/* Melhorar toque em botões no mobile */
.btn-link, .btn-action {
    min-height: 44px; /* Tamanho mínimo para o dedo */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}