/*
Theme Name: ComparaSaaS Pro
Theme URI: https://comparasaas.com
Description: Professional SaaS Comparison Theme for Brazil Market
Version: 2.0
Author: Manus
License: GPL v2 or later
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #2d3748;
    --light: #f7fafc;
    --border: #e2e8f0;
    --text: #2d3748;
    --text-light: #718096;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 16px;
    opacity: 0.95;
}

/* Navigation */
nav {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 16px 18px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: rgba(102, 126, 234, 0.05);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main */
main {
    padding: 60px 20px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.post-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px;
    flex-grow: 1;
}

.post-card-header h2 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.post-card-meta {
    font-size: 12px;
    opacity: 0.9;
}

.post-card-content {
    padding: 20px 24px;
    flex-grow: 1;
}

.post-card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.post-card-footer {
    padding: 0 24px 24px;
}

.read-more {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Single Post */
.single-post {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.single-post h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.3;
}

.post-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    color: var(--dark);
    font-weight: 700;
}

.post-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--text);
    font-weight: 600;
}

.post-content ul, .post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
}

.post-content table th,
.post-content table td {
    border: 1px solid var(--border);
    padding: 14px;
    text-align: left;
}

.post-content table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 600;
}

.post-content table tr:nth-child(even) {
    background-color: rgba(102, 126, 234, 0.05);
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--primary);
}

/* Ad Space */
.ad-space {
    background: #f0f0f0;
    border: 2px dashed var(--border);
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: 8px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 80px;
}

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

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

footer h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 12px;
}

footer a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 24px;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        padding: 12px 16px;
        font-size: 13px;
    }

    main {
        padding: 40px 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-post {
        padding: 30px 20px;
    }

    .single-post h1 {
        font-size: 26px;
    }

    .post-content h2 {
        font-size: 22px;
        margin: 30px 0 15px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        gap: 30px;
    }
}
