/* Hero Upload Section - Logged In Users */
.hero-landing-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Dual Upload Grid for Compare Contratos */
.upload-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 550px;
}

.upload-box-compact {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-icon-compact {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.upload-icon-compact svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.upload-box-compact h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.btn-upload-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-upload-compact svg {
    width: 16px;
    height: 16px;
}

.file-info-compact {
    background: #F3F4F6;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
}

.file-info-compact .file-name {
    color: #1F2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.btn-remove-compact {
    width: 24px;
    height: 24px;
    background: #EF4444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-remove-compact:hover {
    background: #DC2626;
}

.btn-compare-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #10B981;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    max-width: 550px;
    width: 100%;
    justify-content: center;
}

.btn-compare-hero:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-compare-hero:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-compare-hero svg {
    width: 20px;
    height: 20px;
}

.upload-box-hero {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.upload-icon-hero {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.upload-icon-hero svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.upload-box-hero h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.upload-box-hero p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 24px 0;
}

.btn-upload-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-upload-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-upload-hero svg {
    width: 20px;
    height: 20px;
}

.file-info-hero {
    background: #F3F4F6;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-details svg {
    width: 24px;
    height: 24px;
    color: #8B5CF6;
    flex-shrink: 0;
}

.file-details .file-name {
    font-size: 0.95rem;
    color: #1F2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-remove-hero {
    width: 32px;
    height: 32px;
    background: #EF4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-remove-hero:hover {
    background: #DC2626;
    transform: scale(1.05);
}

.btn-analyze-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #10B981;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    width: 100%;
    justify-content: center;
}

.btn-analyze-hero:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-analyze-hero:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-analyze-hero svg {
    width: 22px;
    height: 22px;
}

/* Risk Categories Highlight Section - Inspired by Bolt Design */
.risk-categories-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.risk-categories-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.risk-highlight-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.risk-highlight-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.risk-highlight-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.risk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.risk-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.risk-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.risk-card:hover .risk-card-icon {
    transform: scale(1.1);
}

.risk-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.risk-card-content p {
    font-size: 0.95rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Risk Card Color Variants */
.risk-card.risk-warning .risk-card-icon {
    background: #FEF3C7;
    color: #D97706;
}

.risk-card.risk-error .risk-card-icon {
    background: #FEE2E2;
    color: #DC2626;
}

.risk-card.risk-info .risk-card-icon {
    background: #DBEAFE;
    color: #2563EB;
}

.risk-card.risk-purple .risk-card-icon {
    background: #E0E7FF;
    color: #6366F1;
}

.risk-card.risk-data .risk-card-icon {
    background: #FCE7F3;
    color: #DB2777;
}

.risk-card.risk-success .risk-card-icon {
    background: #D1FAE5;
    color: #059669;
}

.risk-card.risk-alert .risk-card-icon {
    background: #FED7AA;
    color: #EA580C;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-dual-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .upload-box-compact {
        padding: 20px 16px;
    }

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

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

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

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

    .btn-compare-hero {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .upload-box-hero {
        padding: 30px 20px;
    }

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

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

    .upload-box-hero h3 {
        font-size: 1.25rem;
    }

    .upload-box-hero p {
        font-size: 0.9rem;
    }

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

    .btn-analyze-hero {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .risk-categories-highlight {
        padding: 60px 0;
    }

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

    .risk-highlight-header p {
        font-size: 1.1rem;
    }

    .risk-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .risk-card {
        padding: 20px;
    }

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

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

    .risk-card-content h3 {
        font-size: 1rem;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .risk-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .risk-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
