/*
Theme Name: SevenUpz Health Hub
Theme URI: https://seudominio.com/
Author: Seu Nome
Description: Tema premium focado em portal de saúde e conversão.
Version: 1.0
*/

:root {
    --primary: #059669;
    /* Emerald Green */
    --primary-dark: #047857;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --bg-light: #ffffff;
    --bg-muted: #f9fafb;
    --bg-subtle: #f3f4f6;
    --border: #e5e7eb;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.25em;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Header */
.site-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--primary);
}

.search-container {
    position: relative;
    width: 250px;
}

.search-container input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background-color: var(--bg-muted);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-container input:focus {
    border-color: var(--primary);
    background-color: var(--bg-light);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Shared Card Styles */
.article-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: var(--bg-subtle);
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

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

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.hero-featured {
    position: relative;
}

.hero-featured .card-image {
    height: 450px;
    border-radius: var(--radius-lg);
}

.hero-featured-content {
    margin-top: 1.25rem;
}

.hero-featured .card-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.hero-featured .card-excerpt {
    font-size: 1.125rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.hero-secondary-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.secondary-card {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.secondary-card .card-image {
    width: 120px;
    height: 90px;
}

.secondary-card .card-title {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Categories Section */
.categories-section {
    padding: 3rem 0;
    background-color: var(--bg-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-block {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.category-block h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.category-list li {
    margin-bottom: 1rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.category-list a::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.category-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Content Blocks (Trending & Latest) */
.content-blocks-section {
    padding: 3rem 0;
}

.content-blocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.article-list-sm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.list-item {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-item-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--border);
    min-width: 40px;
    line-height: 1;
}

.list-item-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.list-item-content a:hover {
    color: var(--primary);
}

/* Newsletter */
.newsletter-section {
    margin: 2rem auto 4rem;
    max-width: 800px;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    background-color: var(--text-dark);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #000;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: #e5e7eb;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-about p {
    color: #9ca3af;
    max-width: 400px;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    background-color: #374151;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #d1d5db;
    border-left: 4px solid #ef4444;
    /* Red caution border */
}

.disclaimer strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.copyright {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-featured .card-image {
        height: 350px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .content-blocks-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}