/* =============================================
   Mapa de Gramado - Main Stylesheet
   Clean, professional city guide design
   ============================================= */

/* =============================================
   BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #2d8659;
    --secondary-color: #ff6b35;
    --dark-color: #2d3748;
    
    /* UI Colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --background-light: #f7fafc;
    --border-color: #e2e8f0;
    
    /* Navigation */
    --nav-bg: #1a202c;
    --nav-hover: #2d3748;
    
    /* Spacing */
    --container-max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    line-height: 17px;
    color: var(--text-primary);
    background-color: #ffffff;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER STRUCTURE
   ============================================= */

/* Top Utility Bar */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-bar i {
    margin-right: 4px;
    font-size: 0.875rem;
}

/* Logo Section */
.header-logo {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.site-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 2.25rem;
}

.logo-text h1 {
    font-size: 2.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text .subtitle {
    font-size: 0.688rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    margin-top: 2px;
}

/* Search Bar */
.header-search {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.875rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-green);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: var(--dark-teal);
}

/* Main Navigation Bar */
.main-nav {
    background-color: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background-color: var(--nav-hover);
}

.nav-menu a.active {
    background-color: var(--primary-color);
}

.nav-menu i {
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
main {
    min-height: calc(100vh - 400px);
    padding: var(--spacing-xl) 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: #2d3748;
    color: #e2e8f0;
    margin-top: 4rem;
}

.footer-main {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.625rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.938rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-description {
    color: #cbd5e0;
    line-height: 1.7;
    font-size: 0.938rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-published {
    background-color: #48bb78;
    color: white;
}

.badge-draft {
    background-color: #a0aec0;
    color: white;
}

.badge-featured {
    background-color: var(--secondary-color);
    color: white;
}

/* Content Cards - Professional Style */
.card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.813rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.938rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #246748;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e55a2a;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
    .site-logo-img {
        height: 50px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-search {
        width: 100%;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-content {
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .site-logo-img {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* =============================================
   RICH TEXT CONTENT STYLES
   Reusable formatting for all rich text fields
   ============================================= */

.rich-text-content {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: white;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin-bottom: 3rem;
}

/* Headings */
.rich-text-content h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.rich-text-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rich-text-content h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Paragraphs - more spacing between them */
.rich-text-content p {
    margin-bottom: 1.5rem;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

/* Lists - better indentation */
.rich-text-content ul,
.rich-text-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.rich-text-content ul {
    list-style-type: disc;
}

.rich-text-content ol {
    list-style-type: decimal;
}

.rich-text-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.rich-text-content li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.rich-text-content ul ul,
.rich-text-content ol ol,
.rich-text-content ul ol,
.rich-text-content ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Images */
.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Links */
.rich-text-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.rich-text-content a:hover {
    color: var(--secondary-color);
}

/* Blockquotes */
.rich-text-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--background-light);
    font-style: italic;
    color: var(--text-secondary);
}

.rich-text-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.rich-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.rich-text-content th,
.rich-text-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rich-text-content th {
    background-color: var(--background-light);
    font-weight: 700;
    color: var(--text-primary);
}

/* Code blocks */
.rich-text-content pre {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.rich-text-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.rich-text-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Strong and emphasis */
.rich-text-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

.rich-text-content em {
    font-style: italic;
}

/* Horizontal rule */
.rich-text-content hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 2px solid var(--border-color);
}

/* First paragraph special styling (optional) */
.rich-text-content > p:first-child {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .rich-text-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .rich-text-content h2 {
        font-size: 1.5rem;
    }
    
    .rich-text-content h3 {
        font-size: 1.25rem;
    }
    
    .rich-text-content ul,
    .rich-text-content ol {
        padding-left: 1.25rem;
    }
}

/* Article Content - Legacy class (keep for backwards compatibility) */
.article-content {
    font-size: 1.063rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.625rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--secondary-color);
}

/* Featured Banner */
.featured-banner {
    position: relative;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.featured-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 2.5rem;
    color: white;
}

.featured-category {
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--background-light);
    border-radius: 4px;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

