/* GOOGLE BLOG STYLE - COMPLETE OVERHAUL */
:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #202124;
    /* Google Black */
    --text-secondary: #5f6368;
    /* Google Grey */
    --accent: #1a73e8;
    /* Google Blue */
    --accent-hover: #1765cc;
    --border: #dadce0;
    /* Google Border */
    --font-heading: 'Google Sans', 'Inter', -apple-system, sans-serif;
    --font-body: 'Roboto', 'Inter', -apple-system, sans-serif;
    --radius: 24px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* CONTAINER */
.container {
    max-width: 1264px;
    /* Largura padrão Google */
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER - CLEAN WHITE */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.glass-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* Increased gap */
}

/* LOGO - GOOGLE STYLE */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 500;
    color: #5f6368 !important;
    /* Cinza escuro Google */
    text-decoration: none;
}

.logo:hover {
    color: #202124 !important;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: #5f6368 !important;
}

.logo:hover .logo-icon svg {
    stroke: #1a73e8 !important;
    /* Azul no hover */
}

/* NAV LINKS */
nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #5f6368;
}

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

/* Mobile Nav Hide */
@media (max-width: 900px) {
    nav {
        display: none !important;
    }
}

/* BUTTONS */
.btn-primary {
    background: var(--accent);
    color: white !important;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 0.25px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    /* More space between buttons */
}

#nav-login {
    font-size: 14px;
    color: #5f6368;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

#nav-login:hover {
    color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

/* HERO SECTION - MINIMALIST */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: #ffffff;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    /* Títulos Gigantes */
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 24px;
    font-weight: 400;
    /* Regular weight, típico Google */
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 300;
}

/* HERO SMALL (Páginas internas) */
.hero-small {
    padding: 140px 0 40px;
    /* Reduzido para menos espaçamento */
    text-align: center;
    background: #ffffff;
}

.hero-small h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-small p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}



/* SEARCH BOX */
.search-box {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.search-box:hover,
.search-box:focus-within {
    background: #fff;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 18px;
    color: var(--text-primary);
    margin-left: 12px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

/* Headings de Seção */
h2 {
    font-size: 2.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
}

/* GRIDS - CARDS ESTILO GOOGLE */
.grid-comparisons,
.grid-tools,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

/* CARD BASE STYLE - PREMIUM UPGRADE (Tools & Comparisons Only) */
.tool-card,
.comparison-card {
    background: #fff;
    background-image: radial-gradient(#dfe1e5 1px, transparent 1px);
    background-size: 20px 20px;
    /* Dotted pattern */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tool-card:hover,
.comparison-card:hover {
    border-color: #cbd5e1;
    background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
    /* Sharper dots on hover */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
    cursor: pointer;
}

/* BLOG CARD - PREMIUM GOOGLE STYLE */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.blog-card:hover {
    border-color: #d2e3fc;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background-color: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.blog-content {
    padding: 24px;
    /* Balanced padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    margin-top: auto;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Tool Rating Badge (Top Right) */
.rating-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    color: var(--accent);
    /* Google Blue */
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Category Tag */
.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
}

.feature-list li svg {
    width: 16px;
    height: 16px;
    stroke: #64748b;
}

/* Rounded Buttons */
.btn-card {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    /* Google Blue */
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

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

/* Content Padding */
.card-content {
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Comparison VS Style */
.vs-text {
    display: inline-block;
    vertical-align: 2px;
    /* Slight lift for visual balance */
    font-size: 0.7em;
    /* Relative to parent header size */
    color: #ea4335;
    font-weight: 900;
    font-style: italic;
    margin: 0 16px;
    padding: 0 8px;
    /* Breathing room */
    text-transform: uppercase;
    letter-spacing: -1px;
    background: transparent;
    /* Clean look */
}

.btn-link {
    background: var(--accent);
    /* Google Blue */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.btn-link:hover {
    background: var(--accent-hover);
    color: white;
}

/* COMPARISON PAGE STYLES */
.comparison-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 16px auto 0;
}

.battle-arena {
    padding-top: 40px;
}

.comparison-grid {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 60px;
}

.fighter-card {
    flex: 1;
    background: #ffffff;
    background-image: radial-gradient(#dfe1e5 1px, transparent 1px);
    background-size: 20px 20px;
    /* Dotted pattern texture */
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.fighter-card h2 {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 10px;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.features-list li svg {
    width: 20px;
    height: 20px;
    stroke: #34a853;
    /* Success Green */
}

.pros-cons {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.pros-cons h4 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.pros-cons ul {
    list-style: none;
    margin-bottom: 20px;
}

.pros-cons ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.pros-cons ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--border);
}

.vs-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.vs-divider::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.vs-divider span {
    position: relative;
    z-index: 2;
    background: #f8f9fa;
    /* Match comparison-page background */
    color: #ea4335;
    font-weight: 900;
    font-style: italic;
    padding: 20px 5px;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.verdict-box {
    background: #ffffff;
    border: 2px solid #e8f0fe;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.verdict-box h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.verdict-box p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.full-width {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.mt-2 {
    margin-top: 20px;
}

/* RESPONSIVIDADE - AJUSTES GERAIS */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .glass-header {
        height: 70px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon svg {
        width: 18px;
        height: 18px;
    }

    .header-actions {
        gap: 15px !important;
    }

    /* Ocultar elementos secundários no mobile */
    .header-actions .btn-primary,
    nav {
        display: none !important;
    }

    #nav-login {
        font-size: 13px !important;
        background: #f1f3f4;
        padding: 8px 16px;
        border-radius: 20px;
    }

    /* Hero and Main adjustments */
    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    main {
        margin-top: 140px !important;
    }

    .search-box {
        padding: 10px 16px;
    }

    .search-box input {
        font-size: 16px;
    }

    /* Comparison Page adjustments */
    .comparison-grid {
        flex-direction: column;
        gap: 20px;
    }

    .vs-divider {
        height: 60px;
        min-width: auto;
    }

    .vs-divider::before {
        width: 100%;
        height: 2px;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06), transparent);
    }

    .vs-divider span {
        padding: 5px 20px;
        font-size: 1.4rem;
    }

    .fighter-card {
        padding: 30px 20px;
    }

    .fighter-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* FOOTER - PREMIUM & SPACIOUS */
footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    /* Padding superior generoso, zero inferior */
    margin-top: 100px;
    /* Margem superior para separar do conteúdo */
    font-family: var(--font-heading);
    width: 100%;
}

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

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #9aa0a6;
    font-size: 0.85rem;
}

/* USER DROPDOWN MENU */
.user-menu-container {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #3c4043;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.1s;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
    color: var(--accent);
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: #f1f3f4;
    margin: 4px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}