/**
 * UNIVERSO LIBERAL - RESPONSIVIDADE
 * Tablet e Mobile
 */

/* ============================================
   TABLET (até 1024px)
   ============================================ */
@media (max-width: 1024px) {
    
    /* Header */
    .header-wrapper {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: var(--spacing-md);
    }
    
    .nav-list {
        gap: var(--spacing-lg);
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 4;
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Categorias */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Usuários em destaque */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Parceiros */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Seções */
    .about-section,
    .categories-section,
    .featured-section,
    .partners-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   MOBILE LANDSCAPE (até 900px)
   ============================================ */
@media (max-width: 900px) {
    
    /* Header */
    .header-wrapper {
        padding: var(--spacing-md) 0;
    }
    
    .logo-text {
        font-size: var(--font-size-large);
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .search-form {
        width: 100%;
    }
    
    .auth-buttons {
        width: 100%;
        gap: var(--spacing-sm);
    }
    
    .auth-buttons .btn {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Hero */
    .hero {
        min-height: 400px;
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-large);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Seções */
    .about-section,
    .categories-section,
    .featured-section,
    .partners-section,
    .cta-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-xl);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    /* Categorias */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        min-height: 300px;
    }
    
    /* Usuários em destaque */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-image {
        height: 200px;
    }
    
    /* Parceiros */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: var(--font-size-xl);
    }
    
    .cta-content p {
        font-size: var(--font-size-base);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* ============================================
   MOBILE PORTRAIT (até 640px)
   ============================================ */
@media (max-width: 640px) {
    
    :root {
        --font-size-base: 15px;
        --spacing-md: 12px;
        --spacing-lg: 16px;
        --spacing-xl: 20px;
        --spacing-2xl: 32px;
    }
    
    /* Header */
    .header-wrapper {
        padding: var(--spacing-md) 0;
    }
    
    .logo-section {
        width: 100%;
        order: 1;
    }
    
    .logo-text {
        font-size: var(--font-size-large);
    }
    
    .logo-img {
        height: 32px;
    }
    
    .search-form {
        order: 2;
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .auth-buttons {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .auth-buttons .btn {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 12px;
    }
    
    /* Hero */
    .hero {
        min-height: 350px;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 13px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
        padding-top: var(--spacing-lg);
        border-top: 1px solid rgba(201, 162, 77, 0.2);
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Seções */
    .about-section,
    .categories-section,
    .featured-section,
    .partners-section,
    .cta-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--font-size-large);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: var(--font-size-base);
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    /* Categorias */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .category-card {
        min-height: 250px;
    }
    
    .category-icon {
        font-size: 60px;
    }
    
    .category-card h3 {
        font-size: var(--font-size-base);
    }
    
    .category-card p {
        font-size: 13px;
    }
    
    /* Usuários em destaque */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .featured-image {
        height: 200px;
    }
    
    .featured-info {
        padding: var(--spacing-md);
    }
    
    .featured-info h3 {
        font-size: var(--font-size-base);
    }
    
    .featured-location {
        font-size: 12px;
    }
    
    .featured-bio {
        font-size: 13px;
    }
    
    /* Parceiros */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .partner-link {
        padding: var(--spacing-lg);
    }
    
    .partner-link img {
        max-width: 80px;
    }
    
    .partner-link span {
        font-size: 13px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: var(--font-size-large);
        margin-bottom: var(--spacing-md);
    }
    
    .cta-content p {
        font-size: 14px;
        margin-bottom: var(--spacing-lg);
    }
    
    .cta-content .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-section h4 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-section a {
        font-size: 13px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-lg);
    }
    
    .footer-bottom p {
        font-size: 12px;
        margin-bottom: var(--spacing-sm);
    }
}

/* ============================================
   MOBILE PEQUENO (até 480px)
   ============================================ */
@media (max-width: 480px) {
    
    :root {
        --font-size-base: 14px;
        --spacing-md: 10px;
        --spacing-lg: 14px;
        --spacing-xl: 16px;
        --spacing-2xl: 24px;
    }
    
    /* Header */
    .header {
        position: relative;
    }
    
    .header-wrapper {
        flex-direction: column;
        padding: var(--spacing-md) 0;
    }
    
    .logo-section {
        width: 100%;
    }
    
    .logo-text {
        font-size: var(--font-size-base);
    }
    
    .logo-img {
        height: 28px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .auth-buttons {
        width: 100%;
        gap: var(--spacing-sm);
    }
    
    .auth-buttons .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 11px;
    }
    
    /* Hero */
    .hero {
        min-height: 300px;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .hero-cta .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 12px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    /* Seções */
    .about-section,
    .categories-section,
    .featured-section,
    .partners-section,
    .cta-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--font-size-base);
    }
    
    /* Features */
    .feature-icon {
        font-size: 32px;
    }
    
    .feature-card h3 {
        font-size: 14px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
    
    /* Categorias */
    .category-card {
        min-height: 220px;
    }
    
    .category-icon {
        font-size: 50px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .category-card p {
        font-size: 12px;
    }
    
    /* Usuários */
    .featured-image {
        height: 180px;
    }
    
    .featured-badge {
        font-size: 10px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .featured-info h3 {
        font-size: 14px;
    }
    
    .featured-location {
        font-size: 11px;
    }
    
    .featured-bio {
        font-size: 12px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 18px;
    }
    
    .cta-content p {
        font-size: 13px;
    }
    
    /* Footer */
    .footer-section h4 {
        font-size: 14px;
    }
    
    .footer-section a {
        font-size: 12px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

/* ============================================
   IMPRESSÃO
   ============================================ */
@media print {
    
    .header,
    .hero-cta,
    .auth-buttons,
    .menu-toggle,
    .search-form,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    
    :root {
        color-scheme: dark;
    }
}

/* ============================================
   MODO CLARO (se suportado)
   ============================================ */
@media (prefers-color-scheme: light) {
    
    body {
        background: #f5f5f5;
        color: #333;
    }
    
    .header {
        background: #fff;
        border-bottom-color: #ddd;
    }
}

/* ============================================
   TELAS ULTRA-LARGAS
   ============================================ */
@media (min-width: 1400px) {
    
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .features-grid,
    .categories-grid,
    .featured-grid,
    .partners-grid {
        gap: var(--spacing-2xl);
    }
}
