/*
 * Responsive CSS - Mobile First Approach
 * Fala Cripto Theme
 * 
 * Breakpoints:
 * - Mobile Small: 320px (base)
 * - Mobile Medium: 375px  
 * - Mobile Large: 425px
 * - Tablet: 768px
 * - Laptop: 1024px
 * - Desktop: 1200px
 * - Large Desktop: 1440px
 */

/* ============================================
   MOBILE FIRST - BASE STYLES (320px+)
   ============================================ */

/* Container Responsivo */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem; /* 16px */
}

/* Header Responsivo */
.site-header {
    padding: 0.75rem 0; /* 12px */
}

.header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-size: 1.25rem; /* 20px */
}

.site-logo img,
.custom-logo {
    max-height: 40px;
    width: auto;
}

/* Menu Mobile */
.menu-toggle {
    display: block;
    padding: 0.5rem;
    font-size: 1.5rem;
    z-index: 1001;
}

.main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 1000;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.main-navigation.active {
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.3s ease-out;
}

.main-navigation ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.main-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.main-navigation a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem; /* 18px */
}

/* Hero Section - Mobile */
.hero-section,
.hero-section-extended {
    margin-top: 60px; /* Altura do header menor */
    padding: 3rem 0 2rem; /* 48px 0 32px */
}

.hero-content h1 {
    font-size: 2rem; /* 32px */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1rem; /* 16px */
    margin-bottom: 1.5rem;
}

.hero-content .hero-subtitle {
    font-size: 1rem;
}

.hero-cta {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-button {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
    font-size: 0.9rem;
    text-align: center;
}

.hero-stats {
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem; /* 32px */
}

.stat-label {
    font-size: 0.875rem; /* 14px */
}

/* Crypto Ticker - Mobile */
.crypto-ticker-section {
    padding: 1rem 0;
}

.ticker-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.ticker-item {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
    text-align: center;
}

.crypto-symbol {
    font-size: 1rem;
}

.crypto-price {
    font-size: 0.9rem;
}

.crypto-change {
    font-size: 0.8rem;
}

/* Featured Categories - Mobile */
.featured-categories-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-card {
    padding: 2rem;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.25rem;
}

/* Content Area - Mobile */
.content-wrapper {
    padding: 2rem 0;
}

.main-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Posts Grid - Mobile */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Post Card - Mobile */
.post-card {
    border-radius: 12px;
}

.post-thumbnail {
    height: 200px;
}

.post-content {
    padding: 1.25rem;
}

.post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.post-category {
    font-size: 0.75rem;
    padding: 4px 12px;
}

.post-date {
    font-size: 0.8rem;
}

.post-title {
    font-size: 1.25rem; /* 20px */
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sidebar - Mobile */
.widget-area {
    width: 100%;
}

.widget {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Crypto Price Widget - Mobile */
.crypto-price-item {
    flex-direction: row;
    padding: 0.875rem;
}

.crypto-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 36px;
}

.crypto-name {
    font-size: 0.875rem;
}

.crypto-code {
    font-size: 0.75rem;
}

.price {
    font-size: 0.9rem;
}

.change {
    font-size: 0.8rem;
    padding: 3px 8px;
}

/* Popular Posts - Mobile */
.popular-post-item {
    flex-direction: column;
    padding: 0.75rem;
}

.popular-post-thumb {
    width: 100%;
    height: 120px;
}

/* Footer - Mobile */
.site-footer {
    padding: 2rem 0 1.5rem;
}

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

.footer-widget {
    text-align: left;
}

.footer-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Single Post - Mobile */
.single-post-header {
    margin-top: 60px;
    padding: 2rem 0 1.5rem;
}

.single-post-header h1 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.2;
}

.single-post-header .post-meta {
    flex-direction: column;
    gap: 0.5rem;
}

.single-post-content {
    padding: 1.5rem 0;
}

.single-post-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.single-post-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.single-post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

/* Pagination - Mobile */
.pagination {
    font-size: 0.9rem;
}

.pagination .page-numbers {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
}

/* Search & Archive Pages - Mobile */
.search-header,
.archive-header {
    padding: 3rem 0 2rem;
}

.search-title,
.archive-title {
    font-size: 1.75rem;
}

/* 404 Page - Mobile */
.error-404 {
    padding: 3rem 0;
}

.error-number {
    font-size: 6rem;
}

.error-404 h1 {
    font-size: 1.75rem;
}

/* CTA Section - Mobile */
.cta-section {
    padding: 3rem 0;
}

.cta-content h2 {
    font-size: 1.75rem;
}

.cta-content p {
    font-size: 1rem;
}

/* ============================================
   MOBILE MEDIUM (375px+)
   ============================================ */
@media (min-width: 375px) {
    .hero-content h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    .post-title {
        font-size: 1.375rem; /* 22px */
    }
    
    .crypto-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }
    
    .error-number {
        font-size: 7rem;
    }
}

/* ============================================
   MOBILE LARGE (425px+)
   ============================================ */
@media (min-width: 425px) {
    .container {
        padding: 0 1.25rem; /* 20px */
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    .hero-content p {
        font-size: 1.0625rem; /* 17px */
    }
    
    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .ticker-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .post-thumbnail {
        height: 220px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem; /* 24px */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .error-number {
        font-size: 8rem;
    }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    /* Container */
    .container {
        max-width: 720px;
        padding: 0 2rem; /* 32px */
    }
    
    /* Header */
    .site-header {
        padding: 1rem 0;
    }
    
    .site-logo {
        font-size: 1.5rem; /* 24px */
    }
    
    .site-logo img,
    .custom-logo {
        max-height: 50px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: flex !important;
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        overflow: visible;
    }
    
    .main-navigation ul {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .main-navigation li {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 0;
        font-size: 0.95rem;
    }
    
    /* Hero Section */
    .hero-section,
    .hero-section-extended {
        margin-top: 80px;
        padding: 5rem 0 3rem; /* 80px 0 48px */
    }
    
    .hero-content h1 {
        font-size: 3rem; /* 48px */
    }
    
    .hero-content p {
        font-size: 1.125rem; /* 18px */
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .cta-button {
        width: auto;
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem; /* 40px */
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Crypto Ticker */
    .ticker-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .ticker-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 1rem;
    }
    
    /* Featured Categories */
    .featured-categories-section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .category-card {
        padding: 2.5rem;
    }
    
    /* Content */
    .content-wrapper {
        padding: 4rem 0; /* 64px */
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .post-thumbnail {
        height: 220px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .post-title {
        font-size: 1.4rem; /* 22.4px */
    }
    
    /* Sidebar */
    .widget {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .widget-title {
        font-size: 1.3rem;
    }
    
    .popular-post-item {
        flex-direction: row;
        padding: 0.875rem;
    }
    
    .popular-post-thumb {
        width: 70px;
        height: 70px;
    }
    
    /* Footer */
    .site-footer {
        padding: 4rem 0 2rem; /* 64px 0 32px */
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    /* Single Post */
    .single-post-header {
        margin-top: 80px;
        padding: 3rem 0 2rem;
    }
    
    .single-post-header h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    .single-post-header .post-meta {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .single-post-content {
        padding: 2rem 0;
    }
    
    .single-post-content p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .single-post-content h2 {
        font-size: 2rem;
    }
    
    .single-post-content h3 {
        font-size: 1.5rem;
    }
    
    /* Search & Archive */
    .search-header,
    .archive-header {
        padding: 5rem 0 3rem;
    }
    
    .search-title,
    .archive-title {
        font-size: 2.5rem;
    }
    
    /* 404 Page */
    .error-404 {
        padding: 5rem 0;
    }
    
    .error-number {
        font-size: 10rem;
    }
    
    .error-404 h1 {
        font-size: 2.5rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 5rem 0;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.2rem;
    }
}

/* ============================================
   LAPTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    /* Container */
    .container {
        max-width: 960px;
    }
    
    /* Header */
    .main-navigation ul {
        gap: 2rem;
    }
    
    .main-navigation a {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section,
    .hero-section-extended {
        padding: 6rem 0 4rem; /* 96px 0 64px */
    }
    
    .hero-content h1 {
        font-size: 3.5rem; /* 56px */
    }
    
    .hero-content p {
        font-size: 1.25rem; /* 20px */
        max-width: 700px;
    }
    
    .hero-stats {
        gap: 4rem;
    }
    
    .stat-number {
        font-size: 3rem; /* 48px */
    }
    
    /* Featured Categories */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Content Area */
    .content-wrapper {
        padding: 5rem 0; /* 80px */
    }
    
    .main-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
    
    /* Posts Grid (com sidebar) */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-thumbnail {
        height: 240px;
    }
    
    /* Sidebar */
    .widget-area {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Single Post */
    .single-post-header h1 {
        font-size: 3rem; /* 48px */
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2.8rem;
    }
}

/* ============================================
   DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: 1200px;
    }
    
    /* Hero Section */
    .hero-section,
    .hero-section-extended {
        padding: 7.5rem 0 5rem; /* 120px 0 80px */
    }
    
    .hero-content h1 {
        font-size: 4rem; /* 64px */
    }
    
    .hero-content p {
        font-size: 1.3rem; /* 20.8px */
    }
    
    /* Main Layout */
    .main-layout {
        grid-template-columns: 1fr 380px;
        gap: 3rem;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .post-thumbnail {
        height: 260px;
    }
    
    .post-title {
        font-size: 1.5rem; /* 24px */
    }
    
    /* Single Post */
    .single-post-header h1 {
        font-size: 3.5rem; /* 56px */
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   LARGE DESKTOP (1440px+)
   ============================================ */
@media (min-width: 1440px) {
    /* Container */
    .container {
        max-width: 1320px;
    }
    
    /* Posts Grid - Pode ter 3 colunas se não tiver sidebar */
    .posts-grid.full-width {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .post-thumbnail {
        height: 280px;
    }
}

/* ============================================
   EXTRA LARGE (1920px+)
   ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .posts-grid.full-width {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   UTILITY CLASSES RESPONSIVAS
   ============================================ */

/* Visibilidade por dispositivo */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    .hide-tablet {
        display: none;
    }
    .show-mobile {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hide-tablet {
        display: block;
    }
    .hide-desktop {
        display: none;
    }
}

/* Text Alignment Responsivo */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Animações suaves */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animação do menu mobile */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .post-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(253, 176, 34, 0.25), 0 0 30px rgba(33, 150, 243, 0.15);
    }
    
    .cta-button:hover {
        transform: translateY(-3px) scale(1.05);
    }
    
    /* Áreas de toque maiores */
    .main-navigation a {
        padding: 1.25rem 0;
    }
    
    .menu-toggle {
        padding: 1rem;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .widget-area,
    .site-footer,
    .cta-button,
    .menu-toggle {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
}
