/* Compact Screen CSS - For resolutions < 1400px */
/* Optimized for 1360px and similar laptop screens */

@media (max-width: 1400px) {
    /* Global adjustments */
    html {
        font-size: 14px;
    }

    body {
        font-size: 0.9rem;
    }

    /* Container */
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }

    /* Header */
    .header {
        padding: 12px 0;
        min-height: auto;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav {
        gap: 20px;
        font-size: 0.85rem;
    }

    .user-menu-trigger,
    .tools-menu-trigger {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* Hero Landing */
    .hero-landing {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-landing.hero-compact {
        padding: 40px 0;
    }

    .hero-landing-grid {
        gap: 30px;
    }

    .hero-landing-content h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .badge-new-feature {
        padding: 4px 10px;
        font-size: 0.7rem;
        margin-bottom: 12px;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    /* Upload Box Hero */
    .upload-box-hero {
        padding: 30px 24px;
        max-width: 450px;
    }

    .upload-icon-hero {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .upload-icon-hero svg {
        width: 32px;
        height: 32px;
    }

    .upload-box-hero h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .upload-box-hero p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .btn-upload-hero {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-analyze-hero {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Upload Compact (Compare Contratos) */
    .upload-dual-grid {
        max-width: 480px;
        gap: 12px;
    }

    .upload-box-compact {
        padding: 18px 16px;
        gap: 10px;
    }

    .upload-icon-compact {
        width: 40px;
        height: 40px;
    }

    .upload-icon-compact svg {
        width: 20px;
        height: 20px;
    }

    .upload-box-compact h4 {
        font-size: 0.9rem;
    }

    .btn-upload-compact {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .btn-compare-hero {
        padding: 12px 24px;
        font-size: 0.95rem;
        max-width: 480px;
    }

    /* Document Preview */
    .document-preview {
        max-width: 400px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title-center {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .section-subtitle-center {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Tools Section */
    .tools-section {
        padding: 50px 0;
    }

    .tools-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .tool-card {
        padding: 24px 20px;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .tool-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .tool-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .tool-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Features Section */
    .features-section {
        padding: 50px 0;
    }

    .features-grid {
        gap: 24px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Risk Categories Highlight */
    .risk-categories-highlight {
        padding: 50px 0;
    }

    .risk-highlight-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .risk-highlight-header p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .risk-cards-grid {
        gap: 16px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .risk-card {
        padding: 18px;
    }

    .risk-card-icon {
        width: 40px;
        height: 40px;
    }

    .risk-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .risk-card-content h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .risk-card-content p {
        font-size: 0.8rem;
    }

    /* Why Choose Section */
    .why-choose-section {
        padding: 50px 0;
    }

    .why-grid {
        gap: 30px;
    }

    .why-item {
        gap: 16px;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .why-icon svg {
        width: 24px;
        height: 24px;
    }

    .why-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .why-content p {
        font-size: 0.85rem;
    }

    /* How It Works */
    .how-it-works-section {
        padding: 50px 0;
    }

    .steps-grid {
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .step-item {
        padding: 24px 20px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .step-item h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .step-item p {
        font-size: 0.85rem;
    }

    /* Unique Section */
    .unique-section {
        padding: 50px 0;
    }

    .unique-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .unique-item {
        padding: 20px;
    }

    .unique-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .unique-item p {
        font-size: 0.85rem;
    }

    /* CTA Sections */
    .cta-center {
        margin-top: 30px;
    }

    .btn-cta-large {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .cta-final-section {
        padding: 50px 0;
    }

    .cta-final-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .cta-final-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    /* Results Section */
    .results-section {
        margin-top: 20px;
    }

    .results-header h2 {
        font-size: 1.5rem;
    }

    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .differences-summary {
        padding: 16px;
        margin-bottom: 20px;
    }

    .differences-summary p {
        font-size: 0.9rem;
    }

    /* Risk Results */
    .risk-category-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .risk-category-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .risk-category-header h3 {
        font-size: 1.1rem;
    }

    .risk-count {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .risk-trecho {
        padding: 14px;
    }

    .risk-trecho-location {
        font-size: 0.8rem;
    }

    .risk-trecho-content p {
        font-size: 0.85rem;
    }

    /* Difference Cards */
    .difference-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .difference-header h3 {
        font-size: 1.05rem;
    }

    .clause-number {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .status-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .difference-summary-box {
        padding: 14px;
        margin: 14px 0;
    }

    .difference-summary-box h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .difference-summary-box p {
        font-size: 0.85rem;
    }

    .document-section {
        padding: 14px;
    }

    .document-section h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .document-text {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer p {
        font-size: 0.85rem;
    }

    /* Search Block */
    .search-block {
        margin-bottom: 40px;
    }

    .search-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .search-input {
        padding: 12px 40px 12px 16px;
        font-size: 0.9rem;
    }

    /* About Section */
    .about-section {
        padding: 50px 0;
    }

    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .about-content p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    /* Loading Section */
    .loading-section {
        padding: 40px 20px;
    }

    .loading-section h3 {
        font-size: 1.3rem;
        margin-top: 20px;
    }

    .loading-section p {
        font-size: 0.9rem;
    }

    /* Error Section */
    .error-section {
        padding: 40px 20px;
    }

    .error-section h3 {
        font-size: 1.3rem;
        margin: 16px 0;
    }

    .error-section p {
        font-size: 0.9rem;
    }

    /* Hero Floating Cards */
    .floating-card {
        padding: 14px;
    }

    .card-title {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Extra adjustments for very compact screens (1280px and below) */
@media (max-width: 1280px) {
    html {
        font-size: 13px;
    }

    .hero-landing-content h1 {
        font-size: 1.6rem;
    }

    .section-title-center {
        font-size: 1.4rem;
    }

    .risk-highlight-header h2 {
        font-size: 1.6rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}
